From: Mircea Kitsune Date: Fri, 21 Jan 2011 14:52:43 +0000 (+0200) Subject: All weapons must be loaded the first time you get them X-Git-Tag: xonotic-v0.5.0~309^2~7^2~161 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9fa5bedc147967122cffe2c9c452033ab8358fc0;p=xonotic%2Fxonotic-data.pk3dir.git All weapons must be loaded the first time you get them --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 94417254b..d0b7a0d23 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -889,6 +889,10 @@ void PutClientInServer (void) self.nex_charge = autocvar_g_balance_nex_charge_start; } + // all weapons must be fully loaded the first time we pick them up, so set their load to maximum at respawn + self.shotgun_load = autocvar_g_balance_shotgun_reload_ammo; + self.sniperrifle_load = autocvar_g_balance_sniperrifle_reload_ammo; + if(inWarmupStage) { self.ammo_shells = warmup_start_ammo_shells;