Reimplement demolition lock using conditions.
This commit is contained in:
@@ -13,16 +13,22 @@ World:
|
||||
|
||||
NUKE:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
Buildable:
|
||||
BuildLimit: 1
|
||||
|
||||
PYLE:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
Buildable:
|
||||
BuildLimit: 1
|
||||
|
||||
FACT:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
PROC:
|
||||
Buildable:
|
||||
|
||||
@@ -144,6 +144,8 @@ HPAD.IN:
|
||||
BuildSounds: placbldg.aud, build5.aud
|
||||
UndeploySounds: cashturn.aud
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
-Power:
|
||||
|
||||
ORCA.IN:
|
||||
|
||||
@@ -744,7 +744,10 @@
|
||||
SpawnActorsOnSell:
|
||||
ActorTypes: e6,e1,e1,e1
|
||||
EngineerRepairable:
|
||||
Demolishable:
|
||||
Condition: being-demolished
|
||||
Sellable:
|
||||
RequiresCondition: !being-demolished
|
||||
SellSounds: cashturn.aud
|
||||
CaptureManager:
|
||||
Capturable:
|
||||
|
||||
@@ -20,10 +20,11 @@ FACT:
|
||||
Production:
|
||||
Produces: Building.GDI, Building.Nod, Defence.GDI, Defence.Nod
|
||||
Transforms:
|
||||
RequiresCondition: factundeploy
|
||||
PauseOnCondition: being-demolished
|
||||
IntoActor: mcv
|
||||
Offset: 1,1
|
||||
Facing: 108
|
||||
RequiresCondition: factundeploy
|
||||
GrantConditionOnPrerequisite@GLOBALFACTUNDEPLOY:
|
||||
Condition: factundeploy
|
||||
Prerequisites: global-factundeploy
|
||||
|
||||
@@ -144,6 +144,8 @@ sietch:
|
||||
-Sellable:
|
||||
-Capturable:
|
||||
-RepairableBuilding:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
ProvidesPrerequisite@buildingname:
|
||||
-WithMakeAnimation:
|
||||
-WithCrumbleOverlay:
|
||||
|
||||
@@ -409,11 +409,13 @@
|
||||
ActorLostNotification:
|
||||
Notification: BuildingLost
|
||||
ShakeOnDeath:
|
||||
Demolishable:
|
||||
Condition: being-demolished
|
||||
Sellable:
|
||||
RequiresCondition: !being-demolished
|
||||
SellSounds: BUILD1.WAV
|
||||
Guardable:
|
||||
Range: 3c0
|
||||
Demolishable:
|
||||
DamagedByTerrain:
|
||||
Damage: 500
|
||||
DamageInterval: 100
|
||||
|
||||
@@ -75,6 +75,8 @@ ATEK:
|
||||
CaptureManager:
|
||||
-BeingCapturedCondition:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
PDOX:
|
||||
Inherits@IDISABLE: ^DisableOnLowPower
|
||||
@@ -85,6 +87,8 @@ PDOX:
|
||||
CaptureManager:
|
||||
-BeingCapturedCondition:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
IRON:
|
||||
Buildable:
|
||||
|
||||
@@ -170,6 +170,8 @@ TENT:
|
||||
Production:
|
||||
Produces: Infantry, Soldier, Dog, Defense
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
BaseProvider:
|
||||
Range: 12c0
|
||||
Power:
|
||||
|
||||
@@ -39,13 +39,19 @@ AFLD:
|
||||
DropItems: E1,E1,E1,E2,E2
|
||||
-RallyPoint:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
DOME:
|
||||
CaptureManager:
|
||||
-BeingCapturedCondition:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
POWR:
|
||||
CaptureManager:
|
||||
-BeingCapturedCondition:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
@@ -33,6 +33,8 @@ FTUR:
|
||||
CaptureManager:
|
||||
-BeingCapturedCondition:
|
||||
-Sellable:
|
||||
Demolishable:
|
||||
-Condition:
|
||||
|
||||
PBOX:
|
||||
-AutoTarget:
|
||||
|
||||
@@ -663,8 +663,10 @@
|
||||
RequiredForShortGame: true
|
||||
GpsDot:
|
||||
String: Structure
|
||||
Demolishable:
|
||||
Condition: being-demolished
|
||||
Sellable:
|
||||
RequiresCondition: !being-captured
|
||||
RequiresCondition: !being-captured && !being-demolished
|
||||
SellSounds: cashturn.aud
|
||||
WithBuildingRepairDecoration:
|
||||
Image: allyrepair
|
||||
|
||||
@@ -1127,13 +1127,13 @@ FACT:
|
||||
ActorTypes: e1,e1,e1,tecn,tecn,e6
|
||||
BaseBuilding:
|
||||
Transforms:
|
||||
PauseOnCondition: chrono-vortex || being-captured
|
||||
RequiresCondition: factundeploy
|
||||
PauseOnCondition: chrono-vortex || being-captured || being-demolished
|
||||
IntoActor: mcv
|
||||
Offset: 1,1
|
||||
Facing: 96
|
||||
RequiresCondition: factundeploy
|
||||
Sellable:
|
||||
RequiresCondition: !chrono-vortex && !being-captured
|
||||
RequiresCondition: !chrono-vortex && !being-captured && !being-demolished
|
||||
GrantConditionOnPrerequisite@GLOBALFACTUNDEPLOY:
|
||||
Condition: factundeploy
|
||||
Prerequisites: global-factundeploy
|
||||
|
||||
@@ -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