Skip to content
View in the app

A better way to browse. Learn more.

Learn more

run-shadow-splits/README.txt

README.txt
53 lines · 2.5 KB · Text
Raw
Run Shadow Splits 1.0.0 (olds.ro)
=================================

For Kreedz: at each checkpoint of a run you see, privately, how far ahead or
behind you are compared with your previous valid run of the same map, route
and style: a DHUD line like "CP 2 -0.40" (green when faster, red when slower).
No ghost model.

Requirements
  - AMX Mod X 1.10.0.5490 or newer (nvault)
  - A KZ timer that calls the natives below, or a small bridge plugin that
    forwards the timer's own callbacks to them (KZ timers differ, so this
    plugin does not hook any one of them)

Install
  1. Compile scripting/olds_shadow.sma and copy olds_shadow.amxx to
     addons/amxmodx/plugins/, listed BEFORE the timer or bridge.
  2. Copy data/lang/olds_shadow.txt to addons/amxmodx/data/lang/.
  3. Give your timer or bridge scripting/include/olds_shadow.inc.

Natives (library "olds_shadow", see include/olds_shadow.inc)
  olds_shadow_start(id, route[], style[], routeSig[])  run started
  olds_shadow_checkpoint(id, number, Float:time)        checkpoint reached
  olds_shadow_finish(id, Float:time, valid)             run finished
  olds_shadow_reset(id)                                 run reset or stopped
  olds_shadow_style(id, style[])                        style switched
  Route and style names: letters, digits, - _ . (route up to 31, style up
  to 15 characters). routeSig is any short text that changes when the route
  definition changes (e.g. a hash of its checkpoint list).

Settings (addons/amxmodx/configs/plugins/olds_shadow.cfg, created on first run)
  olds_shadow_maxcp 40      most checkpoints stored per reference (1-200)
  olds_shadow_best 0        0 = compare with the previous valid run,
                            1 = with the best valid run
  olds_shadow_savebots 0    1 = keep references for bots (by name)

Rules
  - One reference per SteamID, map, route and style, in the nvault
    "olds_shadow" (addons/amxmodx/data/vault/olds_shadow.vault).
  - A valid finish becomes the new reference (with olds_shadow_best 1 only
    if it is faster). Invalid finishes never do.
  - A start with a different route signature deletes the stored reference.
  - Reset and style switches stop the deltas and keep the reference. A
    style with no reference shows nothing until a run in it is stored.
  - Players without a valid SteamID (LAN, pending) are not stored.

Players
  say /shadow   turn your own deltas off or on

Admin (ADMIN_ADMIN)
  amx_shadow_ref <player>   the player's current run, reference and last delta

No downloads.

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.