Skip to content

Commit

Permalink
Merge pull request #4 from CFC-Servers/patch/fix-ipe
Browse files Browse the repository at this point in the history
Fix non-replicated convars
  • Loading branch information
legokidlogan authored Aug 30, 2024
2 parents 4e70c87 + ab1b452 commit f373067
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lua/cfc_parachutes/server/sv_parachute_convars.lua
Original file line number Diff line number Diff line change
@@ -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 )
7 changes: 7 additions & 0 deletions lua/cfc_parachutes/shared/sh_parachute_convars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

Expand Down

0 comments on commit f373067

Please sign in to comment.