]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add warmup support to melee only arena
authorMario <mario.mario@y7mail.com>
Thu, 6 Jun 2013 18:04:43 +0000 (04:04 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 6 Jun 2013 18:04:43 +0000 (04:04 +1000)
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator_melee_only.qc

index 5a5a91136592b302ecd8ba6431a62814ff32692a..ea7360835e38f8b8d7ff5cee835440cfd6a93715 100644 (file)
@@ -969,7 +969,7 @@ void readlevelcvars(void)
        g_warmup_allguns = cvar("g_warmup_allguns");
        g_warmup_allow_timeout = cvar("g_warmup_allow_timeout");
 
-       if ((g_race && g_race_qualifying == 2) || g_arena || g_assault || cvar("g_campaign") || cvar("g_melee_only"))
+       if ((g_race && g_race_qualifying == 2) || g_arena || g_assault || cvar("g_campaign"))
                inWarmupStage = 0; // these modes cannot work together, sorry
 
        g_pickup_respawntime_weapon = cvar("g_pickup_respawntime_weapon");
index 85354bf4daf078f207b55bde4c3a458637a48c3a..639bba507ce522f6e1eeebe4e33901da998e27dd 100644 (file)
@@ -1,8 +1,10 @@
 MUTATOR_HOOKFUNCTION(melee_SetStartItems)
 {
        start_ammo_shells = 0;
+       warmup_start_ammo_shells = 0;
        
        WEPSET_COPY_AW(start_weapons, WEP_SHOTGUN);
+       WEPSET_COPY_AW(warmup_start_weapons, WEP_SHOTGUN);
                
        return FALSE;
 }