Skip to content

Commit c2b25ad

Browse files
Merge pull request #23 from Thecrik/main
added a 20mm box pickup
2 parents b97c307 + 4f9f795 commit c2b25ad

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

LANGUAGE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ TAG_45ACP = ".45 ACP round";
2727
TAG_3006 = ".30-06 round";
2828
TAG_3006BRASS=".30-06 casing";
2929
TAG_20MMGREN = "20mm grenade";
30+
TAG_20MMGRENBOX = "20mm grenade box";
3031
TAG_10MMAUTO = "10mm Auto round";
3132
TAG_10MMCASING = "10mm Auto casing";
3233
TAG_6MMFLECH = "6x42mm SCF Round";
@@ -79,6 +80,7 @@ PICKUP_3006BRASS="Picked up some .30-06 brass.";
7980
PICKUP_50OMG="Picked up a .50 OMG round.";
8081
PICKUP_50OMGBOX="Picked up some .50 OMG ammo.";
8182
PICKUP_20MM="Picked up a 20mm grenade.";
83+
PICKUP_20MMBOX="Picked up a box of 20mm grenades.";
8284
PICKUP_THUNROCKET="Picked up a thunder rocket.";
8385
PICKUP_TORTROCKET="Picked up a tortoise rocket.";
8486
PICKUP_4GB="Picked up a 4 gauge 00 Buck shell.";

sprites/20mm Grenades/MA7GC0.png

360 Bytes
Loading

zscript/HDBulletLib/Ammunition/20mm Grenades.zsc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
206221
class 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{

zscript/HDBulletLib/SpawnHandler.zsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)