Make vehicles and cyborgs in TS slow down when damaged
By combining the new UpgradeOnDamage trait with SpeedModifiers.
This commit is contained in:
@@ -370,6 +370,12 @@
|
|||||||
WithInfantryBody:
|
WithInfantryBody:
|
||||||
AttackSequence: shoot
|
AttackSequence: shoot
|
||||||
IdleSequences: idle1,idle2
|
IdleSequences: idle1,idle2
|
||||||
|
UpgradeOnDamage@CRITICAL:
|
||||||
|
Upgrades: criticalspeed
|
||||||
|
ValidDamageStates: Critical
|
||||||
|
SpeedMultiplier@CRITICAL:
|
||||||
|
UpgradeTypes: criticalspeed
|
||||||
|
Modifier: 50
|
||||||
|
|
||||||
^CivilianInfantry:
|
^CivilianInfantry:
|
||||||
Inherits: ^Infantry
|
Inherits: ^Infantry
|
||||||
@@ -442,6 +448,18 @@
|
|||||||
PoisonedByTiberium:
|
PoisonedByTiberium:
|
||||||
Weapon: Veins
|
Weapon: Veins
|
||||||
Resources: Veins
|
Resources: Veins
|
||||||
|
UpgradeOnDamage@DAMAGED:
|
||||||
|
Upgrades: damagedspeed
|
||||||
|
ValidDamageStates: Heavy
|
||||||
|
UpgradeOnDamage@CRITICAL:
|
||||||
|
Upgrades: criticalspeed
|
||||||
|
ValidDamageStates: Critical
|
||||||
|
SpeedMultiplier@DAMAGED:
|
||||||
|
UpgradeTypes: damagedspeed
|
||||||
|
Modifier: 80
|
||||||
|
SpeedMultiplier@CRITICAL:
|
||||||
|
UpgradeTypes: criticalspeed
|
||||||
|
Modifier: 60
|
||||||
|
|
||||||
^Tank:
|
^Tank:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Vehicle
|
||||||
|
|||||||
Reference in New Issue
Block a user