Skip to content

Commit

Permalink
Make some CCVars server-change only (space-wizards#28079)
Browse files Browse the repository at this point in the history
* | CVar.SERVER

* Ooh ee ooh aah aah ting tang walla walla bing bang
  • Loading branch information
notquitehadouken committed May 16, 2024
1 parent b35dc42 commit 893b60d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ public static readonly CVarDef<bool>
/// When a mob is walking should its X / Y movement be relative to its parent (true) or the map (false).
/// </summary>
public static readonly CVarDef<bool> RelativeMovement =
CVarDef.Create("physics.relative_movement", true, CVar.ARCHIVE | CVar.REPLICATED);
CVarDef.Create("physics.relative_movement", true, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);

public static readonly CVarDef<float> TileFrictionModifier =
CVarDef.Create("physics.tile_friction", 40.0f, CVar.ARCHIVE | CVar.REPLICATED);
CVarDef.Create("physics.tile_friction", 40.0f, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);

public static readonly CVarDef<float> StopSpeed =
CVarDef.Create("physics.stop_speed", 0.1f, CVar.ARCHIVE | CVar.REPLICATED);
CVarDef.Create("physics.stop_speed", 0.1f, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);

/// <summary>
/// Whether mobs can push objects like lockers.
Expand All @@ -585,7 +585,7 @@ public static readonly CVarDef<bool>
/// Technically client doesn't need to know about it but this may prevent a bug in the distant future so it stays.
/// </remarks>
public static readonly CVarDef<bool> MobPushing =
CVarDef.Create("physics.mob_pushing", false, CVar.REPLICATED);
CVarDef.Create("physics.mob_pushing", false, CVar.REPLICATED | CVar.SERVER);

/*
* Music
Expand Down Expand Up @@ -1544,10 +1544,10 @@ public static readonly CVarDef<int>
CVarDef.Create("viewport.scale_render", true, CVar.CLIENTONLY | CVar.ARCHIVE);

public static readonly CVarDef<int> ViewportMinimumWidth =
CVarDef.Create("viewport.minimum_width", 15, CVar.REPLICATED);
CVarDef.Create("viewport.minimum_width", 15, CVar.REPLICATED | CVar.SERVER);

public static readonly CVarDef<int> ViewportMaximumWidth =
CVarDef.Create("viewport.maximum_width", 21, CVar.REPLICATED);
CVarDef.Create("viewport.maximum_width", 21, CVar.REPLICATED | CVar.SERVER);

public static readonly CVarDef<int> ViewportWidth =
CVarDef.Create("viewport.width", 21, CVar.CLIENTONLY | CVar.ARCHIVE);
Expand Down Expand Up @@ -1652,7 +1652,7 @@ public static readonly CVarDef<int>
CVarDef.Create("chat.chat_sanitizer_enabled", true, CVar.SERVERONLY);

public static readonly CVarDef<bool> ChatShowTypingIndicator =
CVarDef.Create("chat.show_typing_indicator", true, CVar.CLIENTONLY);
CVarDef.Create("chat.show_typing_indicator", true, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);

public static readonly CVarDef<bool> ChatEnableFancyBubbles =
CVarDef.Create("chat.enable_fancy_bubbles", true, CVar.CLIENTONLY | CVar.ARCHIVE, "Toggles displaying fancy speech bubbles, which display the speaking character's name.");
Expand Down

0 comments on commit 893b60d

Please sign in to comment.