View Single Post
dordnung
Veteran Member
Join Date: Apr 2010
Old 03-27-2013 , 11:38   Re: [Any] Nearest Player - Distance and Direction to nearest Player
Reply With Quote #4

Quote:
Originally Posted by friagram View Post
Plural of foot is feet, but this is pretty cool. I could see it being used for some other things like location to other entities and props. Don't know if you plan on modifying it for other uses, but I might once i get time ot test it out.

I would use this for dev quite a bit to toggle on stuff like func_brush or other random entities of interest.. Perhaps also draw some tempents like sprites or beams to the objects.. Like a green one to the closest, and red to farthest, or use a gradient that uses a color that increases in intensity for close objects but dulls for far ones.

I noticed the little spelling mistake , but these pics i made before^^. But you can change the text anyway in the translation file.


Quote:
Originally Posted by chuj View Post
CreateTimer(0.2, checkPlayers, _, TIMER_REPEAT);

0.5 wouldn't be enough? I think it lags a little on 32 players CSGO server.

EDIT: And could you add command for player to turn on/off showing this?

I don't think a 0.2 seconds timer is to expensive. But i can add a cvar to change the check duration. Because i think 0.2 is more fluent than 0.5.

And i will also add that option to turn it on/off
__________________
dordnung is offline