File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ TAG_45ACP = ".45 ACP round";
2727TAG_3006 = ".30-06 round";
2828TAG_3006BRASS=".30-06 casing";
2929TAG_20MMGREN = "20mm grenade";
30+ TAG_20MMGRENBOX = "20mm grenade box";
3031TAG_10MMAUTO = "10mm Auto round";
3132TAG_10MMCASING = "10mm Auto casing";
3233TAG_6MMFLECH = "6x42mm SCF Round";
@@ -79,6 +80,7 @@ PICKUP_3006BRASS="Picked up some .30-06 brass.";
7980PICKUP_50OMG="Picked up a .50 OMG round.";
8081PICKUP_50OMGBOX="Picked up some .50 OMG ammo.";
8182PICKUP_20MM="Picked up a 20mm grenade.";
83+ PICKUP_20MMBOX="Picked up a box of 20mm grenades.";
8284PICKUP_THUNROCKET="Picked up a thunder rocket.";
8385PICKUP_TORTROCKET="Picked up a tortoise rocket.";
8486PICKUP_4GB="Picked up a 4 gauge 00 Buck shell.";
Original file line number Diff line number Diff line change @@ -203,6 +203,21 @@ class WAN_20mmGrenadeAmmo:HDAmmo{
203203 }
204204}
205205
206+ class WAN_20mmGrenadeBox:HDUPK{
207+ default{
208+ scale 0.33;
209+ tag "$TAG_20MMGRENBOX";
210+ hdupk.pickupmessage "$PICKUP_20MMBOX";
211+ hdupk.pickuptype "WAN_20mmGrenadeAmmo";
212+ hdupk.amount 10;
213+ }
214+ states{
215+ spawn:
216+ MA7G C -1;
217+ stop;
218+ }
219+ }
220+
206221class WAN_Dud20mmGrenade:HDActor{ //You can't use them for anything so there's no need to be able to pick them up currently
207222 //bool isrocket;
208223 default{
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ class HDBulletLibAmmoSpawner: EventHandler {
416416 // 20mm Grenade Ammo
417417 Array<HDBLRSpawnAmmoEntry> spawns_20mmgrenades;
418418 spawns_20mmgrenades.push(addAmmoEntry('RocketBoxRandom', hdb_20mm_rbox_spawn_bias));
419- addAmmo('WAN_20mmGrenadeAmmo ', spawns_20mmgrenades, hdb_20mm_persistent_spawning);
419+ addAmmo('WAN_20mmGrenadeBox ', spawns_20mmgrenades, hdb_20mm_persistent_spawning);
420420
421421 // Thunder Rockets
422422 Array<HDBLRSpawnAmmoEntry> spawns_thunderrockets;
You can’t perform that action at this time.
0 commit comments