Piece Labeler 1.0.0 (olds.ro)
=============================
Base Builder: during the build phase a builder can tag a block they own as a
door, a ramp or cover. Teammates who aim at the block see the tag in a short
on-screen line ("door (tagged by Alpha)"), so the base plan is clear without
asking.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer (fakemeta)
- ReBaseBuilder (github.com/byjumpe/ReBaseBuilder, library "rebb_api")
Install
1. Compile scripting/olds_label.sma and copy olds_label.amxx to
addons/amxmodx/plugins/, below the ReBaseBuilder plugins in plugins.ini.
The compiler needs ReAPI's include files next to the stock includes.
2. Copy data/lang/olds_label.txt to addons/amxmodx/data/lang/.
Use
say /label door|ramp|cover tag the block you aim at; a block has one tag,
so a new one replaces the old
say /label clear remove the tag from the block you aim at
olds_label_status every tag (ADMIN_CFG)
Settings (addons/amxmodx/configs/plugins/olds_label.cfg, created on first run)
olds_label_max 10 tags each builder may have (1-50)
Rules
- Only a living builder (counter-terrorist) during the build phase can tag,
and only a block they own: the builder holding it now
(rebb_get_owned_ent), else the one who locked it, else the one moving it,
else the last one who moved it, as ReBaseBuilder stores them. A block
owned by someone else is refused and nothing is stored. The barrier never
counts.
- Teammates are living counter-terrorists. Every 0.2 s a trace from their
eyes (EngFunc_TraceLine) finds the block they aim at; a tagged block shows
its tag as a DHUD line.
- Each time a tag is shown it is checked: the block must still exist and
still belong to the builder who tagged it, or the tag is dropped.
- All tags are removed when a new build phase starts (rebb_build_start), at
every round restart (the layout is reset), and a builder's tags go when
they leave.
No downloads: labels are DHUD text only; no sprite is created.