[HELP] Weapon Locker / Gun Locker Script
-
I want to know how or if someone can publicly share a script to have a specific weapon in the gun locker (pack-a-punch or not) every time you load into the map?
I don't want to constantly be saving the weapon in the locker and just have one specific weapon available at any time at any loading of the maps.
Thank you
-
Check out 5and5’s BO2 Remix Mod. The way setting the fridge/locker weapon’s works is by using the following:
self setdstat("PlayerStatsByMap", "zm_transit", "weaponLocker", variable, variable_value);
whereself
should reference the player,variable
can be any of:- "name"
- "clip"
- "stock"
- "alt_name"
- "alt_size"
- "alt_stock"
- "dw_name"
- "lh_stock"
and
variable_value
is the desired value of the corresponding variable. Most scripts I’ve found only set the main name, clip, and stock. This is enough in most cases, but neglects dual wield weapons and the variations of upgraded weapons that have attachments that come with ammo such as the nube tube.Zi0’s T6-B2OP-PATCH script can be used to set the locker weapon through console commands and chat commands, but it doesn’t meet your requirements of setting the weapon every time the player connects. You can reference it though to see how it sets the player’s locker weapon.
-
As requested i just made a quick and easy script that at the start of the game it will maxout bank and restore the locker to the weapon you need.
Is called "QoL EE Speedrunner" since seems to be usefull for this community.
https://github.com/DoktorSAS/GSC/blob/main/T6/zm/QoLEESpeedrunners.gsc