]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use a hack to remove dropped items on pickup
authorMario <mario.mario@y7mail.com>
Wed, 4 Sep 2013 17:21:48 +0000 (03:21 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 4 Sep 2013 17:21:48 +0000 (03:21 +1000)
qcsrc/common/monsters/sv_monsters.qc

index 6638dc3a8e9ef3157dacda2d8509c87139c97da1..ec40944d528b34c9080aca63b05ac3591cea7fe1 100644 (file)
@@ -3,16 +3,6 @@
 // =========================
 
 
-void M_Item_Touch ()
-{
-       if(self && IS_PLAYER(other) && other.deadflag == DEAD_NO)
-       {
-               Item_Touch();
-               self.think = SUB_Remove;
-               self.nextthink = time + 0.1;
-       }
-}
-
 void monster_item_spawn()
 {
        if(self.monster_loot)
@@ -20,7 +10,7 @@ void monster_item_spawn()
 
        self.gravity = 1;
        self.velocity = randomvec() * 175 + '0 0 325';
-       self.touch = M_Item_Touch;
+       self.classname = "droppedweapon"; // hax
 
        SUB_SetFade(self, time + autocvar_g_monsters_drop_time, 1);
 }