From 893b60dba9f2a704560af576f5bd6185df7ac7e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B6=D0=B5=D0=BA=D1=81=D0=BE=D0=BD=20=D0=9C=D0=B8?= =?UTF-8?q?=D1=81=D1=81=D0=B8=D1=81=D1=81=D0=B8=D0=BF=D0=BF=D0=B8?= Date: Thu, 16 May 2024 14:44:20 -0500 Subject: [PATCH] Make some CCVars server-change only (#28079) * | CVar.SERVER * Ooh ee ooh aah aah ting tang walla walla bing bang --- Content.Shared/CCVar/CCVars.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Content.Shared/CCVar/CCVars.cs b/Content.Shared/CCVar/CCVars.cs index 67122463acfec4..1f419fb53f0b67 100644 --- a/Content.Shared/CCVar/CCVars.cs +++ b/Content.Shared/CCVar/CCVars.cs @@ -570,13 +570,13 @@ public static readonly CVarDef /// When a mob is walking should its X / Y movement be relative to its parent (true) or the map (false). /// public static readonly CVarDef 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 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 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); /// /// Whether mobs can push objects like lockers. @@ -585,7 +585,7 @@ public static readonly CVarDef /// Technically client doesn't need to know about it but this may prevent a bug in the distant future so it stays. /// public static readonly CVarDef MobPushing = - CVarDef.Create("physics.mob_pushing", false, CVar.REPLICATED); + CVarDef.Create("physics.mob_pushing", false, CVar.REPLICATED | CVar.SERVER); /* * Music @@ -1544,10 +1544,10 @@ public static readonly CVarDef CVarDef.Create("viewport.scale_render", true, CVar.CLIENTONLY | CVar.ARCHIVE); public static readonly CVarDef ViewportMinimumWidth = - CVarDef.Create("viewport.minimum_width", 15, CVar.REPLICATED); + CVarDef.Create("viewport.minimum_width", 15, CVar.REPLICATED | CVar.SERVER); public static readonly CVarDef ViewportMaximumWidth = - CVarDef.Create("viewport.maximum_width", 21, CVar.REPLICATED); + CVarDef.Create("viewport.maximum_width", 21, CVar.REPLICATED | CVar.SERVER); public static readonly CVarDef ViewportWidth = CVarDef.Create("viewport.width", 21, CVar.CLIENTONLY | CVar.ARCHIVE); @@ -1652,7 +1652,7 @@ public static readonly CVarDef CVarDef.Create("chat.chat_sanitizer_enabled", true, CVar.SERVERONLY); public static readonly CVarDef 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 ChatEnableFancyBubbles = CVarDef.Create("chat.enable_fancy_bubbles", true, CVar.CLIENTONLY | CVar.ARCHIVE, "Toggles displaying fancy speech bubbles, which display the speaking character's name.");