Skip to content

Commit

Permalink
cryo trooper new model, fix cryo hit anim palette
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Apr 18, 2024
1 parent 3c5d8ee commit 599237d
Show file tree
Hide file tree
Showing 11 changed files with 146 additions and 182 deletions.
Binary file added mods/ca/bits/allies/cryotrooper.shp
Binary file not shown.
1 change: 1 addition & 0 deletions mods/ca/mod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Sequences:
ca|sequences/misc.yaml
ca|sequences/decorations.yaml
ca|sequences/commander-tree.yaml
ca|sequences/allies.yaml
ca|sequences/gdi.yaml
ca|sequences/nod.yaml
ca|sequences/scrin.yaml
Expand Down
36 changes: 36 additions & 0 deletions mods/ca/rules/allies/infantry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Cryotrooper:
Inherits: ^Soldier
Inherits: ^PrioAntiHeavy
Inherits: ^InfantryRA2Sprite
Buildable:
Queue: Infantry
BuildAtProductionType: Soldier
BuildPaletteOrder: 50
Prerequisites: ~infantry.allies, dome, ~tent, ~commander_tree.advanced_infantry_training
Description: Support infantry that slows enemies and makes them take more damage. Can intercept incoming shells and rockets.
IconPalette: chrometd
Valued:
Cost: 500
Tooltip:
Name: Cryo Trooper
UpdatesPlayerStatistics:
AddToArmyValue: true
Health:
HP: 7000
Mobile:
Speed: 61
Armament@PRIMARY:
Weapon: CryoGun
LocalOffset: 341,0,256
PauseOnCondition: being-warped
Armament@Garrison:
Name: mounted
Weapon: CryoGun
LocalOffset: 341,0,256
PauseOnCondition: being-warped
TakeCover:
ProneOffset: 227,0,-245
AttackFrontal:
PauseOnCondition: being-warped
FacingTolerance: 0
Inherits: ^PointLaserDefenseSystemSmall
30 changes: 30 additions & 0 deletions mods/ca/rules/allies/weapons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,33 @@ BATF.Repair:
Condition: highlight
ValidTargets: Ground, Vehicle, Air
ValidRelationships: Ally


CryoGun:
Inherits: ^Cryo
ReloadDelay: 90
Range: 5c512
ValidTargets: Ground, Water
Projectile: LaserZap
Width: 25
Duration: 20
ZOffset: 2047
Color: FFFFFF
SecondaryBeam: true
SecondaryBeamWidth: 50
SecondaryBeamZOffset: 2047
SecondaryBeamColor: 57BEFFBB
Blockable: true

CryoMissileNHAW:
Inherits: CryoMissile
ReloadDelay: 250
Report: vrocweaa.aud, vrocweab.aud
BurstDelays: 50
Range: 7c0
Projectile: Bullet
Image: cmiss
Speed: 230
LaunchAngle: 3
Warhead@1Dam: SpreadDamage
Damage: 1000
2 changes: 1 addition & 1 deletion mods/ca/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4155,7 +4155,7 @@ PROC.Dummy:
tecn3: loaded
railgunner: loaded
railgunner.nocrush: loaded
cryot: loaded
cryotrooper: loaded
che1: loaded
minigunner: loaded-air
che3: loaded-air
Expand Down
37 changes: 0 additions & 37 deletions mods/ca/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1733,43 +1733,6 @@ RMBC.range:
Weapon: cycannon.Range
LocalOffset: 0,0,555

CRYOT:
Inherits: ^Soldier
Inherits: ^PrioAntiHeavy
Inherits@BERSERK: ^Berserk
Buildable:
Queue: Infantry
BuildAtProductionType: Soldier
BuildPaletteOrder: 50
Prerequisites: ~infantry.allies, dome, ~tent, ~commander_tree.advanced_infantry_training
Description: Support infantry that slows enemies and makes them take more damage. Can intercept incoming shells and rockets.
IconPalette: chrometd
Valued:
Cost: 500
Tooltip:
Name: Cryo Trooper
UpdatesPlayerStatistics:
AddToArmyValue: true
Health:
HP: 7000
Mobile:
Speed: 61
Armament@PRIMARY:
Weapon: CryoGun
LocalOffset: 341,0,256
PauseOnCondition: being-warped
Armament@Garrison:
Name: mounted
Weapon: CryoGun
LocalOffset: 341,0,256
PauseOnCondition: being-warped
TakeCover:
ProneOffset: 227,0,-245
AttackFrontal:
PauseOnCondition: being-warped
FacingTolerance: 0
Inherits: ^PointLaserDefenseSystemSmall

