Warm-up Refrain 1.0.0 (olds.ro)
===============================
Warm-up: players build a short call-and-response pattern together. Each
player adds one beat per cycle from a menu (/refrain); when the pattern is
full it is played back to everyone (text beats on a DHUD line plus a tone for
each), and a new cycle starts. It all stops when live play begins.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer
Install
1. Compile scripting/olds_refrain.sma and copy olds_refrain.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
2. Copy data/lang/olds_refrain.txt to addons/amxmodx/data/lang/.
Use
say /refrain open the beat menu (warm-up only)
olds_refrain_status the pattern and the phase (ADMIN_CFG)
Settings (addons/amxmodx/configs/plugins/olds_refrain.cfg, created on first run)
olds_refrain_len 4 beats in one cycle (2-8); a change applies from the
next cycle
Beats: Blip, Blop, Click and Bell, played with the stock sounds
buttons/blip1.wav, buttons/blip2.wav, buttons/button9.wav and
buttons/bell1.wav (every client has them; nothing to download).
Warm-up phase
- From map start until the first full restart (Game Commencing or
sv_restart, which is how warm-up managers go live).
- A warm-up manager can set it directly with the native
olds_refrain_set_warmup(bool:warmup) (library "olds_refrain").
- When live play starts, playback stops, the pattern and pending turns are
dropped, and open beat menus close.
Turns: one beat per player per cycle; a second beat from the same player is
refused so others can go. A player who leaves keeps their beat in the current
cycle, so it still finishes.