1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-29 07:31:50 +00:00

Bots do random action at obj

This commit is contained in:
ineed bots
2022-04-08 21:29:40 -06:00
parent 2f2b5eca2f
commit 521e31211e
2 changed files with 179 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
*/