]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move some more cvars and kill a keyhunt specific call
authorMario <mario@smbclan.net>
Wed, 14 Oct 2015 15:01:25 +0000 (01:01 +1000)
committerMario <mario@smbclan.net>
Wed, 14 Oct 2015 15:01:25 +0000 (01:01 +1000)
qcsrc/common/gamemodes/gamemode/nexball/nexball.qc
qcsrc/server/autocvars.qh
qcsrc/server/command/vote.qc
qcsrc/server/mutators/gamemode_keyhunt.qc

index 959ec857defb34699dde8b58e9246c1b03e1acb3..7520fcdbb48c4f72d00b2e6a9a857a2c8e18052f 100644 (file)
@@ -27,6 +27,15 @@ float autocvar_g_nexball_viewmodel_scale;
 float autocvar_g_nexball_tackling;
 vector autocvar_g_nexball_viewmodel_offset;
 
+float autocvar_g_balance_nexball_primary_animtime;
+float autocvar_g_balance_nexball_primary_refire;
+float autocvar_g_balance_nexball_primary_speed;
+float autocvar_g_balance_nexball_secondary_animtime;
+float autocvar_g_balance_nexball_secondary_force;
+float autocvar_g_balance_nexball_secondary_lifetime;
+float autocvar_g_balance_nexball_secondary_refire;
+float autocvar_g_balance_nexball_secondary_speed;
+
 void basketball_touch();
 void football_touch();
 void ResetBall();
index 2904d5c22f643afd3b080d5978f7888cafe2e562..912bd49ded78ab410ee181349999499b6b6d7118 100644 (file)
@@ -120,31 +120,8 @@ float autocvar_g_balance_health_regenstable;
 float autocvar_g_balance_health_rot;
 float autocvar_g_balance_health_rotlinear;
 float autocvar_g_balance_health_rotstable;
-float autocvar_g_balance_keyhunt_damageforcescale;
-float autocvar_g_balance_keyhunt_delay_collect;
-float autocvar_g_balance_keyhunt_delay_return;
-float autocvar_g_balance_keyhunt_delay_round;
-float autocvar_g_balance_keyhunt_delay_tracking;
-float autocvar_g_balance_keyhunt_dropvelocity;
-float autocvar_g_balance_keyhunt_maxdist;
-float autocvar_g_balance_keyhunt_protecttime;
-int autocvar_g_balance_keyhunt_score_capture;
-int autocvar_g_balance_keyhunt_score_carrierfrag;
-int autocvar_g_balance_keyhunt_score_collect;
-int autocvar_g_balance_keyhunt_score_destroyed;
-int autocvar_g_balance_keyhunt_score_destroyed_ownfactor;
-int autocvar_g_balance_keyhunt_score_push;
-float autocvar_g_balance_keyhunt_throwvelocity;
 float autocvar_g_balance_kill_delay;
 float autocvar_g_balance_kill_antispam;
-float autocvar_g_balance_nexball_primary_animtime;
-float autocvar_g_balance_nexball_primary_refire;
-float autocvar_g_balance_nexball_primary_speed;
-float autocvar_g_balance_nexball_secondary_animtime;
-float autocvar_g_balance_nexball_secondary_force;
-float autocvar_g_balance_nexball_secondary_lifetime;
-float autocvar_g_balance_nexball_secondary_refire;
-float autocvar_g_balance_nexball_secondary_speed;
 int autocvar_g_balance_nix_ammo_cells;
 int autocvar_g_balance_nix_ammo_plasma;
 int autocvar_g_balance_nix_ammo_fuel;
index 60faeb3c254c709009966df0ebe13a3b8c725860..5da2feb2f14d85a73520590a586e21ef11b5f307 100644 (file)
@@ -422,9 +422,6 @@ void reset_map(float dorespawn)
                }
        }
 
-       if(g_keyhunt)
-               kh_Controller_SetThink(autocvar_g_balance_keyhunt_delay_round + (game_starttime - time), kh_StartRound);
-
        setself(this);
 }
 
index 4893bf13e599ce5ca1a123c88cc55e9f3e6cdc9b..9b33d5d7524ea464a894ed1e1414acbe0e2dd4b0 100644 (file)
@@ -2,6 +2,23 @@
 
 #include "gamemode.qh"
 
+float autocvar_g_balance_keyhunt_damageforcescale;
+float autocvar_g_balance_keyhunt_delay_collect;
+float autocvar_g_balance_keyhunt_delay_return;
+float autocvar_g_balance_keyhunt_delay_round;
+float autocvar_g_balance_keyhunt_delay_tracking;
+float autocvar_g_balance_keyhunt_dropvelocity;
+float autocvar_g_balance_keyhunt_maxdist;
+float autocvar_g_balance_keyhunt_protecttime;
+
+int autocvar_g_balance_keyhunt_score_capture;
+int autocvar_g_balance_keyhunt_score_carrierfrag;
+int autocvar_g_balance_keyhunt_score_collect;
+int autocvar_g_balance_keyhunt_score_destroyed;
+int autocvar_g_balance_keyhunt_score_destroyed_ownfactor;
+int autocvar_g_balance_keyhunt_score_push;
+float autocvar_g_balance_keyhunt_throwvelocity;
+
 int autocvar_g_keyhunt_point_leadlimit;
 bool autocvar_g_keyhunt_team_spawns;
 #define autocvar_g_keyhunt_point_limit cvar("g_keyhunt_point_limit")
@@ -1326,6 +1343,12 @@ MUTATOR_HOOKFUNCTION(kh, DropSpecialItems)
        return false;
 }
 
+MUTATOR_HOOKFUNCTION(kh, reset_map_global)
+{
+       kh_Controller_SetThink(autocvar_g_balance_keyhunt_delay_round + (game_starttime - time), kh_StartRound);
+       return false;
+}
+
 REGISTER_MUTATOR(kh, g_keyhunt)
 {
        ActivateTeamplay();