From: MirceaKitsune Date: Thu, 15 Mar 2012 10:37:36 +0000 (+0200) Subject: Apply my previous commit to items as well X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0e8a87f5cbece93ef65f21c42545ad7c614ae77;p=voretournament%2Fvoretournament.git Apply my previous commit to items as well --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 402a25c1..fa7b6f41 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -387,11 +387,13 @@ void Item_DroppedConsumable_Spawn(entity e) item.scale = e.scale; item.colormod = e.colormod; + float scalediff; + scalediff = cvar("g_healthsize") ? e.scale / e.predator.scale : 1; // the tighter the gut, the greater the velocity setorigin(item, e.predator.origin); item.angles_y = e.predator.angles_y; makevectors(e.predator.v_angle); - item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force"); - e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce"); + item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force") * scalediff; + e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce") * scalediff; item.touch = Item_DroppedConsumable_Touch; item.cnt = time + 1; // 1 second delay