addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.8 KB
No file matches.
Admin Dead Spectate Vision 1.0.0 (olds.ro)
==========================================
Lets admins watch for rule breaking while dead, without going to spectators:
a marker over every living player in range and a HUD list with each one's
name, health, weapon and distance. Only that admin sees it.
Requirements
- AMX Mod X 1.10.0.5490 or newer (fakemeta)
- ReGameDLL_CS 5.30.0.814 or newer with ReAPI 5.29.0.358 or newer
Install
1. Compile scripting/olds_deadvision.sma and copy olds_deadvision.amxx to
addons/amxmodx/plugins/.
2. Copy data/lang/olds_deadvision.txt to addons/amxmodx/data/lang/.
No downloads: the markers use the stock sprites/laserbeam.spr.
Admins (ADMIN_BAN, flag d)
say /dv turns dead vision on or off. On, it shows whenever you
are dead; when you respawn the markers and the list stop
and you see the normal view until your next death.
amx_dv_status who has it on, dead or alive, and how many players each
one sees
Settings (addons/amxmodx/configs/plugins/olds_deadvision.cfg, made on first run)
olds_dv_range 3000 players farther than this from your view are left out
olds_dv_rate 0.2 seconds between two updates (0.1-2)
olds_dv_log 1 1 = each activation writes a line (name, SteamID, map)
to addons/amxmodx/logs/olds_dv.log
How it works
- RG_CBasePlayer_PreThink runs for dead players too; for an admin with dead
vision on, every olds_dv_rate seconds it sends one TE_PLAYERATTACHMENT
marker (laserbeam sprite, 45 units over the head, lasting one update) per
living player in range, with MSG_ONE to that admin only, and refreshes a
HUD list (up to 12 lines; the rest are counted).
- Players without ADMIN_BAN are refused; an admin who loses the flag
(amx_reloadadmins) loses dead vision at the next update.