File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
zscript/HDBulletLib/Ammunition Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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+
72101class PB_5mmBoxPickup : HDUPK
73102{
74103 Default
You can’t perform that action at this time.
0 commit comments