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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. making enemy bots harmless?

making enemy bots harmless?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
2 Posts 1 Posters 84 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.
  • w00dyundefined Offline
    w00dyundefined Offline
    w00dy
    wrote on last edited by
    #1

    Been trying to figure out a way to make them harmless for a TS mod menu,

    https://forum.plutonium.pw/topic/1848/how-do-i-get-the-bots-to-have-different-weapons

    I have referred to this thread but with no prevail here is what I came up with, any idea on why they still spawn with items?

    onplayerconnect()
    {
        for(;;)
        {
            level waittill( "connecting", player );
    		if(self is_bot()) self takeallweapons();
            if(isDefined(player.pers["isBot"]) && player.pers["isBot"]){
    			player thread botCantWin();
    			player takeallweapons();
    		}
    		else{	
           		player thread onplayerspawned();
    			player thread activateVoteKickSystem();
    		}
    	}
    }
    
    1 Reply Last reply
    0
    • w00dyundefined Offline
      w00dyundefined Offline
      w00dy
      wrote on last edited by
      #2

      Figured out how to take their weapons after hours of debugging,
      now how do i stop them from running at eachother like apes lol

      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