Make TS aircraft crash when EMP'd mid-air

And refuse move orders if EMP'd while landed.
Matches original behaviour.
This commit is contained in:
reaperrr
2019-09-21 21:11:16 +02:00
committed by Paul Chote
parent 59bcac410f
commit 7a095f30ec
3 changed files with 34 additions and 20 deletions

View File

@@ -67,10 +67,9 @@ DSHP:
Actor: DSHP.Husk Actor: DSHP.Husk
ORCA: ORCA:
Inherits: ^Aircraft Inherits: ^EMPableAircraft
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@EMPDISABLE: ^EmpDisable
Valued: Valued:
Cost: 1000 Cost: 1000
Tooltip: Tooltip:
@@ -121,10 +120,9 @@ ORCA:
RearmActors: gahpad, nahpad RearmActors: gahpad, nahpad
ORCAB: ORCAB:
Inherits: ^Aircraft Inherits: ^EMPableAircraft
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@EMPDISABLE: ^EmpDisable
Valued: Valued:
Cost: 1600 Cost: 1600
Tooltip: Tooltip:
@@ -179,8 +177,7 @@ ORCAB:
RearmActors: gahpad, nahpad RearmActors: gahpad, nahpad
ORCATRAN: ORCATRAN:
Inherits: ^Aircraft Inherits: ^EMPableAircraft
Inherits@EMPDISABLE: ^EmpDisable
Valued: Valued:
Cost: 1200 Cost: 1200
Tooltip: Tooltip:
@@ -217,10 +214,13 @@ ORCATRAN:
AfterUnloadDelay: 40 AfterUnloadDelay: 40
SpawnActorOnDeath: SpawnActorOnDeath:
Actor: ORCATRAN.Husk Actor: ORCATRAN.Husk
RequiresCondition: !empdisable
SpawnActorOnDeath@EMP:
Actor: ORCATRAN.Husk.EMP
RequiresCondition: empdisable
TRNSPORT: TRNSPORT:
Inherits: ^Aircraft Inherits: ^EMPableAircraft
Inherits@EMPDISABLE: ^EmpDisable
Valued: Valued:
Cost: 750 Cost: 750
Tooltip: Tooltip:
@@ -255,12 +255,15 @@ TRNSPORT:
Bounds: 44,32,0,-8 Bounds: 44,32,0,-8
SpawnActorOnDeath: SpawnActorOnDeath:
Actor: TRNSPORT.Husk Actor: TRNSPORT.Husk
RequiresCondition: !empdisable
SpawnActorOnDeath@EMP:
Actor: TRNSPORT.Husk.EMP
RequiresCondition: empdisable
SCRIN: SCRIN:
Inherits: ^Aircraft Inherits: ^EMPableAircraft
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@EMPDISABLE: ^EmpDisable
Valued: Valued:
Cost: 1500 Cost: 1500
Tooltip: Tooltip:
@@ -280,7 +283,6 @@ SCRIN:
CruiseAltitude: 5c0 CruiseAltitude: 5c0
TurnSpeed: 3 TurnSpeed: 3
Speed: 168 Speed: 168
AirborneCondition: airborne
TakeoffSounds: dropup1.aud TakeoffSounds: dropup1.aud
LandingSounds: dropdwn1.aud LandingSounds: dropdwn1.aud
CanHover: false CanHover: false
@@ -315,10 +317,9 @@ SCRIN:
RearmActors: gahpad, nahpad RearmActors: gahpad, nahpad
APACHE: APACHE:
Inherits: ^Aircraft Inherits: ^EMPableAircraft
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@EMPDISABLE: ^EmpDisable
Valued: Valued:
Cost: 1000 Cost: 1000
Tooltip: Tooltip:

View File

@@ -100,16 +100,21 @@
ExternalCondition@CRATE-SPEED: ExternalCondition@CRATE-SPEED:
Condition: crate-speed Condition: crate-speed
^EmpVisualEffects:
WithColoredOverlay@EMPDISABLE:
Palette: disabled
WithIdleOverlay@EMPDISABLE:
Sequence: emp-overlay
Palette: effect
^EmpDisable: ^EmpDisable:
Inherits: ^EmpVisualEffects
WithColoredOverlay@EMPDISABLE: WithColoredOverlay@EMPDISABLE:
RequiresCondition: empdisable RequiresCondition: empdisable
Palette: disabled
TimedConditionBar@EMPDISABLE: TimedConditionBar@EMPDISABLE:
Condition: empdisable Condition: empdisable
Color: FFFFFF Color: FFFFFF
WithIdleOverlay@EMPDISABLE: WithIdleOverlay@EMPDISABLE:
Sequence: emp-overlay
Palette: effect
RequiresCondition: empdisable RequiresCondition: empdisable
PowerMultiplier@EMPDISABLE: PowerMultiplier@EMPDISABLE:
RequiresCondition: empdisable RequiresCondition: empdisable
@@ -912,6 +917,14 @@
BobDistance: -64 BobDistance: -64
InitialHeight: 64 InitialHeight: 64
^EMPableAircraft:
Inherits: ^Aircraft
Inherits@EMP: ^EmpDisable
Aircraft:
PauseOnCondition: empdisable
KillsSelf:
RequiresCondition: airborne && empdisable
^AircraftHusk: ^AircraftHusk:
RenderVoxels: RenderVoxels:
RenderSprites: RenderSprites:
@@ -934,7 +947,7 @@
FallsToEarth: FallsToEarth:
Spins: true Spins: true
Moves: true Moves: true
Velocity: 86 Velocity: 112
HitShape: HitShape:
^Visceroid: ^Visceroid:

View File

@@ -119,14 +119,14 @@ EMPulseCannon:
Speed: 425 Speed: 425
Blockable: false Blockable: false
Shadow: true Shadow: true
LaunchAngle: 62 LaunchAngle: 96
Image: pulsball Image: pulsball
Warhead@1Eff: CreateEffect Warhead@1Eff: CreateEffect
Explosions: pulse_explosion Explosions: pulse_explosion
ExplosionPalette: effect-ignore-lighting-alpha75 ExplosionPalette: effect-ignore-lighting-alpha75
ImpactActors: false ImpactActors: false
Warhead@emp: GrantExternalCondition Warhead@emp: GrantExternalCondition
Range: 4c0 Range: 6c0
Duration: 250 Duration: 250
Condition: empdisable Condition: empdisable
ValidTargets: Ground, Water, Underground ValidTargets: Ground, Water, Air, Underground