Skip to content

Commit

Permalink
fix chrono tank unable to shoot ground
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Apr 14, 2024
1 parent cac071d commit 6e2a47a
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 80 deletions.
78 changes: 78 additions & 0 deletions mods/ca/rules/allies/vehicles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
CTNK:
Inherits: ^Tank
Inherits: ^VoxelVehicle
RenderVoxels:
Scale: 1
Image: ctnk
WithVoxelBody:
ShowShadow: true
RenderSprites:
Image: ctnk
Inherits: ^BiologicalDriver
Inherits: ^PrioAntiHeavy
Buildable:
Queue: Vehicle
BuildPaletteOrder: 175
Prerequisites: atek, ~vehicles.allies, ~commander_tree.chrono_tank, ~!commander_tree.chrono_tank_pld, ~!commander_tree.chrono_tank.reflector
Description: Advanced tank armed with armor-piercing missiles.\n
TooltipExtras:
Strengths: • Strong vs Heavy Vehicles, Heavy Aircraft
Weaknesses: • Weak vs Infantry, PDL
Attributes: • Can teleport over short distances
Valued:
Cost: 1350
Tooltip:
Name: Chrono Tank
GenericName: Tank
Health:
HP: 50000
Mobile:
Speed: 113
Locomotor: heavywheeled
Armament@PRIMARY:
Name: primary
Weapon: APTusk
LocalOffset: -160,-276,232, -160,276,232
LocalYaw: 60
Armament@SECONDARYFRONTAL:
Name: secondary
Weapon: APTusk.Air
LocalOffset: -160,-276,232, -160,276,232
LocalYaw: -60
AttackFrontal:
Armaments: primary, secondary
PauseOnCondition: empdisable || being-warped
FacingTolerance: 0
PortableChrono:
ChargeDelay: 250
ProductionCostMultiplier@GermanyBonus:
Multiplier: 90
Prerequisites: vehicles.germany

CTNK.PLD:
Inherits: ^PointLaserDefenseSystem
Inherits: CTNK
WithProductionIconOverlay@PDL:
Types: PDL
Buildable:
Queue: Vehicle
BuildPaletteOrder: 175
Prerequisites: atek, ~vehicles.allies, ~commander_tree.chrono_tank_pld
Description: Advanced tank armed with anti-ground missiles.\nHas Point Laser Defense System\n Strong vs Vehicles, Buildings\n Weak vs Infantry, Aircraft, Energy Weapons\n Special Ability: Teleport
Valued:
Cost: 2000
Tooltip:
Name: Chrono Tank (PLD)

CTNK.Reflector:
Inherits: CTNK
Inherits: ^ReflectorArmor
WithProductionIconOverlay@Reflector:
Types: Reflector
Buildable:
Queue: Vehicle
BuildPaletteOrder: 175
Prerequisites: atek, ~vehicles.allies, ~commander_tree.chrono_tank.reflector
Description: Advanced tank armed with anti-ground missiles.\nHas Reflector Armor, which is very good vs. Energy Weapons.\n Strong vs Vehicles, Energy Weapons\n Weak vs Infantry, Aircraft\n Special Ability: Teleport
Tooltip:
Name: Chrono Tank (Reflector)
75 changes: 0 additions & 75 deletions mods/ca/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1455,81 +1455,6 @@ TTRK:
Weapon: UnitExplodeToxinTruck
EmptyWeapon: UnitExplodeToxinTruck

