making enemy bots harmless?
-
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(); } } }
-
Figured out how to take their weapons after hours of debugging,
now how do i stop them from running at eachother like apes lol