mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 10:15:44 +00:00
IsPlayerModelOK
This commit is contained in:
parent
8ba7d014ea
commit
e43ccf77d6
@ -681,7 +681,7 @@ target()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
if(player == self)
|
||||
continue;
|
||||
|
@ -138,7 +138,7 @@ bot_cry_for_help( attacker )
|
||||
if(!isDefined(player.team))
|
||||
continue;
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if ( !IsAlive( player ) )
|
||||
@ -1454,7 +1454,7 @@ bot_think_follow()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if (player == self)
|
||||
@ -1968,7 +1968,7 @@ bot_listen_to_steps()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(player == self)
|
||||
@ -2170,7 +2170,7 @@ bot_killstreak_think()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(player == self)
|
||||
@ -2251,7 +2251,7 @@ bot_uav_think()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(player == self)
|
||||
|
@ -161,6 +161,14 @@ IsBotKnifing()
|
||||
return self.bot.isknifingafter;
|
||||
}
|
||||
|
||||
/*
|
||||
If the model of the player is good
|
||||
*/
|
||||
IsPlayerModelOK()
|
||||
{
|
||||
return (isDefined(self.bot_model_fix));
|
||||
}
|
||||
|
||||
/*
|
||||
Freezes the bot's controls.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user