Page 1 of 1
Finding a players position
Posted: Thu Feb 19, 2009 8:37 pm
by nexus024
I am struggling with being able to find a players position in space. For instance, what I would like to do is be able to determine if a player is on the ground or in the air at a given time. Anyone have any suggestions on how to do this?
Re: Finding a players position
Posted: Thu Feb 19, 2009 9:29 pm
by ^misantropia^
Check out PM_WalkMove() and PM_AirMove() in game/bg_pmove.c and how they are called depending on whether pml.walking is set.
Re: Finding a players position
Posted: Thu Feb 19, 2009 9:31 pm
by ^misantropia^
Oh, and PM_GroundTrace() should explain how to actually determine if a player is airborne.
Re: Finding a players position
Posted: Fri Feb 20, 2009 8:13 pm
by nexus024
Thanks misantropia, I will take a look at those and see what I can figure out.