Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Spectator HUD Information

Featured Replies

  • Administrator

While spectating in first person, the HUD shows the watched player's health, armor, ammo and money.

Spectator HUD Information 1.0.0 (olds.ro)

A spectator (or dead player) whose camera follows a player sees that player's name, health, armour, money and ammo in a small block near the bottom of the screen. The block is refreshed every half second, at once when the watched player fires or switches weapons, and it disappears as soon as the camera stops following a player.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  • AMX Mod X 1.10 or newer (written for 1.10.0.5490), with the cstrike and fun modules (part of every AMX Mod X install)

Install

  • Compile scripting/olds_spechud.sma and copy olds_spechud.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the stock AMX Mod X includes.
  • Copy data/lang/olds_spechud.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_spechud.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • Add olds_spechud.amxx to addons/amxmodx/configs/plugins.ini.

Commands None.

How it works

  • The watched player is the one the spectator's camera follows (first person, chase cam, or the overview map following him). In free look or on the free overview map nobody is watched and the block goes away.
  • The block shows: the name; "Health: 100 Armor: 100 Money: $800"; and, for guns, "Ammo: 30 / 90" (rounds in the magazine / spare rounds). The knife, grenades and the C4 show no ammo.
  • It uses HUD channel 4, centred at y 0.80.
  • The block is updated every olds_spech_rate seconds, when the watched player fires or switches weapons (CurWeapon), and when the spectator changes camera mode or target.
  • With olds_spech_enemy 0 a dead player gets the block only for a teammate he watches; players in the spectator team always get it.

Settings (addons/amxmodx/configs/plugins/olds_spechud.cfg)

  olds_spech_money 1    1 = show the watched player's money, 0 = hide it
  olds_spech_enemy 1    1 = also for enemies a dead player watches,
                        0 = teammates only
  olds_spech_rate 0.5   seconds between two updates (0.1 - 5)

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2073. Licence: GNU GPL version 3 or later (GPL-3.0-or-later).

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_spechud.sma

Idea: olds.ro workshop library · Plugin: alexit · 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-2073).

Spectator HUD Information
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.7 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 227 lines
/*
 * Spectator HUD Information (olds.ro workshop card LIB-2073)
 *
 * A spectator (or dead player) whose camera follows a player sees that
 * player's health, armour, money and ammo in a small HUD block near the
 * bottom of the screen. The block is refreshed every olds_spech_rate
 * seconds, at once when the watched player fires or switches weapons, and
Show all 227 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.