Railgunner:
Inherits: ^Soldier
Inherits: ^PrioEnergyAntiHeavy
Expand Down
2 changes: 1 addition & 1 deletion mods/ca/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3128,7 +3128,7 @@ IFV:
leader: spyturr
railgunner: railgunturr
railgunner.nocrush: railgunturr
cryot: cryoturr
cryotrooper: cryoturr
specops: relayturr
ProximityExternalCondition@MEDIC:
RequiresCondition: medturr
Expand Down
76 changes: 76 additions & 0 deletions mods/ca/sequences/allies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
cryotrooper:
Inherits: ^CommonDeaths
Inherits: ^InfantryOverlays
stand: cryotrooper
Facings: 8
run: cryotrooper
Start: 8
Length: 6
Facings: 8
Tick: 100
shoot: cryotrooper
Start: 164
Length: 6
Facings: 8
liedown: cryotrooper
Start: 260
Length: 2
Facings: 8
standup: cryotrooper
Start: 276
Length: 2
Facings: 8
prone-stand: cryotrooper
Start: 86
Stride: 6
Facings: 8
prone-run: cryotrooper
Start: 86
Length: 6
Facings: 8
Tick: 100
prone-shoot: cryotrooper
Start: 212
Length: 6
Facings: 8
idle1: cryotrooper
Start: 56
Length: 15
Tick: 120
idle2: cryotrooper
Start: 71
Length: 15
Tick: 120
idle3: cryotrooper
Start: 293
Length: 9
Tick: 120
idle4: cryotrooper
Start: 71
Length: 15
Tick: 120
die1: cryotrooper
Start: 134
Length: 15
Tick: 80
die2: cryotrooper
Start: 149
Length: 14
Tick: 80
die3: cryotrooper
Start: 134
Length: 15
Tick: 80
die4: cryotrooper
Start: 149
Length: 14
Tick: 80
die5: cryotrooper
Start: 134
Length: 15
Tick: 80
die7: cryotrooper
Start: 149
Length: 14
Tick: 80
icon: cryoticnh
114 changes: 0 additions & 114 deletions mods/ca/sequences/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2697,120 +2697,6 @@ rmbc.range:
Offset: 0, 0
icon: cycomrangeicon.shp

cryot:
stand: cryot
Facings: 8
stand2: cryot
Start: 8
Facings: 8
run: cryot
Start: 16
Length: 6
Facings: 8
Tick: 120
shoot: cryot
Start: 64
Length: 16
Facings: 8
stand3: cryot
Start: 192
Length: 16
prone-stand: cryot
Start: 208
Stride: 4
Facings: 8
prone-stand2: cryot
Start: 208
Stride: 4
Facings: 8
prone-run: cryot
Start: 208
Length: 4
Facings: 8
Tick: 120
standup: cryot
Start: 240
Length: 2
Facings: 8
prone-shoot: cryot
Start: 256
Length: 16
Facings: 8
idle1: cryot
Start: 384
Length: 14
Tick: 120
idle2: cryot
Start: 399
Length: 16
Tick: 120
die1: cryot
Start: 416
Length: 8
die2: cryot
Start: 424
Length: 8
die3: cryot
Start: 432
Length: 8
die4: cryot
Start: 440
Length: 12
die5: cryot
Start: 452
Length: 18
die6: electroTD
Length: *
UseTilesetExtension: true
TilesetOverrides:
DESERT: TEMPERAT
INTERIOR: TEMPERAT
JUNGLE: TEMPERAT
WINTER: TEMPERAT
DUNE: TEMPERAT
die7: cryot
Start: 416
Length: 8
die9: poisonTD
Length: *
die8: electroTD
Length: *
UseTilesetExtension: true
TilesetOverrides:
DESERT: TEMPERAT
INTERIOR: TEMPERAT
JUNGLE: TEMPERAT
WINTER: TEMPERAT
DUNE: TEMPERAT
die10: poisonTD
Length: *
die11: frozen
AddExtension: True
Length: *
die-crushed: corpse1
Length: 6
Tick: 1600
ZOffset: -511
UseTilesetExtension: true
TilesetOverrides:
INTERIOR: TEMPERAT
JUNGLE: TEMPERAT
WINTER: TEMPERAT
chrono-overlay: chronofade_small
Length: *
BlendMode: Additive
Offset: 0, 0
UseTilesetCode: false
ZOffset: 512
Tick: 80
mind-overlay: mindanim
Length: *
Tick: 200
BlendMode: Alpha
UseTilesetCode: false
Offset: 0, 0
icon: cryoticnh

railgunner:
stand: railgunner
Facings: 8
Expand Down
29 changes: 0 additions & 29 deletions mods/ca/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1410,35 +1410,6 @@ CryoMissile:
Warhead@1Dam: SpreadDamage
Damage: 4000

CryoGun:
Inherits: ^Cryo
ReloadDelay: 90
Range: 5c512
ValidTargets: Ground, Water
Projectile: LaserZap
Width: 25
Duration: 20
ZOffset: 2047
Color: FFFFFF
SecondaryBeam: true
SecondaryBeamWidth: 50
SecondaryBeamZOffset: 2047
SecondaryBeamColor: 57BEFFBB
Blockable: true

CryoMissileNHAW:
Inherits: CryoMissile
ReloadDelay: 250
Report: vrocweaa.aud, vrocweab.aud
BurstDelays: 50
Range: 7c0
Projectile: Bullet
Image: cmiss
Speed: 230
LaunchAngle: 3
Warhead@1Dam: SpreadDamage
Damage: 1000

BATFRockets:
Inherits: Dragon
Inherits: ^MissileAP
Expand Down
1 change: 1 addition & 0 deletions mods/ca/weapons/weapontypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
DamageTypes: SmallExplosionDeath
Warhead@2Eff: CreateEffect
Explosions: cryohit
ExplosionPalette: ra2effect-ignore-lighting-alpha75
ImpactSounds: cryozap.aud
Warhead@chill: GrantExternalCondition
Condition: chilled
Expand Down

0 comments on commit 599237d

Please sign in to comment.