Rules updated to unhardcode cloak diable on criticalHP

Rules updated for CNC mod (uncloak on critical HP)

STNK, stealth crate are affected

Rules updated for D2K mod (uncloak on critical HP)

Saboteur, fremen, stealth raider affected

Rules updated for RA mod (uncloak on critical HP)

Affects
Hijacker, sniper, sub, msub, hbox, stnk.
Mines are not affected, they are not exactly "stealth".
Hijackers and snipers aren't machines and should be able to hide
themselves even when they are wounded but for least surprise to
players, uncloaking stays as well.

Rules updated for TS mod (uncloak on critical HP)

Only affects STNK.
Things that are cloak generators will stay cloaked even when critical
HP! The cloak generation mechanism is by the cloak generator!
This commit is contained in:
forcecore
2017-02-11 19:16:48 -06:00
parent 28ce32d8fa
commit 53e7cf0ef1
9 changed files with 48 additions and 1 deletions

View File

@@ -125,9 +125,12 @@
CloakDelay: 90 CloakDelay: 90
CloakSound: trans1.aud CloakSound: trans1.aud
UncloakSound: trans1.aud UncloakSound: trans1.aud
RequiresCondition: cloak RequiresCondition: cloak && !uncloak
ExternalCondition@CLOAK: ExternalCondition@CLOAK:
Condition: cloak Condition: cloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
^Vehicle: ^Vehicle:
Inherits@1: ^ExistsInWorld Inherits@1: ^ExistsInWorld

View File

@@ -547,6 +547,10 @@ STNK:
CloakDelay: 90 CloakDelay: 90
CloakSound: trans1.aud CloakSound: trans1.aud
UncloakSound: trans1.aud UncloakSound: trans1.aud
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Armament: Armament:
Weapon: 227mm.stnk Weapon: 227mm.stnk
LocalOffset: 213,43,128, 213,-43,128 LocalOffset: 213,43,128, 213,-43,128

View File

@@ -152,6 +152,10 @@ fremen:
CloakSound: STEALTH1.WAV CloakSound: STEALTH1.WAV
UncloakSound: STEALTH2.WAV UncloakSound: STEALTH2.WAV
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
-MustBeDestroyed: -MustBeDestroyed:
Voiced: Voiced:
VoiceSet: FremenVoice VoiceSet: FremenVoice
@@ -246,6 +250,10 @@ saboteur:
UncloakSound: STEALTH2.WAV UncloakSound: STEALTH2.WAV
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move, Damage UncloakOn: Attack, Unload, Infiltrate, Demolish, Move, Damage
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Voiced: Voiced:
VoiceSet: SaboteurVoice VoiceSet: SaboteurVoice

View File

@@ -394,6 +394,10 @@ stealth_raider:
CloakSound: STEALTH1.WAV CloakSound: STEALTH1.WAV
UncloakSound: STEALTH2.WAV UncloakSound: STEALTH2.WAV
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
AutoTarget: AutoTarget:
InitialStance: HoldFire InitialStance: HoldFire
InitialStanceAI: ReturnFire InitialStanceAI: ReturnFire

View File

@@ -508,6 +508,10 @@ HIJACKER:
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
CloakTypes: Cloak, Hijacker CloakTypes: Cloak, Hijacker
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Mobile: Mobile:
Speed: 85 Speed: 85
@@ -589,6 +593,10 @@ SNIPER:
UncloakSound: UncloakSound:
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
DetectCloaked: DetectCloaked:
CloakTypes: Cloak, Hijacker CloakTypes: Cloak, Hijacker
Range: 6c0 Range: 6c0

View File

@@ -36,6 +36,10 @@ SS:
UncloakSound: subshow1.aud UncloakSound: subshow1.aud
CloakedCondition: underwater CloakedCondition: underwater
Palette: submerged Palette: submerged
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Armament: Armament:
Weapon: TorpTube Weapon: TorpTube
LocalOffset: 0,-171,0, 0,171,0 LocalOffset: 0,-171,0, 0,171,0
@@ -93,6 +97,10 @@ MSUB:
UncloakSound: subshow1.aud UncloakSound: subshow1.aud
CloakedCondition: underwater CloakedCondition: underwater
Palette: submerged Palette: submerged
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Armament@PRIMARY: Armament@PRIMARY:
Weapon: SubMissile Weapon: SubMissile
LocalOffset: 0,-171,0, 0,171,0 LocalOffset: 0,-171,0, 0,171,0

View File

@@ -626,6 +626,10 @@ HBOX:
InitialDelay: 125 InitialDelay: 125
CloakDelay: 60 CloakDelay: 60
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Turreted: Turreted:
TurnSpeed: 255 TurnSpeed: 255
-QuantizeFacingsFromSequence: -QuantizeFacingsFromSequence:

View File

@@ -779,6 +779,10 @@ STNK:
CloakSound: appear1.aud CloakSound: appear1.aud
UncloakSound: appear1.aud UncloakSound: appear1.aud
IsPlayerPalette: true IsPlayerPalette: true
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
DetectCloaked: DetectCloaked:
Range: 7c0 Range: 7c0
-MustBeDestroyed: -MustBeDestroyed:

View File

@@ -396,6 +396,10 @@ STNK:
UncloakSound: cloak5.aud UncloakSound: cloak5.aud
IsPlayerPalette: true IsPlayerPalette: true
UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage
RequiresCondition: !uncloak
GrantConditionOnDamageState@UNCLOAK:
Condition: uncloak
ValidDamageStates: Critical
Armament: Armament:
Weapon: Dragon Weapon: Dragon
LocalOffset: 213,43,298, 213,-43,298 LocalOffset: 213,43,298, 213,-43,298