Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
4.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "cbase.h"
  8. #include "dod_cvars.h"
  9. /*
  10. // Gameplay
  11. cvar_t cvar_forcechasecam = {"mp_forcechasecam", "1", FCVAR_SERVER };
  12. cvar_t cvar_forcecamera = {"mp_forcecamera", "1", FCVAR_SERVER };
  13. // Clan cvars
  14. cvar_t cvar_waveTime = {"mp_clan_respawntime", "0", FCVAR_SERVER };
  15. cvar_t cvar_clanRestartRound = {"mp_clan_restartround", "0", FCVAR_SERVER };
  16. cvar_t cvar_clanReadyRestart = {"mp_clan_readyrestart", "0", FCVAR_SERVER };
  17. cvar_t cvar_clanMatchWarmup = {"mp_clan_match_warmup", "0", FCVAR_SERVER };
  18. cvar_t cvar_clanMatch = {"mp_clan_match", "0", FCVAR_SERVER };
  19. cvar_t cvar_clanTimer = {"mp_clan_timer", "20", FCVAR_SERVER };
  20. cvar_t cvar_clanScoring = {"mp_clan_scoring", "0", FCVAR_SERVER };
  21. cvar_t cvar_clanScoringValuesAllies = {"mp_clan_scoring_values_allies", "111111", FCVAR_SERVER };
  22. cvar_t cvar_clanScoringValuesAxis = {"mp_clan_scoring_values_axis", "111111", FCVAR_SERVER };
  23. cvar_t cvar_clanScoringDelay = {"mp_clan_scoring_delay", "60", FCVAR_SERVER };
  24. cvar_t cvar_clanReadyString = {"mp_clan_ready_signal", "ready", FCVAR_SERVER };
  25. cvar_t cvar_clanScoringBonusAllies = {"mp_clan_scoring_bonus_allies", "-1", FCVAR_SERVER };
  26. cvar_t cvar_clanScoringBonusAxis = {"mp_clan_scoring_bonus_axis", "-1", FCVAR_SERVER };
  27. // Other Server Cvars ( Not FCVAR_SERVER! )
  28. //===================
  29. cvar_t cvar_nummapmarkers = {"mp_nummapmarkers", "1" };
  30. cvar_t cvar_markerstaytime = {"mp_markerstaytime", "30"};
  31. cvar_t cvar_teamSpectators = {"mp_allowspectators", "1" };
  32. cvar_t cvar_logScores = {"mp_log_scores", "0" };
  33. cvar_t cvar_logScoresDelay = {"mp_log_scores_delay", "60"};
  34. cvar_t cvar_tkPenalty = {"mp_tkpenalty", "6" };
  35. * now mp_limitteams * cvar_t cvar_teamOver = {"mp_teamlimit", "2" };
  36. cvar_t cvar_deathMsg = {"mp_deathmsg", "1" };
  37. cvar_t cvar_chatMsg = {"mp_chatmsg", "1" };
  38. cvar_t cvar_alliesclasses = {"mp_alliesclasses", "-1"};
  39. cvar_t cvar_axisclasses = {"mp_axisclasses", "-1"};
  40. */
  41. ConVar mp_winlimit( "mp_winlimit", "0", FCVAR_REPLICATED | FCVAR_NOTIFY, "Max score one team can reach before server changes maps", true, 0, false, 0 );
  42. ConVar mp_clan_restartround( "mp_clan_restartround", "0", FCVAR_GAMEDLL, "If non-zero, the round will restart in the specified number of seconds" );
  43. ConVar mp_limitteams(
  44. "mp_limitteams",
  45. "2",
  46. FCVAR_REPLICATED,
  47. "Max # of players 1 team can have over another",
  48. true, 1, // min value
  49. true, 20 // max value
  50. );
  51. ConVar mp_autokick(
  52. "mp_autokick",
  53. "0",
  54. FCVAR_REPLICATED,
  55. "Kick idle/team-killing players" );
  56. ConVar mp_combinemglimits(
  57. "mp_combinemglimits",
  58. "0",
  59. FCVAR_REPLICATED,
  60. "Set to 1 to combine the class limit cvars for mg34 and mg42. New limit is sum of two" );
  61. // Class limit cvars
  62. // welcome to ugly-town
  63. ConVar mp_limitAlliesRifleman( "mp_limit_allies_rifleman", "-1", FCVAR_REPLICATED, "Class limit for team: Allies class: Rifleman" );
  64. ConVar mp_limitAlliesAssault( "mp_limit_allies_assault", "-1", FCVAR_REPLICATED, "Class limit for team: Allies class: Assault" );
  65. ConVar mp_limitAlliesSupport( "mp_limit_allies_support", "-1", FCVAR_REPLICATED, "Class limit for team: Allies class: Support" );
  66. ConVar mp_limitAlliesSniper( "mp_limit_allies_sniper", "-1", FCVAR_REPLICATED, "Class limit for team: Allies class: Sniper" );
  67. ConVar mp_limitAlliesMachinegun( "mp_limit_allies_mg", "-1", FCVAR_REPLICATED, "Class limit for team: Allies class: Machinegunner" );
  68. ConVar mp_limitAlliesRocket( "mp_limit_allies_rocket", "-1", FCVAR_REPLICATED, "Class limit for team: Allies class: Rocket" );
  69. ConVar mp_limitAxisRifleman( "mp_limit_axis_rifleman", "-1", FCVAR_REPLICATED, "Class limit for team: Axis class: Rifleman" );
  70. ConVar mp_limitAxisAssault( "mp_limit_axis_assault", "-1", FCVAR_REPLICATED, "Class limit for team: Axis class: Assault" );
  71. ConVar mp_limitAxisSupport( "mp_limit_axis_support", "-1", FCVAR_REPLICATED, "Class limit for team: Axis class: Support" );
  72. ConVar mp_limitAxisSniper( "mp_limit_axis_sniper", "-1", FCVAR_REPLICATED, "Class limit for team: Axis class: Sniper" );
  73. ConVar mp_limitAxisMachinegun( "mp_limit_axis_mg", "-1", FCVAR_REPLICATED, "Class limit for team: Axis class: Machinegunner" );
  74. ConVar mp_limitAxisRocket( "mp_limit_axis_rocket", "-1", FCVAR_REPLICATED, "Class limit for team: Axis class: Rocket" );