CTNK:
Inherits: ^Tank
Inherits: ^VoxelVehicle
RenderVoxels:
Scale: 1
Image: ctnk
WithVoxelBody:
ShowShadow: true
RenderSprites:
Image: ctnk
Inherits: ^BiologicalDriver
Inherits: ^PrioAntiHeavy
Buildable:
Queue: Vehicle
BuildPaletteOrder: 175
Prerequisites: atek, ~vehicles.allies, ~commander_tree.chrono_tank, ~!commander_tree.chrono_tank_pld, ~!commander_tree.chrono_tank.reflector
Description: Advanced tank armed with anti-ground missiles.\n Strong vs Vehicles, Buildings\n Weak vs Infantry, Aircraft\n Special Ability: Teleport
Valued:
Cost: 1350
Tooltip:
Name: Chrono Tank
GenericName: Tank
Health:
HP: 50000
Mobile:
Speed: 113
Locomotor: heavywheeled
Armament@PRIMARY:
Name: primary
Weapon: APTusk
LocalOffset: -160,-276,232
LocalYaw: 60
Armament@SECONDARYFRONTAL:
Name: secondary
Weapon: APTusk
LocalOffset: -160,276,232
LocalYaw: -60
AttackFrontal:
Armaments: primary, secondary
PauseOnCondition: empdisable || being-warped
FacingTolerance: 0
PortableChrono:
ChargeDelay: 250
ProductionCostMultiplier@GermanyBonus:
Multiplier: 90
Prerequisites: vehicles.germany

CTNK.PLD:
Inherits: ^PointLaserDefenseSystem
Inherits: CTNK
WithProductionIconOverlay@PDL:
Types: PDL
Buildable:
Queue: Vehicle
BuildPaletteOrder: 175
Prerequisites: atek, ~vehicles.allies, ~commander_tree.chrono_tank_pld
Description: Advanced tank armed with anti-ground missiles.\nHas Point Laser Defense System\n Strong vs Vehicles, Buildings\n Weak vs Infantry, Aircraft, Energy Weapons\n Special Ability: Teleport
Valued:
Cost: 2000
Tooltip:
Name: Chrono Tank (PLD)

CTNK.Reflector:
Inherits: CTNK
Inherits: ^ReflectorArmor
WithProductionIconOverlay@Reflector:
Types: Reflector
Buildable:
Queue: Vehicle
BuildPaletteOrder: 175
Prerequisites: atek, ~vehicles.allies, ~commander_tree.chrono_tank.reflector
Description: Advanced tank armed with anti-ground missiles.\nHas Reflector Armor, which is very good vs. Energy Weapons.\n Strong vs Vehicles, Energy Weapons\n Weak vs Infantry, Aircraft\n Special Ability: Teleport
Tooltip:
Name: Chrono Tank (Reflector)

AMCV:
Inherits: ^ConstructionVehicle
Inherits: ^TDVehicleSprite
Expand Down
24 changes: 19 additions & 5 deletions mods/ca/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
Damage: 5000
ValidTargets: Ground, Water, Air

^AntiGroundAndAirMissile:
Inherits: ^AntiGroundMissile
ValidTargets: Air

^AntiAirMissile:
Inherits: ^AntiGroundMissile
ValidTargets: Air
Expand Down Expand Up @@ -610,9 +606,11 @@ Aegis_Missile.AA:
ImpactActors: false

APTusk:
Inherits: ^AntiGroundAndAirMissile
Inherits: ^AntiGroundMissile
Inherits: ^MissileAP
ReloadDelay: 50
Burst: 2
BurstDelays: 1
Range: 6c0
Projectile: MissileCA
Speed: 298
Expand All @@ -623,6 +621,22 @@ APTusk:
Warhead@1Dam: SpreadDamage
Damage: 5000

APTusk.Air:
Inherits: ^AntiAirMissile
Inherits: ^MissileAP
ReloadDelay: 50
Burst: 2
BurstDelays: 1
Range: 7c0
Projectile: MissileCA
Speed: 298
HorizontalRateOfTurn: 40
RangeLimit: 7c204
LockOnProbability: 80
LockOnInaccuracy: 256
Warhead@1Dam: SpreadDamage
Damage: 5000

TorpTube:
Inherits: ^Missile
ReloadDelay: 80
Expand Down

0 comments on commit 6e2a47a

Please sign in to comment.