Garry's Mod

Garry's Mod

Not enough ratings
Autojump/Bunnyhopping Script
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun
File Size
Posted
Updated
11.446 KB
25 Jan, 2023 @ 4:50pm
2 Jul, 2024 @ 11:07pm
10 Change Notes ( view )

Subscribe to download
Autojump/Bunnyhopping Script

Description
Small physics tweak, along with a script to automatically jump the instant the player touches the ground. Controlled using CVars.

cl_autojump 0/1/2

0 means vanilla GMod controls, no bunnyhopping.
1 means auto-jumping the moment you hit the ground by just holding the space button.
2 means Quake-like BHopping, where pressing and holding space in midair will sort of "queue" a jump for the moment you touch the ground, but you need to press it again in order to "queue" another jump.

sv_bhop 0/1

0 means unchanged physics.
1 will keep the player's speed from being clamped if the player is already above the speed limit. Note the jump boost will still only propel the player as fast as the clamp would have allowed before, but now airstrafing can continue to increase speed past this point while BHopping.
5 Comments
komikaelb 5 Jul @ 12:18pm 
+ rep
Dont Care 25 Oct, 2024 @ 6:56am 
peak
CarpDragon64 3 Jul, 2024 @ 5:53am 
@daandroid614 That was quick, thanks!
daandroid614  [author] 2 Jul, 2024 @ 11:17pm 
@CarpDragon64 both fixed, thanks for the report
CarpDragon64 2 Jul, 2024 @ 7:21am 
Hey, nice addon! I noticed two problems with it, though:

When cl_autojump is 1, pressing the space bar with the focus on the console, the chat, or any other text field makes the player jump.

Also, sv_bhop doesn't save its value. Restarting the game always sets it to 1.

Could these be fixed?