diff --git a/mods/ra/bits/gunfire2.shp b/mods/ra/bits/gunfire2.shp new file mode 100644 index 0000000000..11387444ca Binary files /dev/null and b/mods/ra/bits/gunfire2.shp differ diff --git a/mods/ra/rules/ships.yaml b/mods/ra/rules/ships.yaml index 347e014d10..71c5c02ecc 100644 --- a/mods/ra/rules/ships.yaml +++ b/mods/ra/rules/ships.yaml @@ -174,12 +174,16 @@ CA: Recoil: 171 RecoilRecovery: 34 Armament@SECONDARY: + Name: secondary Turret: secondary Weapon: 8Inch LocalOffset: 213,-171,0, 213,171,0 Recoil: 171 RecoilRecovery: 34 AttackTurreted: + WithMuzzleFlash@PRIMARY: + WithMuzzleFlash@SECONDARY: + Armament: secondary Selectable: Bounds: 44,44 RenderUnit: @@ -253,6 +257,7 @@ PT: Armament@SECONDARY: Weapon: DepthCharge AttackTurreted: + WithMuzzleFlash@PRIMARY: Selectable: Bounds: 32,32 RenderUnit: diff --git a/mods/ra/rules/structures.yaml b/mods/ra/rules/structures.yaml index b1e3476f22..061e31f8a1 100644 --- a/mods/ra/rules/structures.yaml +++ b/mods/ra/rules/structures.yaml @@ -336,8 +336,12 @@ AGUN: Armament@PRIMARY: Weapon: ZSU-23 Armament@SECONDARY: + Name: secondary Weapon: ZSU-23 AttackTurreted: + WithMuzzleFlash@PRIMARY: + WithMuzzleFlash@SECONDARY: + Armament: secondary AutoTarget: IronCurtainable: -RenderBuilding: @@ -733,6 +737,7 @@ GUN: Armament: Weapon: TurretGun AttackTurreted: + WithMuzzleFlash: AutoTarget: IronCurtainable: -RenderBuilding: diff --git a/mods/ra/rules/vehicles.yaml b/mods/ra/rules/vehicles.yaml index 178104d04e..dabedbdc6c 100644 --- a/mods/ra/rules/vehicles.yaml +++ b/mods/ra/rules/vehicles.yaml @@ -55,6 +55,7 @@ V2RL: Recoil: 85 RecoilRecovery: 25 AttackTurreted: + WithMuzzleFlash: RenderUnit: WithTurret: AutoTarget: @@ -93,6 +94,7 @@ V2RL: Recoil: 128 RecoilRecovery: 38 AttackTurreted: + WithMuzzleFlash: RenderUnit: WithTurret: AutoTarget: @@ -134,6 +136,7 @@ V2RL: RecoilRecovery: 38 LocalOffset: 0,85,0, 0,-85,0 AttackTurreted: + WithMuzzleFlash: RenderUnit: WithTurret: AutoTarget: @@ -177,11 +180,13 @@ V2RL: Recoil: 171 RecoilRecovery: 30 Armament@SECONDARY: + Name: secondary Weapon: MammothTusk LocalOffset: -85,384,340, -85,-384,340 LocalYaw: -100,100 Recoil: 43 AttackTurreted: + WithMuzzleFlash@PRIMARY: RenderUnit: WithTurret: AutoTarget: @@ -223,6 +228,7 @@ ARTY: Armament: Weapon: 155mm AttackFrontal: + WithMuzzleFlash: RenderUnit: Explodes: Weapon: UnitExplode @@ -675,6 +681,7 @@ FTRK: Weapon: FLAK-23 Recoil: 85 AttackTurreted: + WithMuzzleFlash: RenderUnit: WithTurret: AutoTarget: diff --git a/mods/ra/sequences/ships.yaml b/mods/ra/sequences/ships.yaml index 2ec8b40825..49cc5f4f39 100644 --- a/mods/ra/sequences/ships.yaml +++ b/mods/ra/sequences/ships.yaml @@ -10,6 +10,9 @@ ca: turret: turr Start: 0 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 dd: idle: @@ -26,6 +29,9 @@ pt: turret: mgun Start: 0 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 lst: idle: diff --git a/mods/ra/sequences/structures.yaml b/mods/ra/sequences/structures.yaml index 77e6f55e6b..1d5131e4d1 100644 --- a/mods/ra/sequences/structures.yaml +++ b/mods/ra/sequences/structures.yaml @@ -263,6 +263,9 @@ gun: damaged-recoil: Start: 96 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 agun: idle: @@ -280,6 +283,9 @@ agun: damaged-recoil: Start: 96 Facings: 32 + muzzle: gunfire2 + Start: 1 + Length: 4 sam: idle: diff --git a/mods/ra/sequences/vehicles.yaml b/mods/ra/sequences/vehicles.yaml index 74ed83840b..f9797882c1 100644 --- a/mods/ra/sequences/vehicles.yaml +++ b/mods/ra/sequences/vehicles.yaml @@ -75,6 +75,9 @@ hhusk2: turret: Start: 32 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 2 2tnk: idle: @@ -83,6 +86,9 @@ hhusk2: turret: Start: 32 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 3tnk: idle: @@ -91,6 +97,9 @@ hhusk2: turret: Start: 32 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 4tnk: idle: @@ -99,6 +108,9 @@ hhusk2: turret: Start: 32 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 v2rl: idle: @@ -118,6 +130,9 @@ arty: idle: Start: 0 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5 jeep: idle: @@ -187,6 +202,9 @@ ftrk: turret: Start: 32 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 2 dtrk: idle: @@ -197,3 +215,6 @@ ctnk: idle: Start: 0 Facings: 32 + muzzle: gunfire2 + Start: 0 + Length: 5