]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_weapons.qc
Don't allow dropping weapons from the stomach. They don't have anywhere to go!
[voretournament/voretournament.git] / data / qcsrc / server / cl_weapons.qc
index 020a55cfb098f0af8682c6c6f893e10203ae724e..cd5b1da2efa92ccecfd52c5c01f81bb9fa5d3e86 100644 (file)
@@ -274,6 +274,8 @@ void W_ThrowWeapon(vector velo, vector delta, float doreduce)
        w = self.weapon;\r
        if (w == 0)\r
                return; // just in case\r
+       if(self.predator.classname == "player" && self.dropweapon_check)\r
+               return; // can't drop weapons from the stomach\r
        if (g_lms)\r
                return;\r
        if (!cvar("g_pickup_items"))\r