.float regurgitate_prepare;\r
-.float swallow_delay, digest_button_delay, regurgitate_button_delay;\r
+.float system_delay, swallow_delay, digest_button_delay, regurgitate_button_delay;\r
.float complain_swallow;\r
const float complain_delay = 1;\r
const float button_delay = 0.5;\r
const float steptime = 0.1;\r
+const float system_delay_time = 0.1;\r
\r
.float vore_oldmovetype, vore_oldsolid, vore_oldstomachload;\r
\r
e.alpha = -1; // best way of hiding / showing the eaten player\r
e.aiment = e.eater; // follow the predator. Is automatically unset\r
e.view_ofs_z /= 2; // best positioning for the stomach model\r
- e.stat_eaten = TRUE;\r
\r
// drop keys (KH) and flags (CTF) when we get swallowed\r
kh_Key_DropAll(e, FALSE);\r
e.eater.stomach_load += 1;\r
e.eater.regurgitate_prepare = 0;\r
Vore_Weight_apply(e.eater);\r
+\r
+ e.system_delay = e.eater.system_delay = time + system_delay_time;\r
}\r
\r
void Vore_Regurgitate(entity e)\r
e.movetype = e.vore_oldmovetype;\r
if(e.health > 0) // leave SOLID_NOT for dead bodies\r
e.solid = e.vore_oldsolid;\r
- e.alpha = 0; // best way of hiding / showing the eaten player\r
+ e.alpha = default_player_alpha; // best way of hiding / showing the eaten player\r
e.view_ofs_z *= 2; // best positioning for the stomach model\r
- e.stat_eaten = FALSE;\r
\r
// velocities\r
local vector oldforward, oldright, oldup;\r
e.eater.regurgitate_prepare = 0;\r
e.eater.swallow_delay = time + cvar("g_balance_vore_swallow_delay");\r
Vore_Weight_apply(e.eater);\r
+\r
+ e.system_delay = e.eater.system_delay = time + system_delay_time;\r
e.eater = world;\r
}\r
\r
if(self.eater.classname == "player")\r
{\r
self.view_ofs_z += 25;\r
- self.stat_eaten = FALSE;\r
self.eater.stomach_load -= 1;\r
Vore_Weight_apply(self.eater);\r
self.eater = world;\r
.float stomachkick_delay;\r
void Vore_StomachKick()\r
{\r
- // allows prey to kick the predator's stomach and do some damage, or bring the predator's digestion upon their self when there's no other option\r
+ // allows prey to kick the predator's stomach and do some damage / attempt to escape, or bring the predator's digestion upon their self when there's no other option\r
if(self.eater.classname != "player")\r
return;\r
\r
- // kick the predator's stomach and do damage\r
+ // kick the predator's stomach and do damage, or escape if we are lucky\r
if(self.BUTTON_ATCK)\r
if(time > self.stomachkick_delay)\r
{\r
// start the predator's digestion\r
if(self.BUTTON_ATCK2)\r
{\r
- centerprint(self.eater, strcat(self.netname, " triggered your digestion"));\r
+ centerprint(self.eater, strcat(self.netname, " has triggered your digestion"));\r
self.eater.digesting = TRUE;\r
}\r
}\r
\r
void Vore()\r
{\r
+ // if we are free, show our stomach load on the HUD. Otherwise, show the predator's\r
+ string x;\r
+ if(self.eater != self && self.eater.classname == "player")\r
+ {\r
+ self.stat_stomachload = self.eater.stomach_load;\r
+ self.stat_eaten = num_for_edict(self.eater);\r
+ x = playername(self.eater);\r
+ //bprint(strcat(ftos(self.stat_eaten), "<<--------------------------\n"));\r
+ }\r
+ else\r
+ {\r
+ self.stat_stomachload = self.stomach_load;\r
+ self.stat_eaten = 0;\r
+ x = "NONE!";\r
+ }\r
+ //bprint(strcat(ftos(self.stat_eaten), "<<--------------------------\n"));\r
+ //bprint(strcat(playername(self), "<<--------------------------\n"));\r
+\r
// skip the vore system under some circumstances\r
if(time < game_starttime)\r
{\r
}\r
if(self.spectatee_status)\r
return;\r
+ if(time < self.system_delay)\r
+ return;\r
\r
// --------------------------------\r
// Code that addresses predators:\r