Fix overlapping veterancy/hospital/hazmat indicators in TD.

This also changes the hazmat indicator to only be visible when on
tiberium, and the hospital indicator to blink while active and only
be visible when the infantry is damaged.
This commit is contained in:
Paul Chote
2018-05-20 16:22:23 +00:00
committed by reaperrr
parent eccfac7840
commit 6359d32946
3 changed files with 60 additions and 5 deletions

View File

@@ -146,6 +146,38 @@
RequiresCondition: rank-elite RequiresCondition: rank-elite
ZOffset: 256 ZOffset: 256
^InfantryExperienceHospitalHazmatOverrides:
WithDecoration@RANK-1:
BlinkInterval: 32
BlinkPatterns:
hospitalheal && hazmatsuits: On, Off, Off
hospitalheal || hazmatsuits: On, Off
WithDecoration@RANK-2:
BlinkInterval: 32
BlinkPatterns:
hospitalheal && hazmatsuits: On, Off, Off
hospitalheal || hazmatsuits: On, Off
WithDecoration@RANK-3:
BlinkInterval: 32
BlinkPatterns:
hospitalheal && hazmatsuits: On, Off, Off
hospitalheal || hazmatsuits: On, Off
WithDecoration@RANK-ELITE:
BlinkInterval: 32
BlinkPatterns:
hospitalheal && hazmatsuits: On, Off, Off
hospitalheal || hazmatsuits: On, Off
WithDecoration@HAZMAT:
BlinkInterval: 32
BlinkPatterns:
rank-veteran && hospitalheal: Off, Off, On
rank-veteran || hospitalheal: Off, On
WithDecoration@REDCROSS:
BlinkPatterns:
rank-veteran && hazmatsuits: Off, On, Off
rank-veteran && !hazmatsuits: Off, On
hazmatsuits: On, Off
^AutoTargetGround: ^AutoTargetGround:
AutoTarget: AutoTarget:
AttackAnythingCondition: stance-attackanything AttackAnythingCondition: stance-attackanything
@@ -354,9 +386,15 @@
DamageInterval: 16 DamageInterval: 16
DamageTypes: TiberiumDeath DamageTypes: TiberiumDeath
RequiresCondition: !hazmatsuits RequiresCondition: !hazmatsuits
GrantConditionOnPrerequisite@BIO: GrantConditionOnTerrain@HAZMAT:
Condition: hazmatsuits Condition: ontiberium
TerrainTypes: Tiberium, BlueTiberium
GrantConditionOnPrerequisite@HAZMAT:
Condition: biolab
Prerequisites: bio Prerequisites: bio
GrantCondition@HAZMAT:
RequiresCondition: biolab && ontiberium
Condition: hazmatsuits
WithDecoration@HAZMAT: WithDecoration@HAZMAT:
Image: pips Image: pips
Sequence: pip-hazmat Sequence: pip-hazmat
@@ -381,13 +419,21 @@
DamageCooldown: 125 DamageCooldown: 125
RequiresCondition: hospitalheal RequiresCondition: hospitalheal
GrantConditionOnPrerequisite@HOSPITAL: GrantConditionOnPrerequisite@HOSPITAL:
Condition: hospitalheal Condition: hospital
Prerequisites: hosp Prerequisites: hosp
GrantConditionOnDamageState@HOSPITAL:
Condition: damaged
ValidDamageStates: Light, Medium, Heavy, Critical
GrantCondition@HOSPITAL:
RequiresCondition: hospital && damaged
Condition: hospitalheal
WithDecoration@REDCROSS: WithDecoration@REDCROSS:
Image: pips Image: pips
Sequence: pip-heal Sequence: pip-heal
ReferencePoint: Bottom, Right ReferencePoint: Bottom, Right
RequiresCondition: hospitalheal RequiresCondition: hospitalheal
BlinkInterval: 32
BlinkPattern: On, Off
DetectCloaked: DetectCloaked:
Range: 2c0 Range: 2c0
DeathSounds@NORMAL: DeathSounds@NORMAL:

View File

@@ -2,6 +2,7 @@ E1:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@DECORATIONS: ^InfantryExperienceHospitalHazmatOverrides
Valued: Valued:
Cost: 100 Cost: 100
Tooltip: Tooltip:
@@ -28,6 +29,7 @@ E2:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@DECORATIONS: ^InfantryExperienceHospitalHazmatOverrides
Valued: Valued:
Cost: 160 Cost: 160
Tooltip: Tooltip:
@@ -61,6 +63,7 @@ E3:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Inherits@DECORATIONS: ^InfantryExperienceHospitalHazmatOverrides
Valued: Valued:
Cost: 300 Cost: 300
Tooltip: Tooltip:
@@ -90,6 +93,7 @@ E4:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@DECORATIONS: ^InfantryExperienceHospitalHazmatOverrides
Valued: Valued:
Cost: 200 Cost: 200
Tooltip: Tooltip:
@@ -121,6 +125,7 @@ E5:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@DECORATIONS: ^InfantryExperienceHospitalHazmatOverrides
Valued: Valued:
Cost: 300 Cost: 300
Tooltip: Tooltip:
@@ -179,6 +184,7 @@ RMBO:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@DECORATIONS: ^InfantryExperienceHospitalHazmatOverrides
Valued: Valued:
Cost: 2000 Cost: 2000
Tooltip: Tooltip:

View File

@@ -124,6 +124,8 @@ explosion:
FlipX: true FlipX: true
rank: rank:
Defaults:
Offset: 0, 3
rank-veteran-1: rank-veteran-1:
rank-veteran-2: rank-veteran-2:
Start: 1 Start: 1
@@ -131,6 +133,7 @@ rank:
Start: 2 Start: 2
rank-elite: rank-elite:
Start: 3 Start: 3
Offset: 1, 3
rallypoint: rallypoint:
flag: flagfly flag: flagfly
@@ -257,12 +260,12 @@ pips:
pip-blue: pip-blue:
Start: 5 Start: 5
pip-heal: pip-heal pip-heal: pip-heal
Length: * Offset: -1, 1
groups: pdigits groups: pdigits
Length: * Length: *
Offset: 9, 5 Offset: 9, 5
pip-hazmat: pip-hazmat pip-hazmat: pip-hazmat
Length: * Offset: -3, 0
overlay: overlay:
build-valid-desert: build-valid-desert: