About Me

My name is Thomas Mathews also known as Tingtom. I love to code and currently work as a Web Developer, my favourite language is C++!

Are you not credited or mentioned on the site when you should be? Please contact me!

Contact Me

Source SDK - Enabling brush ladders


A request while working on Resurgence was to add brush ladders which are a simpler implementation that don't use dismount points but instead fling you off the ladder at the top or bottom, they are way easier to create in Hammer and easier to use as a player.

I found out how to do it when searching about the brush ladder and found this page that listed it had managed to enable brush ladders, I checked out the source code for the enabling the brush ladder and it basically just disables the HL2 gamemovement that uses the gamemovement.cpp file as it's base and has some extra ladder code for handling dismounts. You can check out the file here

After that any brushes with func_ladder or textures with the climbable flag can be used as ladders, I would recommend changing the climb speed in shareddefs.h (103) and altering the velocity that the player gets pushed away from the ladder at which by default is 270.

It was way easier than I expected as whenever I went to tackle the issue I would look in func_ladder or gamemovement.cpp and didn't think about checking out the HL2 specific movement rules..

Code is available on my Github as always, just replace your file with the file in this gist