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

@@ -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:

View File

@@ -144,6 +144,8 @@ HPAD.IN:
BuildSounds: placbldg.aud, build5.aud
UndeploySounds: cashturn.aud
-Sellable:
Demolishable:
-Condition:
-Power:
ORCA.IN:

View File

@@ -744,7 +744,10 @@
SpawnActorsOnSell:
ActorTypes: e6,e1,e1,e1
EngineerRepairable:
Demolishable:
Condition: being-demolished
Sellable:
RequiresCondition: !being-demolished
SellSounds: cashturn.aud
CaptureManager:
Capturable:

View File

@@ -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

View File

@@ -144,6 +144,8 @@ sietch:
-Sellable:
-Capturable:
-RepairableBuilding:
Demolishable:
-Condition:
ProvidesPrerequisite@buildingname:
-WithMakeAnimation:
-WithCrumbleOverlay:

View File

@@ -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

View File

@@ -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:

View File

@@ -170,6 +170,8 @@ TENT:
Production:
Produces: Infantry, Soldier, Dog, Defense
-Sellable:
Demolishable:
-Condition:
BaseProvider:
Range: 12c0
Power:

View File

@@ -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:

View File

@@ -33,6 +33,8 @@ FTUR:
CaptureManager:
-BeingCapturedCondition:
-Sellable:
Demolishable:
-Condition:
PBOX:
-AutoTarget:

View File

@@ -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

View File

@@ -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

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