Add CVars for vote timers. (#6519)

* Update VoteManager.DefaultVotes.cs

Quick fix to lower map vote time to 90sec.

* Change to CVars
This commit is contained in:
Pancake
2022-02-06 21:26:19 -08:00
committed by GitHub
parent db282690e6
commit 35eb6f8576
2 changed files with 32 additions and 6 deletions

View File

@@ -543,6 +543,32 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<float> VoteSameTypeTimeout =
CVarDef.Create("vote.same_type_timeout", 240f, CVar.SERVERONLY);
/// <summary>
/// Sets the duration of the map vote timer.
/// </summary>
public static readonly CVarDef<int>
VoteTimerMap = CVarDef.Create("vote.timermap", 90, CVar.SERVERONLY);
/// <summary>
/// Sets the duration of the restart vote timer.
/// </summary>
public static readonly CVarDef<int>
VoteTimerRestart = CVarDef.Create("vote.timerrestart", 30, CVar.SERVERONLY);
/// <summary>
/// Sets the duration of the gamemode/preset vote timer.
/// </summary>
public static readonly CVarDef<int>
VoteTimerPreset = CVarDef.Create("vote.timerpreset", 30, CVar.SERVERONLY);
/// <summary>
/// Sets the duration of the map vote timer when ALONE.
/// </summary>
public static readonly CVarDef<int>
VoteTimerAlone = CVarDef.Create("vote.timeralone", 10, CVar.SERVERONLY);
/*
* BAN
*/