]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix a bug. Apparently this was conflicting with a float from another file, causing...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 15:08:22 +0000 (18:08 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 9 Sep 2010 15:08:22 +0000 (18:08 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index e3e249201bd3137544c748e614e4da49c64e7cb5..d8f7abd4632872f010c50d7f806a0f544f86cd0c 100644 (file)
@@ -72,7 +72,7 @@ void Vore_AI_Teamheal(entity prey)
                self.BUTTON_ATCK = TRUE; // swallow the team mate
 }
 
-.float swallow_delay, decide_delay1, decide_delay2;
+.float swallow_retry, decide_delay1, decide_delay2;
 void Vore_AI()
 {
        // main vore AI code
@@ -113,7 +113,7 @@ void Vore_AI()
        decide_prey = cvar("bot_ai_vore_decide_prey") / (skill * 2 + 1) / self.bot_vorethink;
        decide_pred = cvar("bot_ai_vore_decide_pred") / (skill * 2 + 1) / self.bot_vorethink;
 
-       if(time > self.swallow_delay)
+       if(time > self.swallow_retry)
        if(Swallow_condition_check_bot(prey))
        {
                // the greater the skill, the higher the chance bots will swallow someone each attempt
@@ -123,7 +123,7 @@ void Vore_AI()
                        self.BUTTON_ATCK = TRUE; // swallow
                        self.decide_delay1 = time + decide_pred; // time before the bot decides what to do with their prey
                }
-               self.swallow_delay = time + cvar("bot_ai_vore_decide_swallow") / (skill + 1);
+               self.swallow_retry = time + cvar("bot_ai_vore_decide_swallow") / (skill + 1);
        }
 
        // deciding what to do with a victim: