diff --git a/wadsrc/static/zscript/doom/doomweapons.txt b/wadsrc/static/zscript/doom/doomweapons.txt index 731740ac64..f3a40c22a2 100644 --- a/wadsrc/static/zscript/doom/doomweapons.txt +++ b/wadsrc/static/zscript/doom/doomweapons.txt @@ -19,8 +19,9 @@ extend class StateProvider // // [RH] A_FireRailgun + // [TP] This now takes a puff type to retain Skulltag's railgun's ability to pierce armor. // - action void A_FireRailgun(int offset_xy = 0) + action void A_FireRailgun(class puffType = "BulletPuff", int offset_xy = 0) { if (player == null) { @@ -42,17 +43,17 @@ extend class StateProvider } int damage = deathmatch ? 100 : 150; - A_RailAttack(damage, offset_xy, false); // note that this function handles ammo depletion itself for Dehacked compatibility purposes. + A_RailAttack(damage, offset_xy, false, pufftype: puffType); // note that this function handles ammo depletion itself for Dehacked compatibility purposes. } action void A_FireRailgunLeft() { - A_FireRailgun(-10); + A_FireRailgun(offset_xy: -10); } action void A_FireRailgunRight() { - A_FireRailgun(10); + A_FireRailgun(offset_xy: 10); } action void A_RailWait() @@ -60,4 +61,4 @@ extend class StateProvider // only here to satisfy old Dehacked patches. } -} \ No newline at end of file +}