- // the higher the skill, the faster bots will start to digest you
- if(skill >= random_try)
- self.BUTTON_DIGEST = TRUE; // digest
+ // if the predator's health is smaller than the damage a stomach kick can do, regurgitate the player(s)
+ // otherwise the predator is putting himself at risk by keeping you inside
+ float kick_dmg;
+ if(cvar("g_vore_kick") && skill >= 7) // such awareness comes from skill level 7 and up
+ {
+ kick_dmg = cvar("g_balance_vore_kick_damage");
+ if(cvar("g_healthsize"))
+ {
+ entity e;
+ FOR_EACH_PLAYER(e) // count the size of all players in the stomach for accounting the danger level
+ {
+ if(e.predator == self)
+ if not(teamplay && e.team == self.team) // don't count team mates
+ kick_dmg *= pow(e.scale / self.scale, cvar("g_balance_vore_kick_scalediff")); // based on the damage the prey can do to us at his size
+ }
+ }
+ }
+ if(self.health <= kick_dmg)
+ self.BUTTON_REGURGITATE = TRUE;
+
+ else if(!self.digesting && cvar("g_vore_digestion"))
+ {
+ // the higher the skill, the faster bots will start to digest
+ if not(g_rpg && cvar("g_rpg_botattack") < 2)
+ if(skill >= randomtry)
+ self.BUTTON_DIGEST = TRUE; // digest