Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/scripts/CaptureTheRelic.js
Show All 14 Lines | Trigger.prototype.InitCaptureTheRelic = function() | ||||
let numSpawnedRelics = cmpEndGameManager.GetGameSettings().relicCount; | let numSpawnedRelics = cmpEndGameManager.GetGameSettings().relicCount; | ||||
this.playerRelicsCount = new Array(TriggerHelper.GetNumberOfPlayers()).fill(0, 1); | this.playerRelicsCount = new Array(TriggerHelper.GetNumberOfPlayers()).fill(0, 1); | ||||
this.playerRelicsCount[0] = numSpawnedRelics; | this.playerRelicsCount[0] = numSpawnedRelics; | ||||
for (let i = 0; i < numSpawnedRelics; ++i) | for (let i = 0; i < numSpawnedRelics; ++i) | ||||
{ | { | ||||
this.relics[i] = TriggerHelper.SpawnUnits(pickRandom(potentialSpawnPoints), catafalqueTemplates[i], 1, 0)[0]; | this.relics[i] = TriggerHelper.SpawnUnits(pickRandom(potentialSpawnPoints), catafalqueTemplates[i], 1, 0)[0]; | ||||
let cmpResistance = Engine.QueryInterface(this.relics[i], IID_Resistance); | |||||
cmpResistance.SetInvulnerability(true); | |||||
wraitii: I'm guessing this is the line that breaks #5847. I think you could mention in the commit… | |||||
let cmpPositionRelic = Engine.QueryInterface(this.relics[i], IID_Position); | let cmpPositionRelic = Engine.QueryInterface(this.relics[i], IID_Position); | ||||
cmpPositionRelic.SetYRotation(randomAngle()); | cmpPositionRelic.SetYRotation(randomAngle()); | ||||
} | } | ||||
}; | }; | ||||
Trigger.prototype.CheckCaptureTheRelicVictory = function(data) | Trigger.prototype.CheckCaptureTheRelicVictory = function(data) | ||||
{ | { | ||||
let cmpIdentity = Engine.QueryInterface(data.entity, IID_Identity); | let cmpIdentity = Engine.QueryInterface(data.entity, IID_Identity); | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
I'm guessing this is the line that breaks #5847. I think you could mention in the commit message that this is since https://code.wildfiregames.com/rP24001#inline-5236