From 1a5ff440d15cd8df9d5a899d84dff135cd9a9eaa Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 28 Sep 2014 17:55:47 +1300 Subject: [PATCH] Add the stealth generator to TS. --- mods/ts/rules/defaults.yaml | 22 ++++++++++++++++++ mods/ts/rules/structures.yaml | 38 +++++++++++++++++++++++++++++++ mods/ts/sequences/structures.yaml | 25 ++++++++++++++++++++ 3 files changed, 85 insertions(+) diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml index 6b06fa2593..ab217777a8 100644 --- a/mods/ts/rules/defaults.yaml +++ b/mods/ts/rules/defaults.yaml @@ -44,6 +44,11 @@ Demolishable: ScriptTriggers: WithMakeAnimation: + UpgradeManager: + Cloak@CLOAKGENERATOR: + RequiresUpgrade: cloakgenerator + InitialDelay: 0 + CloakDelay: 90 ^Wall: AppearsOnRadar: @@ -82,6 +87,11 @@ LuaScriptEvents: Demolishable: ScriptTriggers: + UpgradeManager: + Cloak@CLOAKGENERATOR: + RequiresUpgrade: cloakgenerator + InitialDelay: 0 + CloakDelay: 90 ^Infantry: AppearsOnRadar: @@ -158,6 +168,10 @@ DeathSound: Zapped DeathTypes: 6 UpgradeManager: + Cloak@CLOAKGENERATOR: + RequiresUpgrade: cloakgenerator + InitialDelay: 0 + CloakDelay: 90 ^CivilianInfantry: Inherits: ^Infantry @@ -253,6 +267,10 @@ TimedUpgradeBar@EMPDISABLE: Upgrade: empdisable Color: 255,255,255 + Cloak@CLOAKGENERATOR: + RequiresUpgrade: cloakgenerator + InitialDelay: 0 + CloakDelay: 90 ^Tank: AppearsOnRadar: @@ -321,6 +339,10 @@ TimedUpgradeBar@EMPDISABLE: Upgrade: empdisable Color: 255,255,255 + Cloak@CLOAKGENERATOR: + RequiresUpgrade: cloakgenerator + InitialDelay: 0 + CloakDelay: 90 ^Helicopter: AppearsOnRadar: diff --git a/mods/ts/rules/structures.yaml b/mods/ts/rules/structures.yaml index 31c567107d..ba0d336dc0 100644 --- a/mods/ts/rules/structures.yaml +++ b/mods/ts/rules/structures.yaml @@ -903,6 +903,44 @@ GADEPT: Power: Amount: -30 +NASTLH: + Inherits: ^Building + Valued: + Cost: 2500 + Tooltip: + Name: Stealth Generator + Description: Generates a cloaking field + Buildable: + BuildPaletteOrder: 80 + Prerequisites: proc,natech + Owner: nod + Queue: Building + Building: + Footprint: xxx xxx + Dimensions: 3,2 + Health: + HP: 600 + Armor: + Type: Wood + RevealsShroud: + Range: 6c0 + WithIdleOverlay@pulse: + Sequence: pulse + PauseOnLowPower: true + WithRangeCircle: + Range: 12c0 + Type: cloakgenerator + Power: + Amount: -350 + RequiresPower: + CanPowerDown: + UpgradeActorsNear: + Upgrades: cloakgenerator + Range: 12c0 + EnableSound: cloak5.aud + DisableSound: cloak5.aud + AffectsParent: true + #TODO: Placeholder, replace with Component Tower + Vulcan Upgrade GAVULC: Inherits: ^Building diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index 5229507fc0..43efeb6f25 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -718,6 +718,31 @@ napuls: icon: pulsicon Start: 0 +nastlh: + idle: ntstlh + Start: 0 + ShadowStart: 3 + damaged-idle: ntstlh + Start: 1 + ShadowStart: 4 + critical-idle: ntstlh + Start: 2 + ShadowStart: 5 + pulse: ntstlh_a + Start: 0 + Length: 4 + Tick: 480 + damaged-pulse: ntstlh_a + Start: 4 + Length: 4 + Tick: 480 + make: ntstlhmk + Start: 0 + Length: 18 + ShadowStart: 20 + icon: clckicon + Start: 0 + gavulc: idle: gtctwr Start: 0