From: Mircea Kitsune Date: Wed, 4 Apr 2012 15:35:02 +0000 (+0300) Subject: Floating items must not be physical X-Git-Tag: xonotic-v0.7.0~111^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ccab7d2856c450754e7c245208bf954c779ded8;p=xonotic%2Fxonotic-data.pk3dir.git Floating items must not be physical --- diff --git a/qcsrc/server/mutators/mutator_physical_weapons.qc b/qcsrc/server/mutators/mutator_physical_weapons.qc index 37c9c7c8dd..489379b6ff 100644 --- a/qcsrc/server/mutators/mutator_physical_weapons.qc +++ b/qcsrc/server/mutators/mutator_physical_weapons.qc @@ -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.