Merge pull request #4855 from ScottNZ/phase-transport

Improve cloaking logic and add phase transport
This commit is contained in:
Matthias Mailänder
2014-03-14 11:40:18 +01:00
14 changed files with 136 additions and 39 deletions

BIN
mods/ra/bits/stnk.shp Normal file

Binary file not shown.

BIN
mods/ra/bits/stnkicon.shp Normal file

Binary file not shown.

View File

@@ -165,8 +165,6 @@
Voice: VehicleVoice
TargetableUnit:
TargetTypes: Ground, Water
DetectCloaked:
Range: 3
HiddenUnderFog:
AttackMove:
GainsExperience:

View File

@@ -10,7 +10,7 @@ DOG:
Cost: 200
Tooltip:
Name: Attack Dog
Description: Anti-infantry unit. Not fooled by the \nSpy's disguise.\n Strong vs Infantry\n Weak vs Vehicles
Description: Anti-infantry unit.\nCan detect cloaked units and spies.\n Strong vs Infantry\n Weak vs Vehicles
Selectable:
Voice: DogVoice
Bounds: 12,17,-1,-4
@@ -26,6 +26,8 @@ DOG:
RenderInfantry:
IdleAnimations: idle1,idle2
IgnoresDisguise:
DetectCloaked:
Range: 5
E1:
Inherits: ^Infantry
@@ -444,7 +446,7 @@ SNIPER:
Cost: 700
Tooltip:
Name: Sniper
Description: Elite sniper infantry unit.\n Strong vs Infantry\n Weak vs Vehicles
Description: Elite sniper infantry unit.\nCan detect cloaked units.\n Strong vs Infantry\n Weak vs Vehicles
Buildable:
Queue: Infantry
BuildPaletteOrder: 80
@@ -462,7 +464,7 @@ SNIPER:
RevealsShroud:
Range: 6c0
AutoTarget:
InitialStance: HoldFire
InitialStance: ReturnFire
Armament:
Weapon: Sniper
AttackFrontal:
@@ -481,6 +483,8 @@ SNIPER:
CaptureTypes: CivilianBuilding
Sabotage: no
SabotageHPRemoval: 0
DetectCloaked:
Range: 6
Zombie:
Inherits: ^Infantry

View File

