From: MirceaKitsune Date: Fri, 3 Sep 2010 21:46:22 +0000 (+0300) Subject: Vore AI: Teach bots some manners - Don't eat players who are chatting X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b836cdfc893b5806fa630f824f61b98978247633;p=voretournament%2Fvoretournament.git Vore AI: Teach bots some manners - Don't eat players who are chatting --- diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index c0b7f547..0e51b841 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -15,7 +15,7 @@ entity Swallow_distance_check_bot(entity e) float Swallow_condition_check_bot(entity prey) { // checks the necessary conditions for a bot to swallow another player - if(prey != self && prey.classname == "player" && prey.eater.classname != "player" && prey.deadflag == DEAD_NO) // we can't swallow someone who's already in someone else's stomach + if(prey != self && prey.classname == "player" && prey.eater.classname != "player" && prey.deadflag == DEAD_NO && !prey.BUTTON_CHAT) // we can't swallow someone who's already in someone else's stomach if(self.eater.classname != "player" && self.stomach_load < cvar("g_balance_vore_swallow_limit")) // we can't swallow players while inside someone's stomach ourselves if not(cvar("g_vore_biggergut") && prey.stomach_load > self.stomach_load) if(self.health > cvar("g_balance_vore_kick_damage_max")) // explained below