Skip to content

Commit

Permalink
Merge pull request #1 from CFC-Servers/relocate-parachutes
Browse files Browse the repository at this point in the history
Relocate parachutes
  • Loading branch information
legokidlogan authored Feb 4, 2024
2 parents 093a926 + 1f457c4 commit c9cd774
Show file tree
Hide file tree
Showing 67 changed files with 1,734 additions and 6 deletions.
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# Name of the Addon
Brief Description / Intro
# cfc_parachutes

## Usage
## Server Convars

Show off how to use the addon, what it does, etc.
| Convar | Description | Default |
| :---: | :---: | :---: |
| cfc_parachute_fall_speed | Target fall speed while in a parachute. | 200 |
| cfc_parachute_fall_lerp | How quickly a parachute will reach its target fall speed. Higher values are faster. | 2 |
| cfc_parachute_horizontal_speed | How quickly you move in a parachute. | 80 |
| cfc_parachute_horizontal_speed_limit | Max horizontal speed of a parachute. | 700 |
| cfc_parachute_sprint_boost | How much of a horizontal boost you get in a parachute while sprinting. | 1.25 |
| cfc_parachute_handling | Improves parachute handling by making it easier to brake or chagne directions. 1 gives no handling boost, 0-1 reduces handling. | 4 |
| cfc_parachute_expiration_delay | How long until a parachute will delete itself after being closed. | 5 |
| cfc_parachute_viewpunch_strength | Strength of the viewpunch players receive when opening a parachute. Scales with falling speed. | 2 |
| cfc_parachute_lfs_eject_height | The minimum height above the ground a player must be for LFS eject events to trigger (e.g. auto-parachute and rendezook launch). | 500 |
| cfc_parachute_lfs_eject_launch_force | The upwards force applied to players when they launch out of an LFS plane. | 1100 |
| cfc_parachute_space_equip_speed | The minimum falling speed required for a player to space-equip a parachute. | 300 |

## Features
## Client Convars

Details about each feature
| Convar | Description | Default |
| :---: | :---: | :---: |
| cfc_parachute_design | Your selected parachute design. | 1 |
| cfc_parachute_lfs_eject | Whether or not exiting mid-air LFS planes will eject you with a parachute. | 1 |
| cfc_parachute_space_equip | Press spacebar while falling to quickly equip a parachute. | 1 |
| cfc_parachute_space_equip_double | Double tap spacebar to equip parachutes, instead of a single press. | 0 |
| cfc_parachute_quick_close_advanced | Changes the key combo for closing parachutes from walk to crouch + walk. | 0 |
1 change: 1 addition & 0 deletions lua/autorun/server/cfc_parachutes_init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource.AddWorkshop( "3143596223" )
14 changes: 14 additions & 0 deletions lua/autorun/sh_cfc_parachutes_init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
AddCSLuaFile( "cfc_parachutes/shared/sh_parachute_convars.lua" )
AddCSLuaFile( "cfc_parachutes/client/cl_parachute.lua" )
AddCSLuaFile( "cfc_parachutes/client/cl_parachute_lfs.lua" )

include( "cfc_parachutes/shared/sh_parachute_convars.lua" )

if SERVER then
include( "cfc_parachutes/server/sv_parachute_convars.lua" )
include( "cfc_parachutes/server/sv_parachute.lua" )
include( "cfc_parachutes/server/sv_parachute_lfs.lua" )
else
include( "cfc_parachutes/client/cl_parachute.lua" )
include( "cfc_parachutes/client/cl_parachute_lfs.lua" )
end
Loading

0 comments on commit c9cd774

Please sign in to comment.