]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
All weapons must be loaded the first time you get them
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 21 Jan 2011 14:52:43 +0000 (16:52 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 21 Jan 2011 14:52:43 +0000 (16:52 +0200)
qcsrc/server/cl_client.qc

index 94417254b7474fa90668fbb45bf5e7dceb8acd5b..d0b7a0d2334cb095357720e14d2dad2c1542b3fc 100644 (file)
@@ -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;