]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Tweak predator definition for swallowing items
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 12:08:49 +0000 (14:08 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 12:08:49 +0000 (14:08 +0200)
data/qcsrc/server/t_items.qc

index 2ea388a3c9cae172d03664bdd8bf6503bbb9aa9e..8932a2e13ee170816f07dbf32b98d7b6e7dbb35f 100644 (file)
@@ -285,11 +285,12 @@ void Item_Consumable_Spawn(entity e, entity pl)
        item.nextthink = time;\r
 \r
        // predator effects, some common to those in Vore_Swallow\r
-       PlayerSound(e.predator, playersound_swallow, CHAN_VOICE, VOICETYPE_PLAYERSOUND);\r
-       setanim(e.predator, e.predator.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing / regurgitating\r
-       e.predator.punchangle_x -= cvar("g_balance_vore_swallow_predator_punchangle_item");\r
-       e.predator.regurgitate_prepare = 0;\r
-       Vore_AutoDigest(e.predator);\r
+       PlayerSound(pl, playersound_swallow, CHAN_VOICE, VOICETYPE_PLAYERSOUND);\r
+       setanim(pl, pl.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing / regurgitating\r
+       pl.punchangle_x -= cvar("g_balance_vore_swallow_predator_punchangle_item");\r
+       pl.regurgitate_prepare = 0;\r
+       pl.action_delay = time + cvar("g_balance_vore_action_delay");\r
+       Vore_AutoDigest(pl);\r
 }\r
 \r
 float Item_GiveTo(entity item, entity player)\r