From: MirceaKitsune Date: Sat, 19 Nov 2011 13:12:06 +0000 (+0200) Subject: Dropped consumables should fade after a while. Also set angles properly X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=802aed27a9c43a72b13bb69feecf5333973f2480;p=voretournament%2Fvoretournament.git Dropped consumables should fade after a while. Also set angles properly --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 80baa83a..5f5b99f9 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -328,10 +328,12 @@ void Item_DroppedConsumable_Spawn(entity e) item.colormod = e.colormod; setorigin(item, e.predator.origin); - item.angles = e.angles; + item.angles = e.predator.angles; 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"); + + SUB_SetFade(item, time + 20, 1); } float Item_GiveTo(entity item, entity player)