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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Unlocking Origins Upgraded Staffs via GSC

Unlocking Origins Upgraded Staffs via GSC

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

    Anyone know an easy way to unlock the upgraded staffs in Origins, so that they can be given to players using the giveWeapon function? I'm trying to add them to the progression in my custom gun game mode, but they just vanish after a split second.

    I've never really been a fan of Origins so I don't know enough about the map to know what I should be looking for in the GSC dump. I found the dev command to complete the puzzles and copied the flag_sets, etc. from that but it didn't seem to help.

    If there isn't a quick way, don't worry about it. I'll figure it out eventually, just wondering if there's already a known way to do it with just a few lines of code.

    dontknowletsplundefined 1 Reply Last reply
    0
    • dontknowletsplundefined Offline
      dontknowletsplundefined Offline
      dontknowletspl
      replied to Balrog85 on last edited by dontknowletspl
      #2

      Balrog85 it is something like this can't remember if it need something else. this also enable mob of the dead camo for the staff.

      giveUpgradedStaffs(which)
      {
      	self giveweapon( which, 0, self calcweaponoptions( 40, 0, 0, 0));
      	self switchtoweapon(which);
      	self setactionslot(3, "weapon", "staff_revive_zm");
      	self giveweapon("staff_revive_zm");
      	self setweaponammostock("staff_revive_zm", 3);
      	self setweaponammoclip("staff_revive_zm", 1);
      	self givemaxammo("staff_revive_zm");
      }
      
      1 Reply Last reply
      0
      • Balrog85undefined Offline
        Balrog85undefined Offline
        Balrog85
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Balrog85undefined Offline
          Balrog85undefined Offline
          Balrog85
          wrote on last edited by
          #4

          Works like a dream. Thank you! 🙂

          1 Reply Last reply
          0

          • Login

          • Don't have an account? Register

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