From: MirceaKitsune Date: Thu, 9 Sep 2010 16:57:18 +0000 (+0300) Subject: More changes to the botattack RPG setting; "bot behavior in RPG. 0 causes bots to... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=54cffb3d5821cf9a76ffddc1fc5e62bf3fd1d2da;p=voretournament%2Fvoretournament.git More changes to the botattack RPG setting; "bot behavior in RPG. 0 causes bots to never attack, 1 allows bots to swallow you harmlessly, 2 allows bots to attack normally" --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 4d5a73fd..a1b08f93 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -609,7 +609,7 @@ seta g_cts 0 "CTS: complete the stage" // rpg seta g_rpg 0 "RPG: RolePlay / Free Roam gametype" set g_rpg_canleave 1 "when enabled, anyone can leave a predator's stomach in RPG (like leaving a team mate in team games)" -set g_rpg_botattack 0 "when disabled, bots won't attack anyone in RPG (but will still swallow them harmlessly)" +set g_rpg_botattack 1 "bot behavior in RPG. 0 causes bots to never attack, 1 allows bots to swallow you harmlessly, 2 allows bots to attack normally" // server game balance settings // powerup balance settings diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index ea03a965..dddabf78 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -77,7 +77,7 @@ void Vore_AI() { // main vore AI code - if(cvar("bot_nofire") || !skill) + if(cvar("bot_nofire") || !skill || (g_rpg && cvar("g_rpg_botattack") < 1)) return; // -------------------------------- @@ -138,7 +138,7 @@ void Vore_AI() else if(!self.digesting) { // the higher the skill, the faster bots will start to digest you - if not(g_rpg && !cvar("g_rpg_botattack")) + if not(g_rpg && cvar("g_rpg_botattack") < 2) if(skill >= randomtry_pred) self.BUTTON_DIGEST = TRUE; // digest @@ -154,7 +154,7 @@ void Vore_AI() if(self.predator.classname == "player" && time > self.decide_prey) { - if not(g_rpg && !cvar("g_rpg_botattack")) + if not(g_rpg && cvar("g_rpg_botattack") < 2) if not(teams_matter && self.team == self.predator.team) { // the higher the skill, the more the bot will kick in your stomack @@ -168,9 +168,9 @@ void Vore_AI() { if(self.predator.digesting) // our predator is digesting, so get out of him regardless of who he is self.BUTTON_JUMP = TRUE; // leave - else 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 + else if not(g_rpg && cvar("g_rpg_botattack") < 2) { - if not(g_rpg && !cvar("g_rpg_botattack")) + 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 self.BUTTON_JUMP = TRUE; // leave } }