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:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user