From: Джексон Миссиссиппи Date: Thu, 16 May 2024 19:44:20 +0000 (-0500) Subject: Make some CCVars server-change only (#28079) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=893b60dba9f2a704560af576f5bd6185df7ac7e8;p=space-station-14.git Make some CCVars server-change only (#28079) * | CVar.SERVER * Ooh ee ooh aah aah ting tang walla walla bing bang --- diff --git a/Content.Shared/CCVar/CCVars.cs b/Content.Shared/CCVar/CCVars.cs index 67122463ac..1f419fb53f 100644 --- a/Content.Shared/CCVar/CCVars.cs +++ b/Content.Shared/CCVar/CCVars.cs @@ -570,13 +570,13 @@ namespace Content.Shared.CCVar /// 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 @@ namespace Content.Shared.CCVar /// 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 @@ namespace Content.Shared.CCVar 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 @@ namespace Content.Shared.CCVar 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.");