mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-21 23:45:43 +00:00
IsPlayerModelOK
This commit is contained in:
parent
c996bd9fe7
commit
884c0b0959
@ -728,7 +728,7 @@ target()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
if(player == self)
|
||||
continue;
|
||||
|
@ -137,7 +137,7 @@ bot_cry_for_help( attacker )
|
||||
if(!isDefined(player.team))
|
||||
continue;
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if ( !IsAlive( player ) )
|
||||
@ -1498,7 +1498,7 @@ bot_revive_think()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(!isDefined(player.pers["team"]))
|
||||
@ -1715,7 +1715,7 @@ bot_think_follow()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if (player == self)
|
||||
@ -2229,7 +2229,7 @@ bot_listen_to_steps()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(player == self)
|
||||
@ -2423,7 +2423,7 @@ bot_killstreak_think()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(player == self)
|
||||
@ -2504,7 +2504,7 @@ bot_uav_think()
|
||||
{
|
||||
player = level.players[i];
|
||||
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
if(player == self)
|
||||
@ -2577,7 +2577,7 @@ bot_target_vehicle()
|
||||
for(i = 0; i < level.players.size; i++)
|
||||
{
|
||||
player = level.players[i];
|
||||
if(!isDefined(player.bot_model_fix))
|
||||
if(!self IsPlayerModelOK())
|
||||
continue;
|
||||
|
||||
vehicle = player GetVehicleOccupied();
|
||||
|
@ -157,6 +157,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