From ab1b452393686354f3be8c172b89128b7a14d09e Mon Sep 17 00:00:00 2001 From: legokidlogan <26103433+legokidlogan@users.noreply.github.com> Date: Thu, 29 Aug 2024 20:23:52 -0600 Subject: [PATCH] Fix non-replicated convars --- lua/cfc_parachutes/server/sv_parachute_convars.lua | 6 ------ lua/cfc_parachutes/shared/sh_parachute_convars.lua | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lua/cfc_parachutes/server/sv_parachute_convars.lua b/lua/cfc_parachutes/server/sv_parachute_convars.lua index ed2458e..c50b989 100644 --- a/lua/cfc_parachutes/server/sv_parachute_convars.lua +++ b/lua/cfc_parachutes/server/sv_parachute_convars.lua @@ -1,9 +1,3 @@ -CreateConVar( "cfc_parachute_fall_speed", 200, { FCVAR_ARCHIVE }, "Target fall speed while in a parachute.", 0, 50000 ) -CreateConVar( "cfc_parachute_fall_lerp", 2, { FCVAR_ARCHIVE }, "How quickly a parachute will reach its target fall speed. Higher values are faster.", 0, 100 ) -CreateConVar( "cfc_parachute_horizontal_speed", 80, { FCVAR_ARCHIVE }, "How quickly you move in a parachute.", 0, 50000 ) -CreateConVar( "cfc_parachute_horizontal_speed_limit", 700, { FCVAR_ARCHIVE }, "Max horizontal speed of a parachute.", 0, 50000 ) -CreateConVar( "cfc_parachute_sprint_boost", 1.25, { FCVAR_ARCHIVE }, "How much of a horizontal boost you get in a parachute while sprinting.", 1, 10 ) -CreateConVar( "cfc_parachute_handling", 4, { FCVAR_ARCHIVE }, "Improves parachute handling by making it easier to brake or chagne directions. 1 gives no handling boost, 0-1 reduces handling.", 0, 10 ) CreateConVar( "cfc_parachute_expiration_delay", 5, { FCVAR_ARCHIVE }, "How long until a parachute will delete itself after being closed.", 0.5, 30 ) CreateConVar( "cfc_parachute_viewpunch_strength", 2, { FCVAR_ARCHIVE }, "Strength of the viewpunch players receive when opening a parachute. Scales with falling speed.", 0, 50 ) CreateConVar( "cfc_parachute_space_equip_speed", 100, { FCVAR_ARCHIVE }, "The minimum falling speed required for a player to space-equip a parachute.", 0, 50000 ) diff --git a/lua/cfc_parachutes/shared/sh_parachute_convars.lua b/lua/cfc_parachutes/shared/sh_parachute_convars.lua index 609602d..c731cad 100644 --- a/lua/cfc_parachutes/shared/sh_parachute_convars.lua +++ b/lua/cfc_parachutes/shared/sh_parachute_convars.lua @@ -43,6 +43,13 @@ CFC_Parachute.DesignMaterialProxyInfo = { -- Proxy info, indexed by material nam } +CreateConVar( "cfc_parachute_fall_speed", 200, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "Target fall speed while in a parachute.", 0, 50000 ) +CreateConVar( "cfc_parachute_fall_lerp", 2, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "How quickly a parachute will reach its target fall speed. Higher values are faster.", 0, 100 ) +CreateConVar( "cfc_parachute_horizontal_speed", 80, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "How quickly you move in a parachute.", 0, 50000 ) +CreateConVar( "cfc_parachute_horizontal_speed_limit", 700, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "Max horizontal speed of a parachute.", 0, 50000 ) +CreateConVar( "cfc_parachute_sprint_boost", 1.25, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "How much of a horizontal boost you get in a parachute while sprinting.", 1, 10 ) +CreateConVar( "cfc_parachute_handling", 4, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "Improves parachute handling by making it easier to brake or chagne directions. 1 gives no handling boost, 0-1 reduces handling.", 0, 10 ) + CreateConVar( "cfc_parachute_space_equip_sv", 1, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "Press spacebar while falling to quickly equip a parachute. Defines the default value for players.", 0, 1 ) CreateConVar( "cfc_parachute_space_equip_double_sv", 0, { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "Double tap spacebar to equip parachutes, instead of a single press. Defines the default value for players.", 0, 1 )