Add ^Submarine and make submarines inherit it

This commit is contained in:
Gustas
2023-03-25 13:57:27 +02:00
committed by Smittytron
parent e28f45f785
commit f90dba2c6b
2 changed files with 24 additions and 38 deletions

View File

@@ -544,6 +544,28 @@
WithFacingSpriteBody:
HitShape:
^Submarine:
Inherits: ^Ship
Targetable:
TargetTypes: WaterActor, Ship, Submarine, Repair
RequiresCondition: !underwater
Targetable@UNDERWATER:
TargetTypes: Underwater, Submarine
RequiresCondition: underwater
Cloak:
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 50
CloakSound: subshow1.aud
UncloakSound: subshow1.aud
CloakedCondition: underwater
Palette: submerged
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
ValidDamageStates: Critical
-MustBeDestroyed:
^NeutralPlane:
Inherits@1: ^ExistsInWorld
Inherits@4: ^SpriteActor

View File

@@ -1,5 +1,5 @@
SS:
Inherits: ^Ship
Inherits: ^Submarine
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable:
Queue: Ship
@@ -26,24 +26,6 @@ SS:
RevealGeneratedShroud: False
RevealsShroud@GAPGEN:
Range: 5c0
Targetable:
TargetTypes: WaterActor, Ship, Submarine, Repair
RequiresCondition: !underwater
Targetable@UNDERWATER:
TargetTypes: Underwater, Submarine
RequiresCondition: underwater
Cloak:
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 50
CloakSound: subshow1.aud
UncloakSound: subshow1.aud
CloakedCondition: underwater
Palette: submerged
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
ValidDamageStates: Critical
Armament:
Weapon: TorpTube
LocalOffset: 0,-171,0, 0,171,0
@@ -62,12 +44,11 @@ SS:
Explodes:
Weapon: UnitExplodeSubmarine
EmptyWeapon: UnitExplodeSubmarine
-MustBeDestroyed:
Selectable:
DecorationBounds: 1621, 1621
MSUB:
Inherits: ^Ship
Inherits: ^Submarine
Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Buildable:
Queue: Ship
@@ -94,24 +75,8 @@ MSUB:
RevealGeneratedShroud: False
RevealsShroud@GAPGEN:
Range: 5c0
Targetable:
TargetTypes: WaterActor, Ship, Submarine, Repair
RequiresCondition: !underwater
Targetable@UNDERWATER:
TargetTypes: Underwater, Submarine
RequiresCondition: underwater
Cloak:
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 100
CloakSound: subshow1.aud
UncloakSound: subshow1.aud
CloakedCondition: underwater
Palette: submerged
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
ValidDamageStates: Critical
Armament@PRIMARY:
Weapon: SubMissile
LocalOffset: 0,-171,0, 0,171,0
@@ -134,7 +99,6 @@ MSUB:
Explodes:
Weapon: UnitExplodeSubmarine
EmptyWeapon: UnitExplodeSubmarine
-MustBeDestroyed:
Selectable:
DecorationBounds: 1877, 1877