e.alpha = -1; // best way of hiding / showing the eaten player\r
e.aiment = e.eater; // follow the predator. Is automatically unset\r
\r
- /*e.cameraeffect_current = e.view_ofs_z * 2;\r
- e.cameraeffect_target = e.view_ofs_z / 2; // best positioning for the stomach model*/\r
-\r
Vore_CameraEffect_Set(e);\r
\r
// drop keys (KH) and flags (CTF) when we get swallowed\r
e.view_ofs_z = e.vore_oldview_ofs_z;\r
e.alpha = default_player_alpha; // best way of hiding / showing the eaten player\r
\r
- //e.view_ofs_z *= 2; // best positioning for the stomach model\r
-\r
// velocities\r
local vector oldforward, oldright, oldup;\r
oldforward = v_forward;\r
// prey disconnects or goes spectating while inside someone's belly:\r
if(self.eater.classname == "player")\r
{\r
- self.view_ofs_z += 25;\r
+ self.view_ofs_z = self.vore_oldview_ofs_z;\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 / attempt to escape, 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\r
if(self.eater.classname != "player")\r
return;\r
\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
float damage;\r
\r
self.stomachkick_delay = time + cvar("g_balance_vore_kick_delay");\r
}\r
-\r
- // start the predator's digestion\r
- if(self.BUTTON_ATCK2)\r
- {\r
- centerprint(self.eater, strcat(self.netname, " has triggered your digestion"));\r
- self.eater.digesting = TRUE;\r
- }\r
}\r
\r
.float gurglesound_finished, gurglesound_oldstomachload;\r
if(teams_matter && self.team == self.eater.team)\r
Vore_Teamheal();\r
\r
- Vore_StomachKick();\r
+ if(self.BUTTON_ATCK)\r
+ Vore_StomachKick();\r
\r
Vore_CameraEffect_Apply();\r
}
\ No newline at end of file