Skip to content
View in the app

A better way to browse. Learn more.

Learn more

spectator-hud-information/README.txt

README.txt
52 lines · 2.4 KB · Text
Raw
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
  1. 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.
  2. Copy data/lang/olds_spechud.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_spechud.cfg to addons/amxmodx/configs/plugins/
     (if it is missing, the plugin writes it with the default values).
  4. 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).

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.