Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Piece Labeler

Featured Replies

  • Administrator

Label a movable block as a door, ramp, or cover for teammates.

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

  • 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.
  • 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.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_label.sma, test/rebb_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (AMX-073).

Piece Labeler
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.2 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 352 lines
/*
 * Piece Labeler (olds.ro workshop card AMX-073)
 *
 * 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, so the base plan is clear without asking.
 *
Show all 352 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.