Reimplement demolition lock using conditions.

This commit is contained in:
Paul Chote
2018-10-27 17:09:30 +00:00
committed by abcdefg30
parent 0901a7d9de
commit 18b84750aa
25 changed files with 239 additions and 71 deletions

View File

@@ -369,7 +369,10 @@
MustBeDestroyed:
RequiredForShortGame: true
CaptureNotification:
Demolishable:
Condition: being-demolished
Sellable:
RequiresCondition: !being-demolished
SellSounds: cashturn.aud
WithMakeAnimation:
ThrowsShrapnel@SMALL:
@@ -478,9 +481,11 @@
TargetTypes: Ground, Wall, C4
WithWallSpriteBody:
Type: wall
Sellable:
SellSounds: cashturn.aud
Demolishable:
Condition: being-demolished
Sellable:
RequiresCondition: !being-demolished
SellSounds: cashturn.aud
ScriptTriggers:
ConditionManager:
Health:

View File

@@ -93,6 +93,8 @@ NAFNCE:
Types: laserfence
-Crushable:
-Sellable:
Demolishable:
-Condition:
-Targetable:
-Building:
EnergyWall:

View File

@@ -28,11 +28,12 @@ GACNST:
Value: 2500
BaseBuilding:
Transforms:
RequiresCondition: factundeploy
PauseOnCondition: being-demolished
IntoActor: mcv
Offset: 1,1
Facing: 96
DeployCursor: undeploy
RequiresCondition: factundeploy
GrantConditionOnPrerequisite@GLOBALFACTUNDEPLOY:
Condition: factundeploy
Prerequisites: global-factundeploy