From d7c9a6cbc83f89f9db9c61d0136d00b5b37c4a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 25 Dec 2014 15:44:12 +0100 Subject: [PATCH] add the Nod Missile Silo and Cluster Missile --- mods/ts/cursors.yaml | 4 +- mods/ts/rules/misc.yaml | 12 +++++ mods/ts/rules/structures.yaml | 53 ++++++++++++++++++++ mods/ts/sequences/misc.yaml | 14 ++++++ mods/ts/sequences/structures.yaml | 38 ++++++++++++++ mods/ts/weapons.yaml | 82 +++++++++++++++++++++++++++++++ 6 files changed, 201 insertions(+), 2 deletions(-) diff --git a/mods/ts/cursors.yaml b/mods/ts/cursors.yaml index 791f002be8..a3e65b093c 100644 --- a/mods/ts/cursors.yaml +++ b/mods/ts/cursors.yaml @@ -147,8 +147,8 @@ Cursors: Start: 213 Length: 1 nuke: - Start: 90 - Length: 7 + Start: 279 + Length: 20 sell: Start: 129 Length: 10 diff --git a/mods/ts/rules/misc.yaml b/mods/ts/rules/misc.yaml index a2dfd32804..3c5d96021a 100644 --- a/mods/ts/rules/misc.yaml +++ b/mods/ts/rules/misc.yaml @@ -10,3 +10,15 @@ waypoint: RenderEditorOnly: BodyOrientation: +CAMERA: + Immobile: + OccupiesSpace: false + Health: + HP: 1000 + RevealsShroud: + Range: 10c0 + ProximityCaptor: + Types: Camera + BodyOrientation: + DetectCloaked: + Range: 10 \ No newline at end of file diff --git a/mods/ts/rules/structures.yaml b/mods/ts/rules/structures.yaml index 36c6a70560..f2b1bba078 100644 --- a/mods/ts/rules/structures.yaml +++ b/mods/ts/rules/structures.yaml @@ -1288,6 +1288,59 @@ NAPULS: Power: Amount: -150 +NAMISL: + Inherits: ^Building + Buildable: + Queue: Defense + BuildPaletteOrder: 100 + Owner: nod + Prerequisites: natech + BuildLimit: 1 + Valued: + Cost: 1300 + Tooltip: + Name: Nod Missile Silo + Description: Launches a devastating missile\nat a target location.\nRequires power to operate. + ProvidesCustomPrerequisite: + Prerequisite: tech + Building: + Footprint: xx xx + Dimensions: 2,2 + Selectable: + Bounds: 75,48 + Health: + HP: 1000 + Armor: + Type: Wood + RevealsShroud: + Range: 4c0 + WithIdleOverlay@LIGHTS: + Sequence: idle-lights + Power: + Amount: -50 + CanPowerDown: + RequiresPower: + DisabledOverlay: + SupportPowerChargeBar: + NukePower: + Icon: clustermissile + ChargeTime: 540 + Description: Cluster Missile + LongDesc: Launches a conventional warhead\nat a target location. + BeginChargeSound: + EndChargeSound: 00-i154.aud + SelectTargetSound: + InsufficientPowerSound: + IncomingSound: 00-i150.aud + LaunchSound: icbm1.aud + MissileWeapon: ClusterMissile + SpawnOffset: 0,427,0 + DisplayTimer: False + DisplayBeacon: False + DisplayRadarPing: True + BeaconPoster: + CameraActor: camera + ANYPOWER: Tooltip: Name: Power Plant diff --git a/mods/ts/sequences/misc.yaml b/mods/ts/sequences/misc.yaml index 320c52464b..61e0955b58 100644 --- a/mods/ts/sequences/misc.yaml +++ b/mods/ts/sequences/misc.yaml @@ -537,3 +537,17 @@ largecraters: cr12: crater12 Length: 1 Offset: 0, -24 + +icon: + clustermissile: mltiicon + Start: 0 + ioncannon: ioncicon + Start: 0 + +clustermissile: + up: null # TODO + Start: 0 + Length: * + down: null # TODO + Start: 0 + Length: * \ No newline at end of file diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index ea4cbb68d0..2c357d8caa 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -1307,3 +1307,41 @@ gadept: Offset: 0, -36 icon: fixicon Start: 0 + +namisl: + idle: ntmisl + Start: 0 + Offset: 0, -24 + damaged-idle: ntmisl + Start: 1 + Offset: 0, -24 + critical-idle: ntmisl + Start: 2 + Offset: 0, -24 + idle-lights: ntmisl_b + Start: 0 + Length: 10 + Tick: 120 + Offset: 0, -24 + damaged-idle-lights: ntmisl_b + Start: 10 + Length: 10 + Tick: 120 + Offset: 0, -24 + make: ntmislmk + Start: 0 + Length: 18 + ShadowStart: 18 + Offset: 0, -24 + active: ntmisl_a + Start: 0 + Length: 10 + Tick: 80 + Offset: 0, -24 + damaged-active: ntmisl_a + Start: 10 + Length: 10 + Tick: 80 + Offset: 0, -24 + icon: msslicon + Start: 0 diff --git a/mods/ts/weapons.yaml b/mods/ts/weapons.yaml index bb5aca0cf0..6b9747ef0e 100644 --- a/mods/ts/weapons.yaml +++ b/mods/ts/weapons.yaml @@ -1182,3 +1182,85 @@ TiberiumExplosion: Explosion: large_explosion ImpactSound: expnew09.aud +ClusterMissile: + ValidTargets: Ground, Water, Air + Warhead@ImpactDamage0: SpreadDamage + Spread: 1c0 + Damage: 150 + Falloff: 1000, 368, 135, 50, 18, 7, 0 + DeathType: 5 + ValidTargets: Ground, Water, Air + Versus: + Concrete: 25 + Warhead@SoundEffect0: CreateEffect + Explosion: large_explosion + ImpactSound: expnew19.aud + Warhead@ResourceDestruction0: DestroyResource + Size: 1 + Warhead@ClusterSmudges0: LeaveSmudge + SmudgeType: LargeCrater + Size: 1 + Warhead@ClusterDamage1: SpreadDamage + Spread: 2c0 + Damage: 60 + Falloff: 1000, 368, 135, 50, 18, 7, 0 + DeathType: 5 + Delay: 5 + ValidTargets: Ground, Water, Air + Versus: + Concrete: 25 + Warhead@ResourceDestruction1: DestroyResource + Size: 2 + Delay: 5 + Warhead@ClusterSmudges1: LeaveSmudge + SmudgeType: LargeScorch + Size: 2 + Delay: 5 + Warhead@ClusterDamage2: SpreadDamage + Spread: 3c0 + Damage: 60 + Falloff: 1000, 368, 135, 50, 18, 7, 0 + DeathType: 5 + Delay: 10 + ValidTargets: Ground, Water, Air + Versus: + Concrete: 25 + Warhead@ResourceDestruction2: DestroyResource + Size: 3 + Delay: 10 + Warhead@ClusterSmudges2: LeaveSmudge + SmudgeType: LargeScorch + Size: 3 + Delay: 10 + Warhead@ClusterDamage3: SpreadDamage + Spread: 4c0 + Damage: 60 + Falloff: 1000, 368, 135, 50, 18, 7, 0 + DeathType: 5 + Delay: 15 + ValidTargets: Ground, Water, Air + Versus: + Concrete: 25 + Warhead@ResourceDestruction3: DestroyResource + Size: 4 + Delay: 15 + Warhead@ClusterSmudges3: LeaveSmudge + SmudgeType: MediumScorch + Size: 4 + Delay: 15 + Warhead@ClusterDamage4: SpreadDamage + Spread: 5c0 + Damage: 60 + Falloff: 1000, 368, 135, 50, 18, 7, 0 + DeathType: 5 + Delay: 20 + ValidTargets: Ground, Water, Air + Versus: + Concrete: 25 + Warhead@ResourceDestruction4: DestroyResource + Size: 5 + Delay: 20 + Warhead@ClusterSmudges4: LeaveSmudge + SmudgeType: SmallScorch + Size: 5 + Delay: 20