Skip to content

Commit 190af99

Browse files
committed
fix up / clean up some common cvars
1 parent 186614f commit 190af99

8 files changed

Lines changed: 19 additions & 19 deletions

game/tc2/cfg/server_casual.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ mp_tournament 1
88
mp_tournament_readymode 1
99
mp_tournament_readymode_min 0
1010

11+
mp_tournament_post_match_period 10
12+
1113
mp_forceautoteam 1
1214
mp_forcecamera 1
1315
mp_idledealmethod 2

game/tc2/cfg/server_competitive.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ mp_tournament 1
1010
mp_tournament_readymode 1
1111
mp_tournament_readymode_min 0
1212

13+
mp_tournament_post_match_period 10
14+
1315
mp_sixes 1
1416

1517
mp_forceautoteam 1
1618
mp_forcecamera 1
1719
mp_idledealmethod 2
1820
mp_idlemaxtime 5
19-
2021
mp_idledealduringplay 0
2122

2223
tf_ctf_bonus_time 0

game/tc2/cfg/server_matchmaking_base.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mp_forceautoteam 0
88
mp_forcecamera 1
99
mp_idledealmethod 1
1010
mp_idlemaxtime 3
11+
mp_idledealduringplay 1
1112
mp_maxrounds 0
1213
mp_timelimit 0
1314
mp_winlimit 0
@@ -17,6 +18,7 @@ mp_tournament 0
1718
mp_tournament_post_match_period 90
1819
mp_tournament_readymode 0
1920
mp_tournament_readymode_min 2
21+
mp_tournament_readymode_team_size 0
2022
sv_namechange_cooldown_seconds 300
2123

2224
mp_sixes 0
@@ -29,7 +31,7 @@ tf_allow_player_name_change 0
2931

3032
tf_weapon_criticals 1
3133

32-
sv_minrate 3500
34+
sv_minrate 65536
3335
sv_vote_issue_kick_min_connect_time_mvm 180
3436
sv_pure 1
3537

src/game/server/team_control_point_master.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ END_DATADESC()
5555

5656
LINK_ENTITY_TO_CLASS( team_control_point_master, CTeamControlPointMaster );
5757

58-
ConVar mp_time_between_capscoring( "mp_time_between_capscoring", "30", FCVAR_GAMEDLL, "Delay between scoring of owned capture points.", true, 1, false, 0 );
58+
// TODO(mcoms): what is this?
59+
//ConVar mp_time_between_capscoring( "mp_time_between_capscoring", "30", FCVAR_GAMEDLL, "Delay between scoring of owned capture points.", true, 1, false, 0 );
5960

6061
// sort function for the list of control_point_rounds (we're sorting them by priority...highest first)
6162
int ControlPointRoundSort( CTeamControlPointRound* const *p1, CTeamControlPointRound* const *p2 )

src/game/shared/gc_clientsystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool CGCClientSystem::BSendMessage( const GCSDK::CProtoBufMsgBase& msg )
119119
}
120120

121121
#ifdef GAME_DLL
122-
ConVar sv_private_token( "sv_private_token", "0", FCVAR_HIDDEN );
122+
ConVar sv_private_token( "sv_private_token", "0", FCVAR_HIDDEN | FCVAR_PROTECTED | FCVAR_SERVER_CANNOT_QUERY );
123123
#endif
124124

125125
//-----------------------------------------------------------------------------

src/game/shared/multiplay_gamerules.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ CMultiplayRules::CMultiplayRules()
337337
{
338338
sv_maxupdaterate.SetValue( iMaxPacketRate );
339339
}
340+
static ConVarRef tv_snapshotrate( "tv_snapshotrate" );
341+
if ( tv_snapshotrate.GetInt() > iMaxPacketRate )
342+
{
343+
tv_snapshotrate.SetValue( iMaxPacketRate );
344+
}
340345

341346
nextlevel.SetValue( "" );
342347
LoadMapCycleFile();

src/game/shared/teamplayroundbased_gamerules.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ ConVar mp_blockstyle( "mp_blockstyle", "1", FCVAR_REPLICATED | FCVAR_DEVELOPMENT
211211
ConVar mp_respawnwavetime( "mp_respawnwavetime", "10.0", FCVAR_NOTIFY | FCVAR_REPLICATED, "Time between respawn waves." );
212212
ConVar mp_capdeteriorate_time( "mp_capdeteriorate_time", "90.0", FCVAR_REPLICATED | FCVAR_DEVELOPMENTONLY, "Time it takes for a full capture point to deteriorate." );
213213
ConVar mp_tournament( "mp_tournament", "0", FCVAR_REPLICATED | FCVAR_NOTIFY );
214-
ConVar mp_tournament_post_match_period( "mp_tournament_post_match_period", "10", FCVAR_REPLICATED, "The amount of time (in seconds) before the server resets post-match.", true, 5, true, 300 );
214+
ConVar mp_tournament_post_match_period( "mp_tournament_post_match_period", "90", FCVAR_REPLICATED, "The amount of time (in seconds) before the server resets post-match.", true, 5, true, 300 );
215215

216216
ConVar mp_tournament_required_for_pause( "mp_tournament_required_for_pause", "1", FCVAR_REPLICATED );
217217

@@ -2089,17 +2089,6 @@ void CTeamplayRoundBasedRules::State_Think_TEAM_WIN( void )
20892089
g_fGameOver = true;
20902090
State_Enter( GR_STATE_GAME_OVER );
20912091
float flPostMatchPeriod = GetPostMatchPeriod();
2092-
if ( TFGameRules()->IsEmulatingMatch() )
2093-
{
2094-
if ( TFGameRules()->IsEmulatingMatch() == 1 )
2095-
{
2096-
flPostMatchPeriod = 10.0f;
2097-
}
2098-
else if ( TFGameRules()->IsEmulatingMatch() == 2 )
2099-
{
2100-
flPostMatchPeriod = 10.0f;
2101-
}
2102-
}
21032092

21042093
bool bWillLeaveMap = false;
21052094
const IMatchGroupDescription* pMatchDesc = GetMatchGroupDescription( TFGameRules()->GetCurrentMatchGroup() );

src/game/shared/tf/tf_gamerules.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,7 +3299,7 @@ bool CTFGameRules::PlayerReadyStatus_ArePlayersOnTeamReady( int iTeam )
32993299
}
33003300

33013301
// Team isn't ready if there was nobody on it.
3302-
return iPlayerReadyCount > 0;
3302+
return iPlayerReadyCount > mp_tournament_readymode_team_size.GetInt();
33033303
}
33043304

33053305
//-----------------------------------------------------------------------------
@@ -19243,9 +19243,9 @@ int CTFGameRules::GetBonusRoundTime( bool bGameOver /* = false*/ )
1924319243
{
1924419244
return 5;
1924519245
}
19246-
if ( IsCompetitiveGame() && bGameOver )
19246+
if ( IsCompetitiveGame() )
1924719247
{
19248-
return 5;
19248+
return bGameOver ? 5 : 10;
1924919249
}
1925019250

1925119251
return BaseClass::GetBonusRoundTime( bGameOver );

0 commit comments

Comments
 (0)