Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Build Palette

Featured Replies

  • Administrator

Mark entrances, steps, and cover with shared colors and readable text labels.

Build Palette 1.0.0 (olds.ro)

ReBaseBuilder add-on. During the build phase a builder marks one of their blocks as an entrance, a step or cover. The block takes that label's colour, and teammates who aim at it read the word ("step") in a DHUD line, so the label never depends on colour alone. When the build phase ends, every marked block gets back the render it had before it was marked.

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_palette.sma (the ReBaseBuilder natives are declared in the plugin) and copy olds_palette.amxx to addons/amxmodx/plugins/, after the ReBaseBuilder core in plugins.ini. The compiler needs ReAPI's includes.

Use (living builders, build phase only)

  say /mark entrance | step | cover   mark the block under your crosshair
  say /mark clear                     remove its mark
  say /mark                           show the choices
You can mark a block you own (or one nobody owns); a block another builder
owns or marked is refused.

Settings (addons/amxmodx/configs/plugins/olds_palette.cfg, created on first run)

  olds_palette_alpha 120               render amount of a marked block
  olds_palette_entrance "90 220 110"   label colours, "red green blue";
  olds_palette_step "245 200 60"       a value that is not three numbers
  olds_palette_cover "100 160 255"     gives the off-white 235 230 215

Rendering and the core ReBaseBuilder has no render native, so the plugin works around the core:

  • On marking it saves the block's render mode, fx, colour and amount (which may be another plugin's effect, such as a builder colour) and sets kRenderTransColor with the label colour.
  • The core and colour plugins change the render while a block is carried; after rebb_drop_post the tint is set again.
  • When the build phase ends (rebb_preparation_start or rebb_zombies_released) each block gets its saved render back, but only if it still shows our tint: a change another plugin made in between is left alone. rebb_build_start and a round restart forget the marks (the core resets its blocks then).

Admin

  olds_palette_status   marked blocks and their render (ADMIN_CFG)

No downloads: marking uses render colours on the existing block models, and the label is DHUD text.

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_palette.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-075).

Build Palette
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.5 KBUpdated 9 hours ago
Sign in to download
Pawn (AMX Mod X) · 428 lines
/*
 * Build Palette (olds.ro) - ReBaseBuilder add-on. During the build phase a
 * builder marks a block as an entrance, a step or cover: the block takes that
 * label's colour, and teammates who aim at it read the word in a DHUD line,
 * so the label never depends on colour alone. When the build phase ends every
 * marked block gets back the render it had before it was marked.
 *
Show all 428 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.