From: MirceaKitsune Date: Tue, 2 Aug 2011 20:51:15 +0000 (+0300) Subject: If the prey has been fully digested, silently detach them X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=254ae82975010df10cac9fe7f43424b51820810d;p=voretournament%2Fvoretournament.git If the prey has been fully digested, silently detach them --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index a32ec8e1..cd795cec 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -360,6 +360,14 @@ void Vore_Regurgitate(entity e) e.solid = e.vore_oldsolid; e.view_ofs_z = PL_VIEW_OFS_z; + // if the prey has been fully digested, silently detach them + if(e.deadflag != DEAD_NO && e.health <= cvar("g_balance_vore_digestion_limit")) + { + e.predator = world; + e.modelindex = 0; // hide the dead body + return; + } + // apply velocities local vector oldforward, oldright, oldup; oldforward = v_forward;