Skip to content
View in the app

A better way to browse. Learn more.

Learn more

build-palette/README.txt

README.txt
50 lines · 2.4 KB · Text
Raw
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.

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.