]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Floating items must not be physical
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 15:35:02 +0000 (18:35 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 15:35:02 +0000 (18:35 +0300)
qcsrc/server/mutators/mutator_physical_weapons.qc

index 37c9c7c8dd52f6bff220cfec93fa990eb6d5e427..489379b6ff1dac33a9759c36f5ebbd762cea6994 100644 (file)
@@ -39,6 +39,8 @@ MUTATOR_HOOKFUNCTION(item_spawning)
 {
        if(self.classname != "droppedweapon" && autocvar_g_ode_items <= 1)
                return FALSE;
+       if (self.spawnflags & 1) // floating item
+               return FALSE;
 
        // The actual item can't be physical and trigger at the same time, so make it invisible and use a second entity for physics.
        // Ugly hack, but unless SOLID_TRIGGER is gotten to work with MOVETYPE_PHYSICS in the engine it can't be fixed.