From c4bca5f040fcc1a0457890122fe533290b15e638 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 30 Sep 2010 04:14:26 +0300 Subject: [PATCH] Cvar bots leaving the stomach automatically once team healed (in case the predator might still wish to keep the team mate in there) --- data/defaultVoretournament.cfg | 1 + data/qcsrc/server/bot/havocbot/vore_ai.qc | 1 + 2 files changed, 2 insertions(+) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 04d5a9de..b3bd7df3 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -359,6 +359,7 @@ set bot_ai_vore_decide_prey 1.35 "How fast bots decide what to do with their pre set bot_ai_vore_decide_swallow 0.2 "How often bots decide if to swallow someone or not" set bot_ai_vore_fear 2 "How much bots will fear players more powerful than them and avoid them in some situations" set bot_ai_vore_teamhealabandon 0.75 "Probability (from 0 to 1) of the bot abandoning a team heal when seeing an enemy they can vore, at highest skill" +set bot_ai_vore_stayinteamstomach 1 "When enabled, a bot will stay in a team mate's stomach even if he was teamhealed to the max and could willingly leave" set bot_god 0 "god mode for bots" set bot_ai_navigation_jetpack 0 "Enable bots to navigat maps using the jetpack" set bot_ai_navigation_jetpack_mindistance 3500 "Bots will try fly to objects located farther than this distance" diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 5a9fc91f..26c85aaa 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -183,6 +183,7 @@ void Vore_AI() else if not(g_rpg && cvar("g_rpg_botattack") < 2) { if not(teams_matter && self.team == self.predator.team && cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable")) // we are being team healed, don't leave + if not(teams_matter && self.team == self.predator.team && cvar("bot_ai_vore_stayinteamstomach")) // bots are not supposed to leave a team mate's stomach automatically self.BUTTON_JUMP = TRUE; // leave } } -- 2.39.2