Skip to content
View in the app

A better way to browse. Learn more.

Learn more

jail-clock/README.txt

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

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.