Skip to content

Commit

Permalink
Add atomic ammo to Siege Tank
Browse files Browse the repository at this point in the history
  • Loading branch information
Inq8 committed Jul 19, 2022
1 parent a084ecd commit 5ef056b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
Binary file added mods/ca/bits/380mma.shp
Binary file not shown.
2 changes: 1 addition & 1 deletion mods/ca/rules/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ NPWR:
ValidRelationships: Ally
Duration: 1
AllowMultiple: false
Description: \nGrants tanks a limited supply of atomic shells (also for a limited duration).\n\nAffects Soviet tanks only (Heavy Tank, Lasher Tank, Mammoth Tank, Apocalypse Tank)
Description: \nGrants tanks a limited supply of atomic shells (also for a limited duration).\n\nAffects Soviet tanks only (Heavy Tank, Lasher Tank, Siege Tank, Mammoth Tank, Apocalypse Tank)
OnFireSound: atomshell.aud
SelectTargetSpeechNotification: SelectTarget
InsufficientPowerSpeechNotification: InsufficientPower
Expand Down
18 changes: 18 additions & 0 deletions mods/ca/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,7 @@ ISU:
Inherits@GAINSEXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Inherits@BERSERK: ^Berserk
Inherits@ATOMICAMMO: ^AtomicAmmunition
Buildable:
Queue: Vehicle
BuildPaletteOrder: 180
Expand Down Expand Up @@ -1200,13 +1201,30 @@ ISU:
Weapon: 380mm
LocalOffset: 824,0,208
MuzzleSequence: muzzle
PauseOnCondition: has-atomic-ammo || atomic-reloading
ReloadingCondition: reloading
Armament@ATOMICAMMO:
Weapon: 380mmAtomic
LocalOffset: 824,0,208
MuzzleSequence: muzzle
PauseOnCondition: !has-atomic-ammo || reloading
ReloadingCondition: atomic-reloading
AttackFrontal:
TargetFrozenActors: True
ForceFireIgnoresActors: True
PauseOnCondition: empdisable || being-warped
Voice: Attack
FacingTolerance: 0
WithMuzzleOverlay:
WithPlayOnceOnEnabledOverlay@ATOMICAMMO:
RequiresCondition: atomic-ammo && has-atomic-ammo < 3
WithAmmoPipsDecoration@ATOMICAMMO:
PipCount: 3
AmmoPool@ATOMICAMMO:
Ammo: 3
ReloadAmmoPool@ATOMICAMMO:
Count: 3
RequiresCondition: atomic-ammo && has-atomic-ammo < 3
Explodes:
Weapon: ArtilleryExplode
LoadedChance: 75
Expand Down
5 changes: 5 additions & 0 deletions mods/ca/sequences/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ powerdown:
ZOffset: 2046
IgnoreWorldTint: true

380mma:
idle: 380mma
ZOffset: 2046
IgnoreWorldTint: true

50cal:
idle: 50cal
ZOffset: 2046
Expand Down
16 changes: 16 additions & 0 deletions mods/ca/weapons/ballistics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,22 @@ TitanGun:
Intensity: 1
Multiplier: 0.5,0.5

380mmAtomic:
Inherits: 380mm
Projectile: Bullet
Image: 380mma
Warhead@3Eff_impact: CreateEffect
Explosions: nuke3
ImpactActors: false
Warhead@6Smu_areanuke1: LeaveSmudge
Size: 1
SmudgeType: Scorch
InvalidTargets: Vehicle, Structure, Wall, Trees
Warhead@18Radio: CreateTintedCells
Level: 300
Falloff: 100, 55, 32, 5
LayerName: radioactivity.weak

8Inch:
Inherits: ^Artillery
MinRange: 3c0
Expand Down

0 comments on commit 5ef056b

Please # to comment.