Bot AI: If reverse scoring is on, it's in the interest of the prey to get eaten,...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Jul 2011 20:49:02 +0000 (23:49 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Jul 2011 20:49:02 +0000 (23:49 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index d28839a..6fa5945 100644 (file)
@@ -196,6 +196,9 @@ void Vore_AI()
 // Prey bot behavior:
 // --------------------------------
 
+       if(cvar("g_vore_reversescoring")) // if reverse scoring is on, it's in the interest of the prey to get eaten, so don't fight back
+               return;
+
        // while being swallowed, smart bots know to keep jumping to make it harder to be caught
        // TODO: Don't do this if the predator is a team mate
        if(self.swallow_progress_prey)