]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 52bf4a60788509039e72818a421099eb0c9aa907..09241bc24c851905de7aaedd0422ad5f73561328 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;