Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Enemy Radar Display

Featured Replies

  • Administrator

Enemies appear as dots on the player's radar even when out of line of sight, for a limited time or for a special role.

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

  • Compile scripting/olds_enemyradar.sma and copy olds_enemyradar.amxx to addons/amxmodx/plugins/.
  • 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.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_enemyradar.sma, test/er_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0004).

Enemy Radar Display
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.6 KBUpdated 3 hours ago
Sign in to download
Pawn (AMX Mod X) · 223 lines
/*
 * Enemy Radar Display (olds.ro workshop card LIB-0004)
 *
 * 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 dots are
 * taken off and the radar works as before.
Show all 223 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.