Jail Clock 1.0.0 (olds.ro)
==========================
Surf: on maps with a jail whose door opens on a fixed cycle, players inside
the jail see a private estimate of the next opening:
Jail door in 12 s (+/- 2)
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer (hamsandwich)
Install
1. Compile scripting/olds_jailclock.sma and copy olds_jailclock.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
2. Copy data/lang/olds_jailclock.txt to addons/amxmodx/data/lang/.
3. Copy configs/olds_jailclock/ to addons/amxmodx/configs/ and write a
<mapname>.ini for each jail map from _example.ini.
Configuration: configs/olds_jailclock/<map>.ini
door "targetname" the jail door (func_door or func_door_rotating)
cycle 30 seconds from one opening to the next (5-600)
box x1 y1 z1 x2 y2 z2 the jail; more box lines add areas (up to 8)
A map without the file, or with a missing or invalid line, stays idle and
logs one notice.
Settings (addons/amxmodx/configs/plugins/olds_jailclock.cfg, created on first run)
olds_jailclock_slop 2 seconds the estimate is widened either way (0-10)
Command: olds_jailclock_status (ADMIN_CFG) shows the door, cycle and next
opening.
Timing
- The first opening is never guessed: Ham_Use on the door (the map firing
it) starts or resyncs the cycle, and the next opening is expected cycle
seconds later. Double doors firing together count as one opening.
- When the door fires, the countdown starts over. If the door entity
disappears, the clock stops until the door is used again. A round
restart stops it too.
- Only living players inside a jail box see the line; it updates every
second and stops at 0.
No downloads: a DHUD line in the stock font.