Dropped weapons now have loot flag set.
authorLyberta <lyberta@lyberta.net>
Sun, 8 Oct 2017 14:36:12 +0000 (17:36 +0300)
committerLyberta <lyberta@lyberta.net>
Sun, 8 Oct 2017 14:36:12 +0000 (17:36 +0300)
qcsrc/server/weapons/throwing.qc

index 52bf4a6..09241bc 100644 (file)
@@ -41,7 +41,7 @@ string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vecto
        int ammotype = info.ammo_type;
 
        entity wep = new(droppedweapon);
-
+       Item_SetLoot(wep, true);
        setorigin(wep, org);
        wep.velocity = velo;
        wep.owner = wep.enemy = own;