Skip to content

Commit 02abb8f

Browse files
Merge pull request #11 from UndeadZeratul/main
Add Lose 5mm Rounds from Hexadoken's Legacy Continued
2 parents 5161c2a + 08f725e commit 02abb8f

File tree

1 file changed

+29
-0
lines changed
  • zscript/HDBulletLib/Ammunition

1 file changed

+29
-0
lines changed

zscript/HDBulletLib/Ammunition/5mm.zsc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,35 @@ class HDSpent5mmMR : HDDebris
6969
}
7070
}
7171

72+
// Originally defined in Hexadoken's Legacy Continued,
73+
// ported here for reusability
74+
class HDLoose5mmMR : HDDebris
75+
{
76+
override void postbeginplay(){
77+
HDDebris.postbeginplay();
78+
}
79+
default{
80+
bouncesound "misc/casing3";
81+
scale 0.55;
82+
bouncefactor 0.5;
83+
}
84+
states{
85+
spawn:
86+
5MMR Z 2 nodelay{
87+
A_SetRoll(roll+45,SPF_INTERPOLATE);
88+
}loop;
89+
death:
90+
TNT1 A 1{
91+
string lol = "HD5mm_Ammo";
92+
Class<Inventory> b = lol;
93+
if (b) {
94+
actor a=spawn(b,self.pos,ALLOW_REPLACE);
95+
a.roll=self.roll;a.vel=self.vel;
96+
}
97+
}stop;
98+
}
99+
}
100+
72101
class PB_5mmBoxPickup : HDUPK
73102
{
74103
Default

0 commit comments

Comments
 (0)