Admin Beam Drawing 1.0.0 (olds.ro)
==================================
Admins draw temporary lines on the map, to show a route or point at a
problem. Everyone sees them; they vanish after olds_abeam_life seconds, with
amx_beam clear, or when the round ends.
Requirements
- AMX Mod X 1.10.0.5490 or newer (fakemeta)
Install
Compile scripting/olds_abeam.sma and copy olds_abeam.amxx to
addons/amxmodx/plugins/.
Commands (ADMIN_BAN)
amx_beam start the line starts where you aim (crosshair on a wall/floor)
amx_beam end the line ends where you aim; it is drawn at once
amx_beam clear remove every line
amx_beam list the lines, their colour and seconds left
From the server console give the point: amx_beam start|end x y z
Bind them for quick use, for example: bind f6 "amx_beam start"; bind f7 "amx_beam end"
Settings (addons/amxmodx/configs/plugins/olds_abeam.cfg, created on first run)
olds_abeam_life 30 seconds a line stays; 0 = until the round ends
olds_abeam_width 8 line width, 1-100
olds_abeam_color "255 0 0" colour of new lines, red green blue (0-255)
olds_abeam_max 16 most lines at once (1-64); one more removes the
oldest
How it draws
Each line is a TE_BEAMPOINTS beam with the stock sprites/laserbeam.spr,
sent again every second (set_task) with a 1.1 s life, and a small
sprites/white.spr glow on both ends. The aim point is an
EngFunc_TraceLine from the admin's eyes along the view direction.
No downloads: both sprites are stock.