This script implements a crouch-jump feature reminiscent of Half-Life and similar games.
If you're in the air and you crouch, you get sent up a bit allowing you to reach higher areas.
Author: piber20
A few lines of code were based on a sniplet provided by
Carbon Zypher.
Version 8
Here is a .gif showing the crouch jump in action when set to the maximum setting (the default):
The 5 block high red wall can be scaled by default, just by jumping over it. To scale the 8 block high blue wall, you must crouch in the air. The 10 block high yellow wall represents the limit of your jump height by default, and cannot be scaled or looked over, the crouch jump does nothing to change this fact.
Crouch jump height can be changed by editing the pref $Pref::Server::CrouchJump::HeightInPlates (default is 7). For the best FPS-like/half-life-like experience I recommend you try out the Half-Life-Like playertype below that replicates movement of Half-Life including utilising features from this script. You must have this script activated to make the playertype work, otherwise it's just a slower quake-like player.
You can bypass the maximum/minimum by changing the pref $Pref::Server::CrouchJump::BypassHeightMax to True
You can change how fast the air detection ticks are by changing the $Pref::Server::CrouchJump::TickLength pref. By default it is 20. Set it higher to improve server performance at the cost of it being less accurate.
LinksDownload Server_CrouchJump.zip v8Download Player_Half-Life.zipIf you cannot access my website for whatever reason, please check the mirrors below:
View on Blockland NexusView on Blockland GlassFeel free to suggest changes and provide your constructive criticism. Don't make it nasty.