@@ -10,7 +10,7 @@ SS:
Cost: 950
Tooltip:
Name: Submarine
Description: Submerged anti-ship unit armed with \ntorpedoes.\n Strong vs Ships\n Weak vs Everything\n Special Ability: Submerge
Description: Submerged anti-ship unit armed with\ntorpedoes.\nCan detect other submarines.\n Strong vs Ships\n Weak vs Everything\n Special Ability: Submerge
Health:
HP: 250
Armor:
@@ -26,6 +26,7 @@ SS:
CloakedTargetTypes: Underwater
RenderUnit:
Cloak:
CloakTypes: Underwater
InitialDelay: 0
CloakDelay: 50
CloakSound: subshow1.aud
@@ -40,9 +41,12 @@ SS:
Chronoshiftable:
IronCurtainable:
RepairableNear:
-DetectCloaked:
AutoTarget:
InitialStance: HoldFire
InitialStance: ReturnFire
DetectCloaked:
CloakTypes: Underwater
Range: 4
RenderDetectionCircle:
MSUB:
Inherits: ^Ship
@@ -56,7 +60,7 @@ MSUB:
Cost: 2400
Tooltip:
Name: Missile Submarine
Description: Submerged anti-ground unit armed with \nlong-range ballistic missiles.\n Strong vs Buildings\n Weak vs Everything\n Special Ability: Submerge
Description: Submerged anti-ground unit armed with\nlong-range ballistic missiles.\nCan detect other submarines.\n Strong vs Buildings\n Weak vs Everything\n Special Ability: Submerge
Health:
HP: 400
Armor:
@@ -72,6 +76,7 @@ MSUB:
TargetTypes: Ground, Water
CloakedTargetTypes: Underwater
Cloak:
CloakTypes: Underwater
InitialDelay: 0
CloakDelay: 100
CloakSound: subshow1.aud
@@ -86,9 +91,12 @@ MSUB:
Chronoshiftable:
IronCurtainable:
RepairableNear:
-DetectCloaked:
AutoTarget:
InitialStance: HoldFire
InitialStance: ReturnFire
DetectCloaked:
CloakTypes: Underwater
Range: 4
RenderDetectionCircle:
DD:
Inherits: ^Ship
@@ -102,7 +110,7 @@ DD:
Cost: 1000
Tooltip:
Name: Destroyer
Description: Fast multi-role ship. \n Strong vs Submarines, Aircraft\n Weak vs Infantry, Tanks
Description: Fast multi-role ship.\nCan detect submarines.\n Strong vs Submarines, Aircraft\n Weak vs Infantry, Tanks
Health:
HP: 400
Armor:
@@ -133,6 +141,7 @@ DD:
IronCurtainable:
RepairableNear:
DetectCloaked:
CloakTypes: Underwater
Range: 4
RenderDetectionCircle:
@@ -148,7 +157,7 @@ CA:
Cost: 2400
Tooltip:
Name: Cruiser
Description: Very slow long-range ship. \n Strong vs Buildings\n Weak vs Ships, Submarines
Description: Very slow long-range ship.\n Strong vs Buildings\n Weak vs Ships, Submarines
Health:
HP: 800
Armor:
@@ -237,7 +246,7 @@ PT:
Cost: 500
Tooltip:
Name: Gunboat
Description: Light scout & support ship. \n Strong vs Ships, Submarines\n Weak vs Aircraft
Description: Light scout & support ship.\nCan detect submarines.\n Strong vs Ships, Submarines\n Weak vs Aircraft
Health:
HP: 200
Armor:
@@ -266,4 +275,8 @@ PT:
Chronoshiftable:
IronCurtainable:
RepairableNear:
DetectCloaked:
CloakTypes: Underwater
Range: 4
RenderDetectionCircle:

View File

@@ -373,7 +373,7 @@ DOME:
Cost: 1800
Tooltip:
Name: Radar Dome
Description: Provides an overview of the battlefield.\n Requires power to operate.
Description: Provides an overview of the battlefield.\nCan detect cloaked units.\n Requires power to operate.
Building:
Power: -40
Footprint: xx xx
@@ -393,6 +393,9 @@ DOME:
Infiltratable:
Type: Exploration
InfiltrateForExploration:
DetectCloaked:
Range: 10
RenderDetectionCircle:
PBOX:
Inherits: ^Building
@@ -600,6 +603,8 @@ HBOX:
OnEnter: HBOX.sniper
OnExit: HBOX
SkipMakeAnims: true
DetectCloaked:
Range: 6
HBOX.E1:
Inherits: HBOX
@@ -611,7 +616,7 @@ HBOX.E1:
Hotkey: l
Tooltip:
Name: Camo Pillbox (Guns)
Description: Hidden defensive structure.\n Strong vs Infantry, Light Vehicles\n Weak vs Tanks, Aircraft
Description: Hidden defensive structure.\nCan detect cloaked units.\n Strong vs Infantry, Light Vehicles\n Weak vs Tanks, Aircraft
RenderBuilding:
Image: HBOX
RenderRangeCircle:
@@ -1062,7 +1067,7 @@ AFLD:
Icon: spyplane
ChargeTime: 180
Description: Spy Plane
LongDesc: Reveals an area of the map.
LongDesc: Reveals an area of the map\nand cloaked enemy units.
SelectTargetSound: slcttgt1.aud
EndChargeSound: spypln1.aud
ParatroopersPower:

View File

@@ -15,6 +15,7 @@ MINP:
CloakSound:
UncloakSound:
Palette:
CloakTypes: Mine
Tooltip:
Name: Mine
ProximityCaptor:
@@ -40,6 +41,7 @@ MINV:
CloakSound:
UncloakSound:
Palette:
CloakTypes: Mine
Tooltip:
Name: Mine
ProximityCaptor:
@@ -127,6 +129,8 @@ CAMERA:
ProximityCaptor:
Types: Camera
BodyOrientation:
DetectCloaked:
Range: 10
FLARE:
Immobile:

