]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Vore AI: Don't eat someone with spawn shield active, since this means they're invinci...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 4 Oct 2010 10:40:11 +0000 (13:40 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 4 Oct 2010 10:40:11 +0000 (13:40 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 207f9055bb5c30adf7b1e37a5b1c5f11bfa1e7b4..8a18c2e7823af3f91a2b5d63a3e13848a5b68ec6 100644 (file)
@@ -5,6 +5,7 @@ float Swallow_condition_check_bot(entity prey)
        // checks the necessary conditions for a bot to swallow a player
 
        if(Swallow_condition_check(prey)) // check the normal conditions of the vore system
+       if(time >= prey.spawnshieldtime)
        if not(prey.BUTTON_CHAT) // don't eat players who are chatting
        if(self.health > cvar("g_balance_vore_kick_damage_max")) // explained below
                return TRUE;