]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
Commonize even more code, now that its possible
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_client.qc
index 229e1729c7115d296bdd10d951fcaa3528b25197..fed5100c0a1105a8b1cc26e1012cf600d9b60415 100644 (file)
@@ -1050,8 +1050,15 @@ void PutClientInServer (void)
 
                // reset fields the weapons may use
                for (j = WEP_FIRST; j <= WEP_LAST; ++j)
+               {
                        weapon_action(j, WR_RESETPLAYER);
 
+                       // all weapons must be fully loaded when we spawn
+                       entity e;
+                       e = get_weaponinfo(j);
+                       self.weapon_load[j] = cvar(strcat("g_balance_", e.netname, "_reload_ammo"));
+               }
+
                oldself = self;
                self = spot;
                        activator = oldself;