]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
More changes to the botattack RPG setting; "bot behavior in RPG. 0 causes bots to...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 16:57:18 +0000 (19:57 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 16:57:18 +0000 (19:57 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 4d5a73fd21df28e5a23c9999035c815c7a155346..a1b08f936cef378fd9cfbed14428914dc32daefb 100644 (file)
@@ -609,7 +609,7 @@ seta g_cts 0 "CTS: complete the stage"
 // rpg\r
 seta g_rpg 0 "RPG: RolePlay / Free Roam gametype"\r
 set g_rpg_canleave 1 "when enabled, anyone can leave a predator's stomach in RPG (like leaving a team mate in team games)"\r
-set g_rpg_botattack 0 "when disabled, bots won't attack anyone in RPG (but will still swallow them harmlessly)"\r
+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"\r
 \r
 // server game balance settings\r
 // powerup balance settings\r
index ea03a965db5d92be9cf25250771af4244eab5b0e..dddabf787364cdc60e51a50e0ef6d7d82593c852 100644 (file)
@@ -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
                        }
                }