Skip to content

Commit d62e6bb

Browse files
Merge pull request #40 from UndeadZeratul/main
Add Loose Round actors for .500 S&W Light/Heavy
2 parents 1dcd5c9 + 20c5ca4 commit d62e6bb

File tree

1 file changed

+48
-8
lines changed

1 file changed

+48
-8
lines changed

zscript/HDBulletLib/Ammunition/500S&W.zsc

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,56 @@ class HDB_500LAD : HDBulletActor
3535
}
3636
}
3737

38+
class HDLoose500Light : HDLoose9mm
39+
{
40+
Default
41+
{
42+
bouncefactor 0.5;
43+
}
44+
45+
States
46+
{
47+
spawn:
48+
SWCS A 2 NoDelay A_SetRoll(roll + 45, SPF_INTERPOLATE);
49+
Loop;
50+
death:
51+
SWCS # 1{
52+
actor a=spawn("HD500SWLightAmmo",self.pos,ALLOW_REPLACE);
53+
a.roll=self.roll;a.vel=self.vel;
54+
}stop;
55+
}
56+
}
57+
58+
class HDLoose500Heavy : HDLoose9mm
59+
{
60+
Default
61+
{
62+
bouncefactor 0.5;
63+
}
64+
65+
States
66+
{
67+
spawn:
68+
SWCS A 2 NoDelay A_SetRoll(roll + 45, SPF_INTERPOLATE);
69+
Loop;
70+
death:
71+
SWCS # 1{
72+
actor a=spawn("HD500SWHeavyAmmo",self.pos,ALLOW_REPLACE);
73+
a.roll=self.roll;a.vel=self.vel;
74+
}stop;
75+
}
76+
}
77+
3878
class HDSpent500 : HDSpent9mm
3979
{
40-
states{
41-
spawn:
42-
SWCS A 2 nodelay{
43-
A_SetRoll(roll+45,SPF_INTERPOLATE);
44-
}loop;
45-
death:
46-
SWCS # -1;
47-
stop;
80+
States
81+
{
82+
spawn:
83+
SWCS A 2 nodelay A_SetRoll(roll + 45, SPF_INTERPOLATE);
84+
loop;
85+
death:
86+
SWCS # -1;
87+
stop;
4888
}
4989
}
5090

0 commit comments

Comments
 (0)