They now make heavy use of inheritance to cut down duplication. Most infantry in TS uses the Minigunner (E1) sequences, only that some frames are empty (civ2 shoot animation, for example) or used for a different purpose (panic anims for civilians, crippled legs for cyborgs). To make this inheritance a bit easier, the attack sequences were renamed to a generic 'attack', rather than 'shoot' or 'throw', and split off to a separate abstract default inherited only by infantry with valid attack frames.
98 lines
1.7 KiB
YAML
98 lines
1.7 KiB
YAML
E1:
|
|
Inherits: ^Soldier
|
|
Buildable:
|
|
Queue: Infantry
|
|
BuildPaletteOrder: 10
|
|
Prerequisites: ~barracks
|
|
Valued:
|
|
Cost: 120
|
|
Tooltip:
|
|
Name: Light Infantry
|
|
Description: General-purpose infantry.\n Strong vs Infantry\n Weak vs Vehicles, Aircraft
|
|
Health:
|
|
HP: 125
|
|
Mobile:
|
|
Speed: 71
|
|
Armament@PRIMARY:
|
|
Weapon: Minigun
|
|
UpgradeTypes: eliteweapon
|
|
UpgradeMaxEnabledLevel: 0
|
|
UpgradeMaxAcceptedLevel: 1
|
|
Armament@ELITE:
|
|
Weapon: M1Carbine
|
|
UpgradeTypes: eliteweapon
|
|
UpgradeMinEnabledLevel: 1
|
|
AttackFrontal:
|
|
Voice: Attack
|
|
WithInfantryBody:
|
|
AttackSequence: attack
|
|
ProducibleWithLevel:
|
|
Prerequisites: barracks.upgraded
|
|
RenderSprites:
|
|
Image: e1.gdi
|
|
FactionImages:
|
|
gdi: e1.gdi
|
|
nod: e1.nod
|
|
|
|
ENGINEER:
|
|
Inherits: ^Soldier
|
|
Valued:
|
|
Cost: 500
|
|
Tooltip:
|
|
Name: Engineer
|
|
Description: Infiltrates and captures enemy structures.\n Unarmed
|
|
Buildable:
|
|
Queue: Infantry
|
|
BuildPaletteOrder: 30
|
|
Prerequisites: ~barracks
|
|
Voiced:
|
|
VoiceSet: Engineer
|
|
Mobile:
|
|
Speed: 56
|
|
Health:
|
|
HP: 500
|
|
Passenger:
|
|
PipType: Yellow
|
|
EngineerRepair:
|
|
RepairsBridges:
|
|
RepairNotification: BridgeRepaired
|
|
Captures:
|
|
CaptureTypes: building
|
|
-AutoTarget:
|
|
-GainsExperience:
|
|
RenderSprites:
|
|
Image: engineer.gdi
|
|
FactionImages:
|
|
gdi: engineer.gdi
|
|
nod: engineer.nod
|
|
Selectable:
|
|
Priority: 5
|
|
|
|
FLAMEGUY:
|
|
Inherits@1: ^ExistsInWorld
|
|
Inherits@2: ^SpriteActor
|
|
Mobile:
|
|
Speed: 71
|
|
SharesCell: true
|
|
TerrainSpeeds:
|
|
Clear: 45
|
|
Road: 50
|
|
Rail: 45
|
|
DirtRoad: 50
|
|
Rough: 40
|
|
Tiberium: 45
|
|
BlueTiberium: 45
|
|
Veins: 25
|
|
HiddenUnderFog:
|
|
WithInfantryBody:
|
|
IdleSequences: run
|
|
Health:
|
|
HP: 160
|
|
SelfHealing:
|
|
Step: -10
|
|
HealIfBelow: 101
|
|
ScaredyCat:
|
|
WithDeathAnimation:
|
|
FallbackSequence: die
|
|
UseDeathTypeSuffix: false
|