Hihoo, i want that my player only can jump when he is touching ground, not the walls for example. Only when the lowest point of the modell touches another block or modell he can jump. How i can do this ?
Something like this would be good:
if(collision at position (x,y, z - 2/height of playermodel) ...
Re: Jump only when you touching ground !
[Re: theDust]
#252488 02/18/0914:3302/18/0914:33
Do a c_trace from the player to a position under his feet, check if there is anything and maybe how far away it is, this will give you a clue about if the player touches the ground or not.
Re: Jump only when you touching ground !
[Re: theDust]
#252591 02/19/0906:1502/19/0906:15