]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Dropped consumables should fade after a while. Also set angles properly
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 13:12:06 +0000 (15:12 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 13:12:06 +0000 (15:12 +0200)
data/qcsrc/server/t_items.qc

index 80baa83a91489c77d4ad8b77328957597bda2d0e..5f5b99f96046320b43c1cc3cca17e75e9c7af590 100644 (file)
@@ -328,10 +328,12 @@ void Item_DroppedConsumable_Spawn(entity e)
        item.colormod = e.colormod;\r
 \r
        setorigin(item, e.predator.origin);\r
-       item.angles = e.angles;\r
+       item.angles = e.predator.angles;\r
        makevectors(e.predator.v_angle);\r
        item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force");\r
        e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce");\r
+\r
+       SUB_SetFade(item, time + 20, 1);\r
 }\r
 \r
 float Item_GiveTo(entity item, entity player)\r