Bots do random action at obj

This commit is contained in:
ineed bots
2022-04-08 21:03:32 -06:00
parent ebfba23513
commit 5e2c90b1d2
2 changed files with 162 additions and 0 deletions

View File

@@ -72,6 +72,27 @@ is_bot()
return ( ( isDefined( self.pers["isBot"] ) && self.pers["isBot"] ) || ( isDefined( self.pers["isBotWarfare"] ) && self.pers["isBotWarfare"] ) || isSubStr( self getguid() + "", "bot" ) );
}
/*
Set the bot's stance
*/
BotSetStance( stance )
{
switch ( stance )
{
case "stand":
self maps\mp\bots\_bot_internal::stand();
break;
case "crouch":
self maps\mp\bots\_bot_internal::crouch();
break;
case "prone":
self maps\mp\bots\_bot_internal::prone();
break;
}
}
/*
Bot changes to the weap
*/