Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Mount/Dismount Ladder hooks. #2251

Open ZH-Hristov opened 11 months ago

ZH-Hristov commented 11 months ago

Would be real nice to have hooks to detect players getting on and off ladders, especially since the only way (I know of) right now is very hacky, works only for the HL2 sticky type ladders and seems to have an issue with race conditions in my case. And I'd just rather not settle with the alternative of checking for movetype every tick.

Would help me fix my ladder animations addon and make it work with CSS and L4D ladders.

ZH-Hristov commented 11 months ago

A MovetypeChanged hook could work just as well in this case, provided all ladder types use the ladder movetype.