e.movetype = MOVETYPE_FOLLOW;\r
e.solid = SOLID_NOT;\r
e.aiment = e.predator; // follow the predator, automatically unset when regurgitated\r
+ e.swallow_progress_prey = e.swallow_progress_pred = 0;\r
\r
float scalediff;\r
scalediff = cvar("g_healthsize") ? e.scale / e.predator.scale : 1; // the tighter the gut, the greater the effect\r
e.predator.regurgitate_prepare = 0;\r
e.predator.spawnshieldtime = 0; // lose spawn shield when we vore\r
e.predator.hitsound += 1; // play this for team mates too, as we could be swallowing them to heal them\r
+ e.predator.swallow_progress_prey = e.predator.swallow_progress_pred = 0; // this also resets the progress of any predator eating you if you eat him or someone else, it's better this way\r
Vore_SetPreyPositions(e.predator);\r
\r
// block firing for a small amount of time, or we'll be firing the next frame after we swallow\r
if(cvar("g_balance_vore_swallow_prey_orient"))\r
{\r
e.punchangle = self.angles - e.angles;\r
- e.punchangle_speed = cvar("g_balance_vore_swallow_prey_orient_speed") * (1 - e.swallow_progress_prey);\r
+ e.punchangle_speed = cvar("g_balance_vore_swallow_prey_orient_speed");\r
}\r
\r
Vore_GulletModel_Update(e, self);\r
e.solid = e.vore_oldsolid;\r
e.view_ofs_z = PL_VIEW_OFS_z;\r
e.punchvector_z = -cvar("g_balance_vore_regurgitate_prey_punchvector");\r
+ //e.swallow_progress_prey = e.swallow_progress_pred = 0; // not really needed here\r
\r
// if the prey has been fully digested, silently detach them\r
if(cvar("g_balance_vore_regurgitate_death_silent"))\r
e.predator.punchangle_z = crandom() * cvar("g_balance_vore_regurgitate_predator_punchangle") * scalediff;\r
e.predator.regurgitate_prepare = 0;\r
e.predator.action_delay = time + cvar("g_balance_vore_action_delay");\r
+ e.predator.swallow_progress_prey = e.predator.swallow_progress_pred = 0; // this also resets the progress of any predator eating you if you regurgitate, it's better this way\r
Vore_SetPreyPositions(e.predator);\r
\r
// block firing for a small amount of time, or we'll be firing the next frame\r