V
vk_phoenixfr
Guest
Hi, i'm implementing a radar system for a specified zone (a quad).
I didn't go very far until know, but as i'm at work now, i just ask to see if someone already have an idea on this.
My thought was to create an entity that you must put on the map a func_radar entity covering the zone you want to see "watched" by the radar.
Then in the code you should be able to get the in/out count of players and of course their position inside the zone.
After that, a quick calculation to transform the zone coordinates of the player to your radar hud element coordinates and place a point on it. The whole think refreshed in the OnThink method of the CHudRadar class.
My question is about creating this func_radar brush and the related input/outputs. Someone knows about this?
I didn't go very far until know, but as i'm at work now, i just ask to see if someone already have an idea on this.
My thought was to create an entity that you must put on the map a func_radar entity covering the zone you want to see "watched" by the radar.
Then in the code you should be able to get the in/out count of players and of course their position inside the zone.
After that, a quick calculation to transform the zone coordinates of the player to your radar hud element coordinates and place a point on it. The whole think refreshed in the OnThink method of the CHudRadar class.
My question is about creating this func_radar brush and the related input/outputs. Someone knows about this?