Extended rework & ramping event scheduler (#11362)

This commit is contained in:
Kara
2022-10-18 19:51:47 -07:00
committed by GitHub
parent 095a4a7136
commit 3fd226d9f0
19 changed files with 403 additions and 212 deletions

View File

@@ -96,9 +96,8 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<string> StatusMoMMIPassword =
CVarDef.Create("status.mommipassword", "", CVar.SERVERONLY | CVar.CONFIDENTIAL);
/*
* Game
* Events
*/
/// <summary>
@@ -107,6 +106,24 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<bool>
EventsEnabled = CVarDef.Create("events.enabled", true, CVar.ARCHIVE | CVar.SERVERONLY);
/// <summary>
/// Average time (in minutes) for when the ramping event scheduler should stop increasing the chaos modifier.
/// Close to how long you expect a round to last, so you'll probably have to tweak this on downstreams.
/// </summary>
public static readonly CVarDef<float>
EventsRampingAverageEndTime = CVarDef.Create("events.ramping_average_end_time", 40f, CVar.ARCHIVE | CVar.SERVERONLY);
/// <summary>
/// Average ending chaos modifier for the ramping event scheduler.
/// Max chaos chosen for a round will deviate from this
/// </summary>
public static readonly CVarDef<float>
EventsRampingAverageChaos = CVarDef.Create("events.ramping_average_chaos", 6f, CVar.ARCHIVE | CVar.SERVERONLY);
/*
* Game
*/
/// <summary>
/// Disables most functionality in the GameTicker.
/// </summary>