From 20c5ca4ea43b942d037e1228440b273b436de636 Mon Sep 17 00:00:00 2001 From: UndeadZeratul Date: Sat, 1 Mar 2025 18:48:00 -0600 Subject: [PATCH] Add Loose Round actors for .500 S&W Light/Heavy --- zscript/HDBulletLib/Ammunition/500S&W.zsc | 56 +++++++++++++++++++---- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/zscript/HDBulletLib/Ammunition/500S&W.zsc b/zscript/HDBulletLib/Ammunition/500S&W.zsc index 7d90395..9e6a3fe 100644 --- a/zscript/HDBulletLib/Ammunition/500S&W.zsc +++ b/zscript/HDBulletLib/Ammunition/500S&W.zsc @@ -35,16 +35,56 @@ class HDB_500LAD : HDBulletActor } } +class HDLoose500Light : HDLoose9mm +{ + Default + { + bouncefactor 0.5; + } + + States + { + spawn: + SWCS A 2 NoDelay A_SetRoll(roll + 45, SPF_INTERPOLATE); + Loop; + death: + SWCS # 1{ + actor a=spawn("HD500SWLightAmmo",self.pos,ALLOW_REPLACE); + a.roll=self.roll;a.vel=self.vel; + }stop; + } +} + +class HDLoose500Heavy : HDLoose9mm +{ + Default + { + bouncefactor 0.5; + } + + States + { + spawn: + SWCS A 2 NoDelay A_SetRoll(roll + 45, SPF_INTERPOLATE); + Loop; + death: + SWCS # 1{ + actor a=spawn("HD500SWHeavyAmmo",self.pos,ALLOW_REPLACE); + a.roll=self.roll;a.vel=self.vel; + }stop; + } +} + class HDSpent500 : HDSpent9mm { - states{ - spawn: - SWCS A 2 nodelay{ - A_SetRoll(roll+45,SPF_INTERPOLATE); - }loop; - death: - SWCS # -1; - stop; + States + { + spawn: + SWCS A 2 nodelay A_SetRoll(roll + 45, SPF_INTERPOLATE); + loop; + death: + SWCS # -1; + stop; } }