By default, don't give the grabber at spawn time in RPG (since in this gametype you...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 16:43:49 +0000 (19:43 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 16:43:49 +0000 (19:43 +0300)
data/qcsrc/server/miscfunctions.qc

index 234a04fdc163092fbbc2888a2057c44823ed9350..84abf8641e2f4864ad862e42a7e7bfe07a08de5b 100644 (file)
@@ -853,7 +853,12 @@ float want_weapon(string cvarprefix, entity weaponinfo, float allguns)
        var float t = cvar(strcat(cvarprefix, weaponinfo.netname));\r
 \r
        if (t < 0) // "default" weapon selection\r
-               t = (i == WEP_GRABBER);\r
+       {\r
+               if(g_rpg) // no start weapons in RPG by default\r
+                       t = 0;\r
+               else\r
+                       t = (i == WEP_GRABBER);\r
+       }\r
 \r
        return t;\r
 }\r