set g_balance_vore_regurgitate_delay 0.5 "regurgitation delay"\r
set g_balance_vore_regurgitate_punchangle 12 "your view gets tilted by this amount when regurgitating someone"\r
set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion"\r
+set g_balance_vore_digestion_limit -25 "prey can be digested down to this amount of health"\r
+set g_balance_vore_digestion_limit_regurgitate 1 "the predator automatically regurgitates prey that has reached the digestion limit"\r
set g_balance_vore_digestion_vampire 1 "amount of health you gain from digestion"\r
set g_balance_vore_digestion_vampire_stable 150 "maximum amount of health you can gain from digestion (best kept equal or less than g_balance_health_rotstable)"\r
set g_balance_vore_digestion_distribute 1 "if enabled, digestion is reduced by the amount of prey you have. eg: having 2 prey will reduce digestion strength by 2"\r
{\r
float e, ph, pn;\r
e = ReadByte();\r
- ph = ReadShort(); // not WriteByte because we show minus health too\r
+ ph = ReadShort(); // not ReadByte because we show minus health too\r
pn = ReadByte();\r
if not(playerslots[e])\r
return;\r
{\r
// apply digestion to prey\r
\r
+ if(self.health <= cvar("g_balance_vore_digestion_limit"))\r
+ return;\r
+\r
if(time > self.digestion_step)\r
{\r
// if distributed digestion is enabled, reduce digestion strength by the amount of prey in our stomach\r
if(!self.stat_eaten)\r
return;\r
\r
- /*if(self.deadflag != DEAD_NO) // we're dead, do what we must\r
+ // automatically regurgitate prey that has reached their digestion limit\r
+ if(cvar("g_balance_vore_digestion_limit_regurgitate"))\r
+ if(self.health <= cvar("g_balance_vore_digestion_limit"))\r
{\r
Vore_Regurgitate(self);\r
return;\r
- }*/\r
+ }\r
\r
if(self.predator.deadflag != DEAD_NO) // do we want to be in a dead furry x_x\r
{\r