]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_physical_items.qc
Merge branch 'master' into TimePath/global_self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_physical_items.qc
index 0ee697d261f2d4425cdd4eb37b68a634cc7da734..d02158ffc1496a22305c9ab02e79e0eeae1819b3 100644 (file)
@@ -5,7 +5,7 @@
 .vector spawn_origin, spawn_angles;
 
 void physical_item_think()
-{
+{SELFPARAM();
        self.nextthink = time;
 
        self.alpha = self.owner.alpha; // apply fading and ghosting
@@ -42,7 +42,7 @@ void physical_item_think()
 }
 
 void physical_item_touch()
-{
+{SELFPARAM();
        if(!self.cnt) // not for dropped items
        if (ITEM_TOUCH_NEEDKILL())
        {
@@ -52,7 +52,7 @@ void physical_item_touch()
 }
 
 void physical_item_damage(entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force)
-{
+{SELFPARAM();
        if(!self.cnt) // not for dropped items
        if(ITEM_DAMAGE_NEEDKILL(deathtype))
        {
@@ -62,7 +62,7 @@ void physical_item_damage(entity inflictor, entity attacker, float damage, int d
 }
 
 MUTATOR_HOOKFUNCTION(item_spawning)
-{
+{SELFPARAM();
        if(self.owner == world && autocvar_g_physical_items <= 1)
                return false;
        if (self.spawnflags & 1) // floating item