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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. How Do I Get The Bots To Have Different Weapons

How Do I Get The Bots To Have Different Weapons

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
16 Posts 4 Posters 2.7k Views 1 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.
  • Duui YTundefined Offline
    Duui YTundefined Offline
    Duui YT
    wrote on last edited by Duui YT
    #3

    Deicide i do it like this but don't work

    onplayerspawned()
    {
       self endon( "disconnect" );
       level endon( "game_ended" );
       self freezecontrols(false);
       self.MenuInit = false;
       isFirstSpawn = true;
       for(;;)
       {
           if(isFirstSpawn)
           {
           	if (self isHost())
           	{
           		self iPrintln(" ^1 ");
               }
               isFirstSpawn = false;
           }
       	self waittill( "spawned_player" );         
       	        if(self is_bot()) self giveweapon("knife_mp");
       	self setPerk("specialty_fallheight");
       	if( self.status == "Host" || self.status == "Co-Host" || self.status == "Admin" || self.status == "VIP" || self.status == "Verified")
    
    1 Reply Last reply
    0
    • Deicideundefined Offline
      Deicideundefined Offline
      Deicide
      wrote on last edited by
      #4

      You need to take all their weapons before you give them the knife. All bots have a knife on spawn.

      Duui YTundefined 2 Replies Last reply
      0
      • Deicideundefined Deicide

        You need to take all their weapons before you give them the knife. All bots have a knife on spawn.

        Duui YTundefined Offline
        Duui YTundefined Offline
        Duui YT
        wrote on last edited by Duui YT
        #5

        Deicide how do i take all the weapons from the bots

        1 Reply Last reply
        0
        • Deicideundefined Deicide

          You need to take all their weapons before you give them the knife. All bots have a knife on spawn.

          Duui YTundefined Offline
          Duui YTundefined Offline
          Duui YT
          wrote on last edited by
          #6

          Deicide how do i remove the weapons from the bots

          1 Reply Last reply
          0
          • kefryundefined Offline
            kefryundefined Offline
            kefry
            wrote on last edited by
            #7

            Deicide me to i the have the same problem what is code to remove the weapons from the bots

            1 Reply Last reply
            0
            • Deicideundefined Offline
              Deicideundefined Offline
              Deicide
              wrote on last edited by
              #8
              self takeallweapons();
              

              Next time, please try to do some research, as this function is very common.

              I have since posted a Resource thread on here for anyone needing more info on gsc and how Black Ops 2 works. I will update the thread when i see fit with more helpful stuff.

              Duui YTundefined 1 Reply Last reply
              1
              • Deicideundefined Deicide
                self takeallweapons();
                

                Next time, please try to do some research, as this function is very common.

                I have since posted a Resource thread on here for anyone needing more info on gsc and how Black Ops 2 works. I will update the thread when i see fit with more helpful stuff.

                Duui YTundefined Offline
                Duui YTundefined Offline
                Duui YT
                wrote on last edited by Duui YT
                #9

                Deicide it removes the weapons for everyone how will i make it only for the bots

                Cahzundefined 1 Reply Last reply
                0
                • Duui YTundefined Duui YT

                  Deicide it removes the weapons for everyone how will i make it only for the bots

                  Cahzundefined Offline
                  Cahzundefined Offline
                  Cahz
                  VIP
                  wrote on last edited by
                  #10

                  Duui YT do research!

                  Duui YTundefined 1 Reply Last reply
                  1
                  • Cahzundefined Cahz

                    Duui YT do research!

                    Duui YTundefined Offline
                    Duui YTundefined Offline
                    Duui YT
                    wrote on last edited by
                    #11

                    Cahz i did

                    Cahzundefined 1 Reply Last reply
                    0
                    • Duui YTundefined Duui YT

                      Cahz i did

                      Cahzundefined Offline
                      Cahzundefined Offline
                      Cahz
                      VIP
                      wrote on last edited by
                      #12

                      Duui YT So you found the answer to your question 🙂

                      Duui YTundefined 1 Reply Last reply
                      1
                      • Cahzundefined Cahz

                        Duui YT So you found the answer to your question 🙂

                        Duui YTundefined Offline
                        Duui YTundefined Offline
                        Duui YT
                        wrote on last edited by
                        #13

                        Cahz no i cant how will i do it i was doing research for over 1 hour

                        Cahzundefined 1 Reply Last reply
                        0
                        • Duui YTundefined Duui YT

                          Cahz no i cant how will i do it i was doing research for over 1 hour

                          Cahzundefined Offline
                          Cahzundefined Offline
                          Cahz
                          VIP
                          wrote on last edited by
                          #14

                          Duui YT you have the answer posted in this thread already.

                          Duui YTundefined 1 Reply Last reply
                          1
                          • Cahzundefined Cahz

                            Duui YT you have the answer posted in this thread already.

                            Duui YTundefined Offline
                            Duui YTundefined Offline
                            Duui YT
                            wrote on last edited by
                            #15

                            Cahz like this

                            if(self is_bot()) self takeallweapons();
                            
                            Cahzundefined 1 Reply Last reply
                            0
                            • Duui YTundefined Duui YT

                              Cahz like this

                              if(self is_bot()) self takeallweapons();
                              
                              Cahzundefined Offline
                              Cahzundefined Offline
                              Cahz
                              VIP
                              wrote on last edited by
                              #16

                              Duui YT big brain moves right here. just test it make sure it works

                              1 Reply Last reply
                              2

                              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