From: MirceaKitsune Date: Sat, 19 Nov 2011 12:08:49 +0000 (+0200) Subject: Tweak predator definition for swallowing items X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a85b92ffd0d581ffa7ecd4e8c17bd4fb070ee2d8;p=voretournament%2Fvoretournament.git Tweak predator definition for swallowing items --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 2ea388a3..8932a2e1 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -285,11 +285,12 @@ void Item_Consumable_Spawn(entity e, entity pl) item.nextthink = time; // predator effects, some common to those in Vore_Swallow - PlayerSound(e.predator, playersound_swallow, CHAN_VOICE, VOICETYPE_PLAYERSOUND); - setanim(e.predator, e.predator.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing / regurgitating - e.predator.punchangle_x -= cvar("g_balance_vore_swallow_predator_punchangle_item"); - e.predator.regurgitate_prepare = 0; - Vore_AutoDigest(e.predator); + PlayerSound(pl, playersound_swallow, CHAN_VOICE, VOICETYPE_PLAYERSOUND); + setanim(pl, pl.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing / regurgitating + pl.punchangle_x -= cvar("g_balance_vore_swallow_predator_punchangle_item"); + pl.regurgitate_prepare = 0; + pl.action_delay = time + cvar("g_balance_vore_action_delay"); + Vore_AutoDigest(pl); } float Item_GiveTo(entity item, entity player)