Add support for additional cloak styles and use native alpha in RA,D2k,TS.

This commit is contained in:
Paul Chote
2023-12-03 11:16:37 +00:00
committed by Gustas
parent 9f196f2693
commit ad833a6fbb
20 changed files with 102 additions and 51 deletions

View File

@@ -208,6 +208,8 @@ C17:
Cloak:
InitialDelay: 0
CloakDelay: 0
CloakStyle: Palette
CloakedPalette: cloak
DetectionTypes: C17
RequiresCondition: global-C17-stealth
Contrail@1:

View File

@@ -199,6 +199,8 @@
CloakDelay: 90
CloakSound: trans1.aud
UncloakSound: trans1.aud
CloakStyle: Palette
CloakedPalette: cloak
PauseOnCondition: cloak-force-disabled
RequiresCondition: cloak-crate-collected
ExternalCondition@CLOAK:

View File

@@ -708,6 +708,8 @@ STNK:
CloakDelay: 85
CloakSound: trans1.aud
UncloakSound: trans1.aud
CloakStyle: Palette
CloakedPalette: cloak
UncloakOn: Attack, Unload, Dock, Damage, Heal
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:

View File

@@ -1,6 +1,5 @@
^Palettes:
-PlayerColorPalette:
-PaletteFromPlayerPaletteWithAlpha@cloak:
IndexedPlayerPalette:
BasePalette: d2k
BaseName: player
@@ -15,7 +14,3 @@
Mercenaries: 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224
Neutral: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
Creeps: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
PaletteFromPlayerPaletteWithAlpha@Cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55

View File

@@ -186,7 +186,6 @@ fremen:
InitialDelay: 85
CloakDelay: 85
UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage, Heal
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
@@ -328,7 +327,6 @@ saboteur:
CloakDelay: 25
CloakSound: STEALTH1.WAV
UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Heal
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled

View File

@@ -44,7 +44,3 @@
RemapIndex: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
MenuPostProcessEffect:
FlashPostProcessEffect:
PaletteFromPlayerPaletteWithAlpha@cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55

View File

@@ -498,7 +498,6 @@ stealth_raider:
InitialDelay: 45
CloakDelay: 90
UncloakOn: Attack, Unload, Infiltrate, Demolish, Dock, Damage, Heal
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled

View File

@@ -316,7 +316,6 @@ SNIPER:
CloakSound:
UncloakSound:
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled

View File

@@ -1,7 +1,6 @@
^Palettes:
-PlayerColorPalette:
-PlayerColorPalette@NOSHADOW:
-PaletteFromPlayerPaletteWithAlpha@cloak:
IndexedPlayerPalette:
BasePalette: player
BaseName: player
@@ -40,7 +39,3 @@
Creeps: 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143
GoodGuy: 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175
BadGuy: 229, 230, 231, 232, 233, 234, 235, 8, 236, 237, 238, 239, 221, 222, 223, 223
PaletteFromPlayerPaletteWithAlpha@Cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55

View File

@@ -559,10 +559,10 @@
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 50
CloakStyle: Color
CloakSound: subshow1.aud
UncloakSound: subshow1.aud
CloakedCondition: underwater
Palette: submerged
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
@@ -1230,7 +1230,7 @@
Cloak:
CloakSound:
UncloakSound:
Palette:
CloakStyle: None
DetectionTypes: Mine
InitialDelay: 0
Tooltip:

View File

@@ -664,7 +664,6 @@ THF:
CloakDelay: 120
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
DetectionTypes: Cloak
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled

View File

@@ -56,12 +56,6 @@
G: 0
B: 0
A: 140
PaletteFromRGBA@submerged:
Name: submerged
R: 0
G: 0
B: 0
A: 140
PaletteFromRGBA@moveflash:
Name: moveflash
R: 255
@@ -80,10 +74,6 @@
BaseName: player-noshadow
BasePalette: player-noshadow
RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
PaletteFromPlayerPaletteWithAlpha@cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55
MenuPostProcessEffect:
RotationPaletteEffect@defaultwater:
Palettes: terrain

View File

@@ -795,7 +795,6 @@ HBOX:
Cloak:
InitialDelay: 125
CloakDelay: 60
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled

View File

@@ -919,7 +919,6 @@ STNK:
CloakDelay: 175
CloakSound: appear1.aud
UncloakSound: appear1.aud
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
UncloakOn: Attack, Load, Unload, Heal, Dock
GrantConditionOnDamageState@UNCLOAK:

View File

@@ -129,7 +129,6 @@
RequiresCondition: cloakgenerator || crate-cloak
InitialDelay: 0
CloakDelay: 90
IsPlayerPalette: true
CloakSound: cloak5.aud
UncloakSound: cloak5.aud
UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Heal, SupportPower

View File

@@ -526,7 +526,6 @@ STNK:
CloakDelay: 90
CloakSound: cloak5.aud
UncloakSound: cloak5.aud
IsPlayerPalette: true
UncloakOn: Attack, Unload, Infiltrate, Demolish, Damage, Heal
PauseOnCondition: cloak-force-disabled || empdisable
CloakType: nod-stealth

View File

@@ -152,10 +152,6 @@
BaseName: player-nobright
BasePalette: player-nobright
RemapIndex: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
PaletteFromPlayerPaletteWithAlpha@cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55
PaletteFromPaletteWithAlpha@terrainalpha:
BasePalette: terraindecoration
Name: terrainalpha