Skip to content

Commit daba543

Browse files
Merge pull request #42 from Eroc/main
Add backpack/ammo box options for belt links
2 parents 94f30db + da45bf5 commit daba543

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

LANGUAGE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ PICKUP_420FREIBOX="Picked up some .451 Frei ammo.";
107107
PICKUP_069BORE="Picked up a .066 bore shell.";
108108
PICKUP_069BOREBOX="Picked up some .066 bore shells.";
109109

110+
TAG_BELTLINKS="Belt Links";
110111
TAG_776BELTLINK="Small Belt Link";
111112
TAG_12MMBELTLINK="Medium-Sized Belt Link";
112113
TAG_35MMBELTLINK="Large Belt Link";
@@ -121,4 +122,4 @@ PICKUP_35MMBELTLINKPILE="Picked up a pile of large belt links.";
121122

122123

123124
OB_20MM="%o was fragged by %k.";
124-
OB_WANROCKET="%o was fragged by %k.";
125+
OB_WANROCKET="%o was fragged by %k.";

MENUDEF

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ OptionMenu "HDBulletLibMenu"
6262
Submenu "$TAG_22LR", "5mm", 0, 1
6363
Submenu "$TAG_50AM", "50AM", 0, 1
6464
Submenu "$TAG_6MMFLECH", "6mmF", 0, 1
65+
Submenu "$TAG_BELTLINKS", "Belts", 0, 1
6566
StaticText ""
6667
StaticText "Created by Wanzer", "Light Blue"
6768
Submenu "$TAG_THUNROCKET", "ThuRKT", 0, 1
@@ -824,3 +825,17 @@ OptionMenu 762Tokarev
824825
StaticText "Reset Options", "Orange"
825826
SafeCommand "Reset all options", "hdb_762Tokarev_reset_cvars"
826827
}
828+
829+
OptionMenu Belts
830+
{
831+
Title "------ Belt Link Options ------"
832+
StaticText "Enable/Disable Small Belt Links from spawning in Ammo Boxes and Backpacks.", "Orange"
833+
FlagOption "$TAG_776BELTLINK", "hdblib_enableammo_1", "OnOff", 31
834+
StaticText ""
835+
StaticText "Enable/Disable Medium Belt Links from spawning in Ammo Boxes and Backpacks.", "Orange"
836+
FlagOption "$TAG_12MMBELTLINK", "hdblib_enableammo_2", "OnOff", 0
837+
StaticText ""
838+
StaticText "Enable/Disable Large Belt Links from spawning in Ammo Boxes and Backpacks.", "Orange"
839+
FlagOption "$TAG_35MMBELTLINK", "hdblib_enableammo_2", "OnOff", 1
840+
StaticText ""
841+
}

zscript/HDBulletLib/SpawnHandler.zsc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class HDBulletLibHandler : EventHandler {
3333
'Savage300Ammo',
3434
'HD762TokarevAmmo',
3535
'TokarevBrass',
36-
'Savage300Brass'
36+
'Savage300Brass',
37+
'HD_776BeltLink', //[Eric] NOTE FOR FUTURE ADDITIONS: The first hdblib_enableammo CVAR is full as of this line. The next 32 entries below must use hdblib_enableammo_2.
38+
'HD_12MMBeltLink',
39+
'HD_35mmBeltLink'
3740
};
3841

3942
// [Ace] Future-proofing. I doubt this library will ever have 32 * 3 ammo types and projectiles.

0 commit comments

Comments
 (0)