I need help doing ladders as half life ones, i have this custom character controller and ive been months delaying my game alpha because of this so any guidance with the maths behind them or whatever would be great
Hey, could you show your current progress along with a comparaison to the actual half life ladders?
yeah i dont have progress at all i just have a raycast to detect ladders i just need to figure out how to make em climbable i tried using forces and lots of stuff but nothing worked at all
Is your game in first person? If so, i assume you could use a function to lock the player in & out of a climbing state.
It is but as i said im using a custom character controller so i cant just do that
How are the ladders in Half Life? It’s been a while since I played.
If you could explain the way they behave, that would be great!
When you are near the ladder, you could anchor the player. If anchored, check what keys they are pressing and return a localized vector3 to decide when you move up or down, and if you want, left or right.
If you dont anchor the player, do the same thing but localize the movedirection instead.
W/S would change their cframe by either 0,1,0 or 0,-1,0 times the speed. A/D would change their cframe by either 1,0,0 or -1,0,0 times the speed.
If your custom controller has an exposed movement direction value, normalize it and use it.
Basiclly u go to them touch em and then u go up or down using w and s
Ill try quo thank you so much lel
Well then, just add or subtract from the player’s Y position based on wether W or S is being pressed while ladder mode is active.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.