Skip to content

Commit

Permalink
cvars
Browse files Browse the repository at this point in the history
  • Loading branch information
nomad0260 committed Jan 16, 2025
1 parent f6bda9d commit c94c756
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Shared/CCVar/CCVars.Vote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public sealed partial class CCVars
/// See vote.enabled, but specific to map votes
/// </summary>
public static readonly CVarDef<bool> VoteMapEnabled =
CVarDef.Create("vote.map_enabled", true, CVar.SERVERONLY);
CVarDef.Create("vote.map_enabled", false, CVar.SERVERONLY);

/// <summary>
/// The required ratio of the server that must agree for a restart round vote to go through.
/// </summary>
public static readonly CVarDef<float> VoteRestartRequiredRatio =
CVarDef.Create("vote.restart_required_ratio", 0.60f, CVar.SERVERONLY);
CVarDef.Create("vote.restart_required_ratio", 0.85f, CVar.SERVERONLY);

/// <summary>
/// Whether or not to prevent the restart vote from having any effect when there is an online admin
Expand All @@ -62,7 +62,7 @@ public sealed partial class CCVars
/// Sets the duration of the map vote timer.
/// </summary>
public static readonly CVarDef<int>
VoteTimerMap = CVarDef.Create("vote.timermap", 60, CVar.SERVERONLY);
VoteTimerMap = CVarDef.Create("vote.timermap", 90, CVar.SERVERONLY);

/// <summary>
/// Sets the duration of the restart vote timer.
Expand Down
5 changes: 5 additions & 0 deletions Resources/ConfigPresets/Backmen/main.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,8 @@ enabled=true

[laying]
crawlundertables=true

[vote]
map_enabled = true
restart_required_ratio = 0.6
timermap = 60

0 comments on commit c94c756

Please sign in to comment.