From 2f80c413e75045ec5d0889c5c081b867e2ce7495 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 30 Sep 2010 04:27:32 +0300 Subject: [PATCH] keepinstomach - same thing on the predator's end. When enabled, a team mate will keep you in their stomach even after you were team healed (since you can willingly leave by pressing jump, so the choice remains yours) --- data/defaultVoretournament.cfg | 3 ++- data/qcsrc/server/bot/havocbot/vore_ai.qc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 2d60bdb9..e73e76e7 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -359,7 +359,8 @@ 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 0 "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_ai_vore_stayinstomach 0 "When enabled, a bot will stay in a team mate's stomach even if he has no reason to and could willingly leave" +set bot_ai_vore_keepinstomach 0 "When enabled, a bot will keep a team mate in his stomach even if he has no reason to and could regurgitate him" 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 26c85aaa..207f9055 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -56,6 +56,7 @@ void Vore_AI_Teamheal(entity prey) // now that we're decided if we can teamheal or not, lets go ahead and do so // if we are holding a team mate that's been healed to the limit, we can release them + if not(cvar("bot_ai_vore_keepinstomach")) FOR_EACH_PLAYER(head) { if(head.predator == self) // head is automatically a team mate, or we wouldn't be reaching this part of the code @@ -183,7 +184,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 + if not(teams_matter && self.team == self.predator.team && cvar("bot_ai_vore_stayinstomach")) // bots are not supposed to leave a team mate's stomach automatically self.BUTTON_JUMP = TRUE; // leave } } -- 2.39.2