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

Plutonium

  1. Home
  2. BO2 Client Support
  3. [BO2][MP] Some bots don't attack.

[BO2][MP] Some bots don't attack.

Scheduled Pinned Locked Moved BO2 Client Support
10 Posts 3 Posters 351 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.
  • wombBlasterundefined Offline
    wombBlasterundefined Offline
    wombBlaster
    wrote on last edited by
    #1

    Creating a dedicated server and playing lan with my friends, sometimes some bots spawn which do not attack the whole game, only way i can fix is restarting or respawning the bots.

    It seems random.. no specific classes or maps are affected more than others..
    it may be one or more bots
    sometimes no bots.

    Basically i can stand in front of an enemy bot and it wont even knife..

    its super frustrating when we have a little tourny and cant rely on the scores because bots are not consistent.
    cant really find anything in the archives which describes my issue.. these Zero bots are a bit of a pita.

    any known issues ive missed?

    1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      Try with(out) Bot Warfare depending on if you're already using it or not

      1 Reply Last reply
      0
      • wombBlasterundefined Offline
        wombBlasterundefined Offline
        wombBlaster
        wrote on last edited by
        #3

        im using botwarfare, when i remove it my script stops working for spawning bots... am i being dumb here?

        setDvar("bots_manage_add",botAmount );

        Resxtundefined 1 Reply Last reply
        0
        • wombBlasterundefined wombBlaster

          im using botwarfare, when i remove it my script stops working for spawning bots... am i being dumb here?

          setDvar("bots_manage_add",botAmount );

          Resxtundefined Offline
          Resxtundefined Offline
          Resxt
          Plutonium Staff
          wrote on last edited by
          #4

          wombBlaster this is a Bot Warfare dvar

          wombBlasterundefined 1 Reply Last reply
          0
          • Resxtundefined Resxt

            wombBlaster this is a Bot Warfare dvar

            wombBlasterundefined Offline
            wombBlasterundefined Offline
            wombBlaster
            wrote on last edited by
            #5

            Resxt

            Indeed. Thanks for your suggestion.

            Is this a known problem with current bot warfare script or the inbuilts (which i thought were the same actually) or were you just guessing?

            Either way the problem persists.. any further advice how i could troubleshoot this issue to make bots consistent?

            all the best

            Resxtundefined 1 Reply Last reply
            0
            • wombBlasterundefined wombBlaster

              Resxt

              Indeed. Thanks for your suggestion.

              Is this a known problem with current bot warfare script or the inbuilts (which i thought were the same actually) or were you just guessing?

              Either way the problem persists.. any further advice how i could troubleshoot this issue to make bots consistent?

              all the best

              Resxtundefined Offline
              Resxtundefined Offline
              Resxt
              Plutonium Staff
              wrote on last edited by
              #6

              wombBlaster no

              1 Reply Last reply
              0
              • wombBlasterundefined Offline
                wombBlasterundefined Offline
                wombBlaster
                wrote on last edited by
                #7

                u dont have to be a dildo lol not long ago you were the one asking for (and getting) help

                Resxtundefined 1 Reply Last reply
                0
                • wombBlasterundefined wombBlaster

                  u dont have to be a dildo lol not long ago you were the one asking for (and getting) help

                  Resxtundefined Offline
                  Resxtundefined Offline
                  Resxt
                  Plutonium Staff
                  wrote on last edited by
                  #8

                  wombBlaster you asked two questions that can be answered by yes or no, answer is no to both so I said "no"
                  You have to be pretty stupid to see this as me being a "dildo" whatever the fuck this means

                  1 Reply Last reply
                  0
                  • JezuzLizardundefined Offline
                    JezuzLizardundefined Offline
                    JezuzLizard
                    Plutonium Staff
                    wrote on last edited by
                    #9

                    Basically T6 was not designed to run on dedicated servers with bots joining first as client 0. Basically the engine does some specific stuff for client 0(which would be the host player in peer to peer), and it seems as if this is the reason for the bot being braindead. So solution don't allow bots in client 0.

                    wombBlasterundefined 1 Reply Last reply
                    1
                    • JezuzLizardundefined JezuzLizard

                      Basically T6 was not designed to run on dedicated servers with bots joining first as client 0. Basically the engine does some specific stuff for client 0(which would be the host player in peer to peer), and it seems as if this is the reason for the bot being braindead. So solution don't allow bots in client 0.

                      wombBlasterundefined Offline
                      wombBlasterundefined Offline
                      wombBlaster
                      wrote on last edited by
                      #10

                      JezuzLizard

                      Great info thanks

                      so im gonna start with something like this.. im sure theres better ways but it seems to work for my use case... if it turns out not ill continue thread.Thanks a bunch!

                      main(){
                      //other bits
                      }
                      
                      init(){
                      
                      //..
                      
                      setdvar( "bots_main_firstIsHost", true );
                      level thread spawnBots(botAmount);
                      
                      }
                      
                      
                      spawnBots(amount)
                      {
                         
                      	 while(!isHost(level.players[0])){
                      	
                      	  wait(2); // Give some time
                      
                      	//quick check for players
                      	  playerPool = level.players.size;
                      	  println("There are "+level.players.size+" Players");
                      	
                      if(playerPool>0){
                      //someone is here..
                       if (isHost(level.players[0]))
                          {
                      	  println("Client 0 IS host, rain bots");
                      	   wait(2);
                      	     for (i = 0; i < amount; i++)
                              {
                                  addTestClient();  //< i think this is the way...
                              }
                      	  break;
                      	}else{
                      	 println("Client 0 IS NOT host");
                      	// maybe here i should kick bots and redo from start
                      	}
                      	}
                      	}
                        
                      
                      	  println("Bots done!");
                      	  
                      }
                      
                      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