]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unused cvar
authorMario <mario.mario@y7mail.com>
Sun, 27 Jan 2013 12:04:38 +0000 (23:04 +1100)
committerMario <mario.mario@y7mail.com>
Sun, 27 Jan 2013 12:04:38 +0000 (23:04 +1100)
gamemodes.cfg
qcsrc/server/mutators/gamemode_td.qc

index 1d66457552c20813793d80ae283a23b3ce6d5ba3..1219cd0ba459cae6ff5169e3606f5dfff7c3ed93 100644 (file)
@@ -486,7 +486,6 @@ set g_td_start_wave 1
 set g_td_generator_health 700
 set g_td_generator_damaged_points 20 "player loses this many points if the generator was damaged during the wave"
 set g_td_current_monsters 10 "maximum monsters that can be spawned simultaneously"
-set g_td_miniboss_min_monsters 5 "monster count to start spawning minibosses at"
 set g_td_monster_count 10
 set g_td_monster_count_increment 5
 set g_td_buildphase_time 20
index 2b00cbc087327f56f966d014f098b26f766e2b08..f442067d6323b98001a4bed2a908a3f53e586e0d 100644 (file)
@@ -358,7 +358,6 @@ string RandomMonster()
        RandomSelection_Init();
        
        if(n_demons) RandomSelection_Add(world, 0, "demon", 1, 1);
-       if(n_wizards && flyspawns_count > 0) RandomSelection_Add(world, 0, "scrag", 1, 1);
        if(n_shalraths) RandomSelection_Add(world, 0, "vore", 1, 1);
        if(n_soldiers) RandomSelection_Add(world, 0, "soldier", 1, 1);
        if(n_hknights) RandomSelection_Add(world, 0, "hellknight", 1, 1);
@@ -370,6 +369,7 @@ string RandomMonster()
        if(n_knights) RandomSelection_Add(world, 0, "knight", 1, 1);
        if(n_shamblers) RandomSelection_Add(world, 0, "shambler", 0.2, 0.2);
        if(n_tarbabies) RandomSelection_Add(world, 0, "spawn", 0.2, 0.2);
+       if(n_wizards && flyspawns_count > 0) RandomSelection_Add(world, 0, "scrag", 1, 1);
        if(n_fish && waterspawns_count > 0) RandomSelection_Add(world, 0, "fish", 0.2, 0.2);
        
        return RandomSelection_chosen_string;
@@ -394,7 +394,7 @@ void combat_phase()
        monstrngth = Monster_GetStrength(whichmon);
        montype = Monster_GetType(whichmon);
        
-       if(current_monsters < autocvar_g_td_current_monsters && whichmon != "")
+       if(current_monsters <= autocvar_g_td_current_monsters && whichmon != "")
        {
                TD_SpawnMonster(whichmon, monstrngth, montype);
                self.nextthink = time + 3;
@@ -426,7 +426,7 @@ void queue_monsters(float maxmonsters)
        n_tarbabies = DistributeEvenly_Get(0.7);
        n_shamblers = DistributeEvenly_Get(0.3);
        if(flyspawns_count > 0)
-               n_wizards   = DistributeEvenly_Get(1);
+               n_wizards = DistributeEvenly_Get(1);
        if(waterspawns_count > 0)
                n_fish = DistributeEvenly_Get(1);
 }
@@ -609,7 +609,7 @@ void td_ScoreRules()
 {
        ScoreInfo_SetLabel_PlayerScore(SP_TD_SCORE,             "score",         SFL_SORT_PRIO_PRIMARY);
        ScoreInfo_SetLabel_PlayerScore(SP_TD_KILLS,             "kills",         SFL_LOWER_IS_BETTER);
-       ScoreInfo_SetLabel_PlayerScore(SP_TD_TURKILLS,  "frags",        SFL_LOWER_IS_BETTER);
+       ScoreInfo_SetLabel_PlayerScore(SP_TD_TURKILLS,  "frags",         SFL_LOWER_IS_BETTER);
        ScoreInfo_SetLabel_PlayerScore(SP_TD_DEATHS,    "deaths",    SFL_LOWER_IS_BETTER);
        ScoreInfo_SetLabel_PlayerScore(SP_TD_SUICIDES,  "suicides",  SFL_LOWER_IS_BETTER | SFL_ALLOW_HIDE);
        ScoreRules_basics_end();