return FALSE;
}
else if(bot_ignore_bots)
- if(clienttype(e) == CLIENTTYPE_BOT)
+ if(IS_BOT_CLIENT(e))
return FALSE;
if (!e.takedamage)
return FALSE;
if (e.BUTTON_CHAT)
return FALSE;
- if(g_minstagib)
- if(e.items & IT_STRENGTH)
- return FALSE;
if(e.flags & FL_NOTARGET)
return FALSE;
+
+ checkentity = e;
+ if(MUTATOR_CALLHOOK(BotShouldAttack))
+ return FALSE;
+
return TRUE;
}
shotspeedupward *= g_weaponspeedfactor;
if (!shotspeed)
{
- dprint("bot_aim: WARNING: weapon ", W_Name(self.weapon), " shotspeed is zero!\n");
+ dprint("bot_aim: WARNING: weapon ", WEP_NAME(self.weapon), " shotspeed is zero!\n");
shotspeed = 1000000;
}
if (!maxshottime)
{
- dprint("bot_aim: WARNING: weapon ", W_Name(self.weapon), " maxshottime is zero!\n");
+ dprint("bot_aim: WARNING: weapon ", WEP_NAME(self.weapon), " maxshottime is zero!\n");
maxshottime = 1;
}
makevectors(self.v_angle);