Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [HELP] Weapon Locker / Gun Locker Script

[HELP] Weapon Locker / Gun Locker Script

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
3 Posts 3 Posters 615 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JayKayGameundefined Offline
    JayKayGameundefined Offline
    JayKayGame
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • Hadi77KSAundefined Offline
      Hadi77KSAundefined Offline
      Hadi77KSA
      Contributor
      wrote on last edited by
      #2

      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);
      where self 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.

      1 Reply Last reply
      0
      • Sorexundefined Offline
        Sorexundefined Offline
        Sorex
        Contributor
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Donate