View File

@@ -398,7 +398,7 @@ MNLY.AP:
Cost: 800
Tooltip:
Name: Minelayer
Description: Lays mines to destroy unwary enemy units.\n Unarmed
Description: Lays mines to destroy unwary enemy units.\nCan detect mines.\n Unarmed
Health:
HP: 100
Armor:
@@ -416,6 +416,7 @@ MNLY.AP:
Ammo: 3
DetectCloaked:
Range: 5
CloakTypes: Mine
RenderDetectionCircle:
MNLY.AT:
@@ -430,7 +431,7 @@ MNLY.AT:
Cost: 800
Tooltip:
Name: Minelayer
Description: Lays mines to destroy unwary enemy units.\n Unarmed
Description: Lays mines to destroy unwary enemy units.\nCan detect mines.\n Unarmed
Health:
HP: 100
Armor:
@@ -448,6 +449,7 @@ MNLY.AT:
Ammo: 3
DetectCloaked:
Range: 5
CloakTypes: Mine
RenderDetectionCircle:
TRUK:
@@ -515,7 +517,7 @@ MRJ:
Cost: 1000
Tooltip:
Name: Mobile Radar Jammer
Description: Jams nearby enemy radar domes\nand deflects incoming missiles.\n Unarmed
Description: Jams nearby enemy radar domes\nand deflects incoming missiles.\nCan detect cloaked units.\n Unarmed
Buildable:
Queue: Vehicle
BuildPaletteOrder: 150
@@ -542,6 +544,8 @@ MRJ:
JamsMissiles:
Range: 4
RenderJammerCircle:
DetectCloaked:
Range: 6
TTNK:
Inherits: ^Tank
@@ -672,11 +676,11 @@ CTNK:
RenderUnit:
AutoTarget:
Armament@PRIMARY:
Weapon: ChronoTusk
Weapon: APTusk
LocalOffset: 0,-171,0
LocalYaw: 100
Armament@SECONDARY:
Weapon: ChronoTusk
Weapon: APTusk
LocalOffset: 0,171,0
LocalYaw: -100
AttackFrontal:
@@ -713,4 +717,47 @@ QTNK:
-EjectOnDeath:
TargetableUnit:
TargetTypes: Ground, MADTank
STNK:
Inherits: ^Vehicle
Buildable:
Queue: Vehicle
BuildPaletteOrder: 170
Prerequisites: atek
Owner: allies
Hotkey: p
Valued:
Cost: 1350
Tooltip:
Name: Phase Transport
Description: Lightly armored infantry transport\nwhich can cloak. Can detect cloaked units.\n Strong vs Light Vehicles\n Weak vs Aircraft
Selectable:
Bounds: 28,28
Health:
HP: 300
Armor:
Type: Light
Mobile:
Speed: 113
Crushes: wall, mine, crate, infantry
RevealsShroud:
Range: 6c0
RenderUnit:
AutoTarget:
InitialStance: ReturnFire
Armament:
Weapon: APTusk
LocalOffset: 400,0,0
Turreted:
ROT: 5
AttackTurreted:
WithTurret:
Cargo:
Types: Infantry
MaxWeight: 3
PipCount: 3
Cloak:
InitialDelay: 125
CloakDelay: 250
UncloakOnUnload: True
DetectCloaked:
Range: 6

View File

@@ -264,4 +264,14 @@ qtnk:
Facings: 8
Length: 8
icon: qtnkicon
Start: 0
stnk:
idle:
Start: 0
Facings: 32
turret:
Start: 38
Facings: 32
icon: stnkicon
Start: 0

View File

@@ -1241,7 +1241,7 @@ Sniper:
Concrete: 0%
InfDeath: 2
ChronoTusk:
APTusk:
ROF: 60
Range: 6c0
Report: MISSILE6.AUD