]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Add a request made by several players; A way to disable digestion, for gentle vore...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 4 Oct 2010 22:35:42 +0000 (01:35 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 4 Oct 2010 22:35:42 +0000 (01:35 +0300)
data/defaultVoretournament.cfg
data/qcsrc/server/bot/havocbot/vore_ai.qc
data/qcsrc/server/vore.qc

index e80f290de406982ec2564f460c9ce05effb1f387..fd6ffe9f0a45b9f5c33522ef9802cb7eaf0c44e3 100644 (file)
@@ -1462,6 +1462,8 @@ set cl_vore_stomachmodel 1 "when enabled, we see the stomach model around us whe
 set cl_vore_cameraspeed 1.5 "speed at which you see yourself sliding down when swallowed, 0 disables"\r
 set cl_vore_punchangle 10 "your view gets tilted by this amount when swallowing or regurgitating someone"\r
 set g_vore 1 "enables the vore system, you want this on!"\r
+set g_vore_digestion 1 "enables digestion system, you want this on!"\r
+set g_vore_kick 1 "enables stomach kick system, you want this on!"\r
 set g_vore_reversescoring 0 "reverses vore scoring, and gives digested prey a frag rather than the predator (offer yourself gameplay), does not affect suicides, weapon kills and team kills"\r
 set g_vore_teamvore 1 "allow players to swallow their team mates"\r
 set g_vore_biggergut 1 "when enabled, a player can't swallow someone with more players in their stomach than them"\r
index 51a3ed393989c7fafaf9df4b3cab0c93ffd59571..7d99813ca98ed0996e7665ce502d30fb810a82c4 100644 (file)
@@ -126,7 +126,7 @@ void Vore_AI()
                decide_pred_time = cvar("bot_ai_vore_decide_pred") / skill / self.bot_vorethinkpred;
                decide_prey_time = cvar("bot_ai_vore_decide_prey") / skill / self.bot_vorethinkprey;
 
-               if(time > self.decide_swallow)
+               if(time > self.decide_swallow && cvar("g_vore_digestion"))
                if(Swallow_condition_check_bot(prey))
                {
                        // the greater the skill, the higher the chance bots will swallow someone each attempt
@@ -148,7 +148,7 @@ void Vore_AI()
                        if(self.health <= cvar("g_balance_vore_kick_damage_max"))
                                self.BUTTON_REGURGITATE = TRUE;
 
-                       else if(!self.digesting)
+                       else if(!self.digesting && cvar("g_vore_digestion"))
                        {
                                // the higher the skill, the faster bots will start to digest you
                                if not(g_rpg && cvar("g_rpg_botattack") < 2)
@@ -168,6 +168,7 @@ void Vore_AI()
        {
                // all we can do in the stomach is kick and do some damage / try to escape, or leave if the circumstances allow it and we should
 
+               if(cvar("g_vore_kick"))
                if not(g_rpg && cvar("g_rpg_botattack") < 2)
                if not(teams_matter && self.team == self.predator.team)
                {
index ac0da273d8a1998b9b7951754bc5ed27da225314..61330cd49e2d8c844407c83ef4a8e0c53d7afa05 100644 (file)
@@ -253,6 +253,9 @@ void Vore_Digest()
 {\r
        // apply digestion to prey\r
 \r
+       if(!cvar("g_vore_digestion"))\r
+               return;\r
+\r
        if(time > self.predator.digestion_step)\r
        {\r
                Damage(self, self.predator, self.predator, cvar("g_balance_vore_digestion_damage"), DEATH_DIGESTION, self.origin, '0 0 0');\r
@@ -290,6 +293,9 @@ void Vore_StomachKick()
 {\r
        // allows prey to kick the predator's stomach and do some damage or attempt to escape\r
 \r
+       if(!cvar("g_vore_kick"))\r
+               return;\r
+\r
        if(time > self.stomachkick_delay)\r
        {\r
                float damage;\r