Skip to content

Commit

Permalink
Fix non-functional Demo GLA Battle Bus suicide weapon (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Dec 31, 2022
1 parent 45c98db commit 6c8aabe
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/DemoGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22472,6 +22472,8 @@ End
; Patch104p @bugfix commy2 29/08/2021 Dummies used to fire regular Demolitions upgrade explosion weapons after "suicide death" and "passive death".
; Patch104p @bugfix commy2 15/08/2022 Do not use HighlanderBody for these dummies: It will cause unexpected resistance to particle beams.
; Patch104p @bugfix commy2 20/08/2022 Use DeletionUpdate for ImmortalBody, because immortals cannot die.
; Patch104p @bugfix xezon 15/12/2022 Use ActiveBody + DestroyDie instead of ImmortalBody + DeletionUpdate,
; because otherwise this object does not work for its intended purpose of firing the weapon.
;------------------------------------------------------------------------------
Object Demo_GLAVehicleBattleBusDeathWeaponDummySuicide

Expand All @@ -22480,14 +22482,17 @@ Object Demo_GLAVehicleBattleBusDeathWeaponDummySuicide
KindOf = NO_COLLIDE IMMOBILE UNATTACKABLE INERT

; *** ENGINEERING Parameters ***
Body = ImmortalBody ModuleTag_01
Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = DeletionUpdate ModuleTag_02
MinLifetime = 1 ; min lifetime in msec
MaxLifetime = 1 ; max lifetime in msec
Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 1
MaxLifetime = 1
End

Behavior = DestroyDie ModuleTag_03
End

Behavior = FireWeaponWhenDeadBehavior ModuleTag998
Expand All @@ -22505,14 +22510,17 @@ Object Demo_GLAVehicleBattleBusDeathWeaponDummy
KindOf = NO_COLLIDE IMMOBILE UNATTACKABLE INERT

; *** ENGINEERING Parameters ***
Body = ImmortalBody ModuleTag_01
Body = ActiveBody ModuleTag_01
MaxHealth = 1.0
InitialHealth = 1.0
End

Behavior = DeletionUpdate ModuleTag_02
MinLifetime = 1 ; min lifetime in msec
MaxLifetime = 1 ; max lifetime in msec
Behavior = LifetimeUpdate ModuleTag_02
MinLifetime = 1
MaxLifetime = 1
End

Behavior = DestroyDie ModuleTag_03
End

Behavior = FireWeaponWhenDeadBehavior ModuleTag999
Expand Down

0 comments on commit 6c8aabe

Please sign in to comment.