Spectator HP List 1.0.0 (olds.ro)
=================================
Spectators and dead players see two lists on the sides of the screen: the
living Terrorists on the left and the living Counter-Terrorists on the
right, each with their health, lowest health first. The lists are refreshed
every second.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
- AMX Mod X 1.10 or newer (written for 1.10.0.5490)
Install
1. Compile scripting/olds_hplist.sma and copy olds_hplist.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_hplist.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_hplist.cfg to addons/amxmodx/configs/plugins/
(if it is missing, the plugin writes it with the default values).
4. Add olds_hplist.amxx to addons/amxmodx/configs/plugins.ini.
Commands
say /hplist (also in team chat) Turns the lists off or on for you. The
choice stays until you leave the server (also over new
rounds and restarts).
How it works
- Every second each spectator and dead player gets the Terrorists' list
(HUD channel 1, x 0.01) and the Counter-Terrorists' list (channel 2,
x 0.80). With olds_hplist_dead 0 living players get them too.
- Each list starts with the number of living players in the team, then
one row per player: health and name. At most olds_hplist_max rows are
shown per team.
- Names longer than 16 characters are cut (never in the middle of a
letter), so no row wraps.
- With olds_hplist_sort 1 the lowest health comes first; with 0 the
players are listed in the order they joined.
Settings (addons/amxmodx/configs/plugins/olds_hplist.cfg)
olds_hplist_max 8 rows per team (1 - 32)
olds_hplist_sort 1 1 = lowest health first, 0 = join order
olds_hplist_dead 1 1 = only spectators and dead players see the lists,
0 = living players too
No sounds, models or sprites are added.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2072.
Licence: GNU GPL version 3 or later (GPL-3.0-or-later).