]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add feature to warmup_allguns which only provides weapons in the map
authorSamual Lenks <samual@xonotic.org>
Thu, 17 Oct 2013 20:25:14 +0000 (16:25 -0400)
committerSamual Lenks <samual@xonotic.org>
Thu, 17 Oct 2013 20:25:14 +0000 (16:25 -0400)
defaultXonotic.cfg
qcsrc/server/cl_client.qc

index d967d53d555dee2e8dd5f98b46f4c98f8ff1d9d1..2e0586672683370ca1362e0a17b230d37be39b80 100644 (file)
@@ -237,7 +237,7 @@ set g_maxplayers_spectator_blocktime 5      "if the players voted for the \"nospectat
 set g_warmup 0 "split the game into a warmup- and match-stage when set to 1"
 set g_warmup_limit 0   "if set to -1 the warmup-stage is not affected by any timelimit, if set to 0 the usual timelimit also affects warmup-stage, otherwise warmup will be limited to this time in SECONDS (useful for public matches)"
 set g_warmup_allow_timeout 0   "if set to 1 timeouts can also be called in the warmup-stage, when sv_timeout is set to 1"
-set g_warmup_allguns 1 "if set players start with all guns in warmup mode"
+set g_warmup_allguns 1 "provide more weapons on start while in warmup: 0 = normal start weapons, 1 = all guns available on the map, 2 = all normal weapons"
 set g_warmup_majority_factor 0.8 "minimum percentage of players ready needed for warmup to end"
 
 set g_chat_nospectators 0      "if 0 spec/observer chat is always visible to the player, if 1 it is never visible to players, if 2 it is only visible to players during warmup stage"
index fac4314ca6e7b53c577b1182228f3ca612bc614e..d53fe2082309958f83602af3d5556a42285367ee 100644 (file)
@@ -439,7 +439,11 @@ void PutClientInServer (void)
                        self.ammo_fuel = warmup_start_ammo_fuel;
                        self.health = warmup_start_health;
                        self.armorvalue = warmup_start_armorvalue;
-                       self.weapons = warmup_start_weapons;
+                       
+                       if(g_warmup_allguns == 2)
+                               self.weapons = warmup_start_weapons;
+                       else if(g_warmup_allguns == 1)
+                               self.weapons = (warmup_start_weapons & (weaponsInMap | start_weapons));
                }
                else
                {