\r
// if a predator is taking damage, check if he should regurgitate his prey, based on the damage he took\r
if(cvar("g_balance_vore_escapeprobability"))\r
- {\r
- entity e;\r
- FOR_EACH_PLAYER(e)\r
- {\r
- if(e.predator != world && e.predator == targ)\r
- if(random() < cvar("g_balance_vore_escapeprobability") * damage)\r
- Vore_Regurgitate(e);\r
- }\r
- }\r
+ if(targ.stomach_load && random() < cvar("g_balance_vore_escapeprobability") * damage)\r
+ targ.regurgitate_prepare = -1;\r
\r
// nullify damage if teamplay is on\r
if(deathtype != DEATH_TELEFRAG)\r