Add enter-cloak & exit-cloak effect for Cloak

This commit is contained in:
dnqbob
2022-01-14 13:51:43 +08:00
committed by Matthias Mailänder
parent d67f696bd0
commit 831bed2c4d
11 changed files with 89 additions and 25 deletions

View File

@@ -208,7 +208,7 @@ C17:
Cloak:
InitialDelay: 0
CloakDelay: 0
CloakTypes: C17
DetectionTypes: C17
RequiresCondition: global-C17-stealth
Contrail@1:
Offset: -261,-650,0

View File

@@ -433,7 +433,7 @@
Categories: Infantry
EdibleByLeap:
DetectCloaked:
CloakTypes: Cloak
DetectionTypes: Cloak
Range: 1c0
^Soldier:
@@ -1190,7 +1190,7 @@
CloakSound:
UncloakSound:
Palette:
CloakTypes: Mine
DetectionTypes: Mine
InitialDelay: 0
Tooltip:
Name: Mine

View File

@@ -641,7 +641,7 @@ THF:
InitialDelay: 250
CloakDelay: 120
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
CloakTypes: Cloak
DetectionTypes: Cloak
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:

View File

@@ -213,7 +213,7 @@ SONAR:
Name: (support power proxy camera)
-RevealsShroud:
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 10c0
FLARE:

View File

@@ -33,7 +33,7 @@ SS:
TargetTypes: Underwater, Submarine
RequiresCondition: underwater
Cloak:
CloakTypes: Underwater
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 50
CloakSound: subshow1.aud
@@ -55,7 +55,7 @@ SS:
AutoTargetPriority@ATTACKANYTHING:
ValidTargets: WaterActor, Underwater
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 4c0
RenderDetectionCircle:
Explodes:
@@ -100,7 +100,7 @@ MSUB:
TargetTypes: Underwater, Submarine
RequiresCondition: underwater
Cloak:
CloakTypes: Underwater
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 100
CloakSound: subshow1.aud
@@ -126,7 +126,7 @@ MSUB:
InitialStance: HoldFire
InitialStanceAI: ReturnFire
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 4c0
RenderDetectionCircle:
Explodes:
@@ -182,7 +182,7 @@ DD:
AttackTurreted:
WithSpriteTurret:
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 4c0
RenderDetectionCircle:
Selectable:
@@ -333,7 +333,7 @@ PT:
WithMuzzleOverlay:
WithSpriteTurret:
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 4c0
RenderDetectionCircle:
Selectable:

View File

@@ -214,7 +214,7 @@ SPEN:
Power:
Amount: -30
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 10c0
RenderDetectionCircle:
ProvidesPrerequisite@soviet:
@@ -329,7 +329,7 @@ SYRD:
Power:
Amount: -30
DetectCloaked:
CloakTypes: Underwater
DetectionTypes: Underwater
Range: 10c0
RenderDetectionCircle:
ProvidesPrerequisite@allies:

View File

@@ -508,7 +508,7 @@ MNLY:
RearmSound: minelay1.aud
DetectCloaked:
Range: 5c0
CloakTypes: Mine
DetectionTypes: Mine
RenderDetectionCircle:
Explodes:
Weapon: ATMine

View File

@@ -130,6 +130,7 @@
CloakSound: cloak5.aud
UncloakSound: cloak5.aud
UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Heal
CloakType: nod-stealth
ExternalCondition@CLOAKGENERATOR:
Condition: cloakgenerator
ExternalCondition@CRATE-CLOAK:

View File

@@ -520,6 +520,7 @@ STNK:
IsPlayerPalette: true
UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Heal
PauseOnCondition: cloak-force-disabled || empdisable
CloakType: nod-stealth
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
ValidDamageStates: Critical