Base Builder Crosshair Manager 1.0.0 (olds.ro)
==============================================
Admins choose whether zombies and/or builders play without a crosshair in
Base Builder rounds, and whether only during the build phase.
Requirements
- AMX Mod X 1.10.0.5490 or newer, ReAPI
- Best with the olds.ro Base Builder Core Mode (library olds_basebuilder):
zombies and phases come from it. Without it, zombies are the Terrorists
and the build phase is the first olds_bbx_fallback_build seconds after
the round starts.
Install
Compile scripting/olds_bbcross.sma and copy olds_bbcross.amxx to
addons/amxmodx/plugins/, after the Base Builder core. No downloads.
Settings (addons/amxmodx/configs/plugins/olds_bbcross.cfg, made on first run)
olds_bbx_zombies 1 zombies have no crosshair
olds_bbx_builders 0 builders have no crosshair
olds_bbx_buildphase_only 1 1 = only in the build phase (build and
preparation, until the zombies are released),
0 = the whole round
olds_bbx_fallback_build 90 without the core: build phase length (s)
A changed setting applies at once and at every spawn; no restart needed.
Admins
olds_bbx_status (ADMIN_CFG) phase and every player's crosshair state
How it works
- The crosshair is hidden with the stock HideWeapon message, bit
HIDEHUD_CROSSHAIR (1<<6). The bit is set in the player's m_iHideHUD, so
the game sends it again after a HUD reset, and the plugin sends it again
after every weapon deploy (CurWeapon), because the client redraws the
crosshair then.
- Only that bit is changed, and it is cleared only when this plugin set
it: HUD parts hidden by other plugins stay hidden.
- The field of view is never touched, so scopes (AWP, Scout) zoom as usual.
- Checked at spawn, at death, at every phase change (olds_bb_phase_changed),
when a zombie spawns (olds_bb_zombie_spawned) and when a setting changes.
A cured player who respawns as a builder gets the crosshair back.