Skip to content

Commit

Permalink
Fix: Worker Has Disabled Suicide Button Before Demolitions Upgrade (#161
Browse files Browse the repository at this point in the history
)
  • Loading branch information
commy2 authored Sep 3, 2021
1 parent 50c976c commit 93ead61
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Patch104pZH/Design/Tasks/commy2_tasks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ https://github.com/commy2/zerohour/issues/46 [DONE] Technical
https://github.com/commy2/zerohour/issues/45 [IMPROVEMENT] Combat Bike Has Disabled Suicide Ability Button
https://github.com/commy2/zerohour/issues/44 [MAYBE] Terrorist And Bomb Truck Missing Suicide Ability
https://github.com/commy2/zerohour/issues/43 [IMPROVEMENT] Suicide Ability Button Is Placed Inconsistently
https://github.com/commy2/zerohour/issues/42 [IMPROVEMENT] Worker Has Disabled Suicide Button Before Demolitions Upgrade
https://github.com/commy2/zerohour/issues/42 [DONE] Worker Has Disabled Suicide Button Before Demolitions Upgrade
https://github.com/commy2/zerohour/issues/41 [IMPROVEMENT] Base Defenses Missing Demoliton Upgrade Icon
https://github.com/commy2/zerohour/issues/38 [IMPROVEMENT] Detached Floating Object Orbits Avenger Model When Moving
https://github.com/commy2/zerohour/issues/37 [IMPROVEMENT] Tomahawk Launchers Have Reversed Order For Battle And Scout Drone Upgrade
Expand Down
14 changes: 12 additions & 2 deletions Patch104pZH/GameFilesEdited/Data/INI/CommandSet.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,6 @@ CommandSet Demo_GLAWorkerCommandSet
8 = Demo_Command_ConstructGLAScudStorm
9 = Demo_Command_ConstructGLAArmsDealer
10 = Demo_Command_ConstructGLACommandCenter
11 = Demo_Command_TertiarySuicide
13 = Command_UpgradeGLAWorkerFakeCommandSet
14 = Command_DisarmMinesAtPosition
End
Expand All @@ -1978,7 +1977,6 @@ CommandSet Demo_GLAWorkerFakeBuildingsCommandSet
3 = Demo_Command_ConstructFakeGLASupplyStash
4 = Demo_Command_ConstructFakeGLAArmsDealer
5 = Demo_Command_ConstructFakeGLABlackMarket
11 = Demo_Command_TertiarySuicide
13 = Command_UpgradeGLAWorkerRealCommandSet
End

Expand Down Expand Up @@ -2276,6 +2274,18 @@ CommandSet Demo_GLAWorkerCommandSetUpgrade
14 = Command_DisarmMinesAtPosition
End

; Patch104p @bugfix commy2 03/09/2021 Used for fake buildings after Demolitions upgrade is researched.

CommandSet Demo_GLAWorkerFakeBuildingsCommandSetUpgrade
1 = Demo_Command_ConstructFakeGLACommandCenter
2 = Demo_Command_ConstructFakeGLABarracks
3 = Demo_Command_ConstructFakeGLASupplyStash
4 = Demo_Command_ConstructFakeGLAArmsDealer
5 = Demo_Command_ConstructFakeGLABlackMarket
11 = Demo_Command_TertiarySuicide
13 = Command_UpgradeGLAWorkerRealCommandSet
End

CommandSet Demo_GLACommandCenterCommandSetUpgrade
1 = Demo_Command_ConstructGLAWorker
3 = Demo_Command_TertiarySuicide
Expand Down
15 changes: 15 additions & 0 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/DemoGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16074,22 +16074,37 @@ Object Demo_GLAInfantryWorker
PoisonDuration = 3000 ; ... for this long after last hit by poison damage
End

; Patch104p @bugfix commy2 03/09/2021 Upgrade command set when Demolitions upgrade is researched to hide disabled Suicide ability.

Behavior = CommandSetUpgrade ModuleTag_14
TriggeredBy = Upgrade_GLAWorkerFakeCommandSet
RemovesUpgrades = Upgrade_GLAWorkerRealCommandSet
CommandSet = Demo_GLAWorkerFakeBuildingsCommandSet
TriggerAlt = Demo_Upgrade_SuicideBomb
CommandSetAlt = Demo_GLAWorkerFakeBuildingsCommandSetUpgrade
End

Behavior = CommandSetUpgrade ModuleTag_15
TriggeredBy = Upgrade_GLAWorkerRealCommandSet
RemovesUpgrades = Upgrade_GLAWorkerFakeCommandSet Upgrade_GLAWorkerRealCommandSet
CommandSet = Demo_GLAWorkerCommandSet
TriggerAlt = Demo_Upgrade_SuicideBomb
CommandSetAlt = Demo_GLAWorkerCommandSetUpgrade
End

Behavior = ProductionUpdate ModuleTag_16
MaxQueueEntries = 1; For the command set switching upgrade
End

; Patch104p @bugfix commy2 03/09/2021 Handles upgrade of fake command set when Demolitions upgrade is researched.

Behavior = CommandSetUpgrade ModuleTag_17
TriggeredBy = Demo_Upgrade_SuicideBomb
CommandSet = Demo_GLAWorkerCommandSetUpgrade
TriggerAlt = Upgrade_GLAWorkerFakeCommandSet
CommandSetAlt = Demo_GLAWorkerFakeBuildingsCommandSetUpgrade
End

Behavior = SlowDeathBehavior ModuleTag_Death_17
DeathTypes = NONE +SUICIDED ; Patch104p @bugfix commy2 29/08/2021 Fix EXPLODED death being overloaded.
SinkDelay = 3000
Expand Down

0 comments on commit 93ead61

Please sign in to comment.