Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [SOLVED] 3 weapons / additional weapon

[SOLVED] 3 weapons / additional weapon

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 2 Posters 1.2k Views
  • 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.
  • broken168undefined Offline
    broken168undefined Offline
    broken168
    wrote on last edited by broken168
    #1

    Hey, guys. I'm trying to use 3 weapons on my server, but without success so far ...
    I try to change weapon_limit to weapon_limit = 3 and maxweapons to maxweapons = 3 in the script, but without success ...
    I thought about adding mule kick, but I don't know how to continue with mule kick after drop and revive...

    HELP PLSSSSS
    (sorry, i'm using google translate)

    1 Reply Last reply
    1
    • broken168undefined Offline
      broken168undefined Offline
      broken168
      wrote on last edited by
      #2

      Hey, guys. I managed to make it work. Changing by the "main" script was not working, I downloaded the decompiled _zm_utility script, changed the rules and copied it to the server, now the server loads 2 scripts. I don't think it's the best solution, but I didn't find anything about it, so I'll leave my solution here.

      if (true)
      {
      weapon_limit = level.additionalprimaryweapon_limit;
      }

      https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer/blob/238cfb5b7199e7fe234b965fa2f342e8a611de17/patch_zm/maps/mp/zombies/_zm_utility.gsc

      JezuzLizardundefined 1 Reply Last reply
      0
      • broken168undefined broken168

        Hey, guys. I managed to make it work. Changing by the "main" script was not working, I downloaded the decompiled _zm_utility script, changed the rules and copied it to the server, now the server loads 2 scripts. I don't think it's the best solution, but I didn't find anything about it, so I'll leave my solution here.

        if (true)
        {
        weapon_limit = level.additionalprimaryweapon_limit;
        }

        https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer/blob/238cfb5b7199e7fe234b965fa2f342e8a611de17/patch_zm/maps/mp/zombies/_zm_utility.gsc

        JezuzLizardundefined Offline
        JezuzLizardundefined Offline
        JezuzLizard
        Plutonium Staff
        wrote on last edited by
        #3

        broken168 I wouldn't recommend using that script as it is currently, due to it being in the major errors category still. I never got around to fixing it since its likely to be difficult to fix due to its size and the number functions it contains. I can't recall the exact bugs I encountered when I tested _zm_utility.gsc so anyone else wanting to use this script be warned that there may be unintended behaviors.

        broken168undefined 2 Replies Last reply
        1
        • JezuzLizardundefined JezuzLizard

          broken168 I wouldn't recommend using that script as it is currently, due to it being in the major errors category still. I never got around to fixing it since its likely to be difficult to fix due to its size and the number functions it contains. I can't recall the exact bugs I encountered when I tested _zm_utility.gsc so anyone else wanting to use this script be warned that there may be unintended behaviors.

          broken168undefined Offline
          broken168undefined Offline
          broken168
          wrote on last edited by
          #4

          JezuzLizard Thanks for letting me know. I will continue testing and leave my feedback in case something goes wrong.

          1 Reply Last reply
          0
          • JezuzLizardundefined JezuzLizard

            broken168 I wouldn't recommend using that script as it is currently, due to it being in the major errors category still. I never got around to fixing it since its likely to be difficult to fix due to its size and the number functions it contains. I can't recall the exact bugs I encountered when I tested _zm_utility.gsc so anyone else wanting to use this script be warned that there may be unintended behaviors.

            broken168undefined Offline
            broken168undefined Offline
            broken168
            wrote on last edited by broken168
            #5

            JezuzLizard I found these bugs: the monkey bomb and the flashbang are working as weapons, that is, when I have 3 guns and I get the monkey bomb, I lose a gun. if I have the monkey bomb and try to get the flashbang, or vice versa, I can't, but I can get another weapon without losing the monkey bomb / flashbang. this is confusing, sorry.

            do you know how i can change weapon_limit without having to load the script?

            JezuzLizardundefined 1 Reply Last reply
            0
            • broken168undefined broken168

              JezuzLizard I found these bugs: the monkey bomb and the flashbang are working as weapons, that is, when I have 3 guns and I get the monkey bomb, I lose a gun. if I have the monkey bomb and try to get the flashbang, or vice versa, I can't, but I can get another weapon without losing the monkey bomb / flashbang. this is confusing, sorry.

              do you know how i can change weapon_limit without having to load the script?

              JezuzLizardundefined Offline
              JezuzLizardundefined Offline
              JezuzLizard
              Plutonium Staff
              wrote on last edited by
              #6

              broken168 Define this function override in _clientids.gsc

              level.get_player_weapon_limit = ::new_weapon_limit;
              
              new_weapon_limit( player )
              {
                 return 3;
              }
              
              1 Reply Last reply
              0
              • broken168undefined Offline
                broken168undefined Offline
                broken168
                wrote on last edited by
                #7

                THANK YOU SO MUCH :))))))

                I tried to add the code the way you showed it, but there was an error in syntax when I tried to compile. I tried to make a change until it worked. it looked like this:

                newLimit()
                {
                	level.get_player_weapon_limit = ::new_weapon_limit;
                }
                new_weapon_limit( player )
                {
                	  return 3;
                }
                
                

                and called the newLimit () function; in spawned action.

                TY TY TY ❤

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                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
                • Unread 0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups