View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-19-2013 , 16:25   Re: destroy tele or buildings built in respawn for mann manor?
Reply With Quote #4

Quote:
Originally Posted by lyric View Post
do you know how to get cordinates ? I would do it later.
GetClientEyePosition will give you their coordinates at eye level which is... 64 hammer units up if they're not ducking?

Actually, it might be a good idea to get a player's eye height, then use a traceray to go straight down (I think up-down is the first value of an angle vector, so { -90, 0, 0 } ?) until you hit world geometry (MASK_SOLID ?).

Edit: Whoops, the player's own model is considered solid, so you need to filter it as documented on the comments in the main TraceRay docs.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-19-2013 at 16:33.
Powerlord is offline