Reimplement demolition lock using conditions.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -93,6 +93,8 @@ NAFNCE:
|
||||
Types: laserfence
|
||||
-Crushable:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
-Targetable:
|
||||
-Building:
|
||||
EnergyWall:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user