Enemy Radar Display 1.0.0 (olds.ro)
===================================
A player with the allowed admin flag types /radar: for olds_er_duration seconds
the enemies within olds_er_range units show on his radar, even behind walls,
updated every half second. When it runs out, when he dies or when a new round
starts, the plugin stops and the radar works as before.
Requirements
- AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS)
Install
1. Compile scripting/olds_enemyradar.sma and copy olds_enemyradar.amxx to
addons/amxmodx/plugins/.
2. Copy data/lang/olds_enemyradar.txt to addons/amxmodx/data/lang/.
No downloads: the stock radar HUD draws the dots.
Settings (addons/amxmodx/configs/plugins/olds_enemyradar.cfg, made on first run)
olds_er_flag "b" admin flag(s) allowed to use /radar (any of them);
empty = everyone
olds_er_duration 10 seconds the enemy radar stays on
olds_er_range 1500 range in units
Players
say /radar switch the enemy radar on (once at a time; after it runs out
it can be switched on again)
How it works
- A 0.5 s task per watcher sends the stock Radar message (player index and
position) for each living enemy within range, to that watcher only.
emessage_* is used, so other plugins can see or block the messages.
- An enemy who leaves the range, dies or disconnects, and every dot when
the radar stops, is taken off by sending a position at the edge of the
map coordinates (4095 4095 4095), outside the radar's range.
- A watcher who dies gets no more messages from the plugin.
- RG_CSGameRules_RestartRound switches every enemy radar off: it must be
switched on again in the new round.