Skip to content
View in the app

A better way to browse. Learn more.

Learn more

relic-custody/README.txt

README.txt
47 lines · 2.2 KB · Text
Raw
Relic Custody 1.0.0 (olds.ro)
=============================

Teamplay: records who carried the single team artifact (the relic) during the
round. When the round ends the longest uninterrupted hold is named in chat;
after that, /relic shows the whole timeline of the round.

    Longest hold this round: Alpha, 40 s.
    Relic timeline:  1. Alpha 0:05-0:45 (40 s)  2. Bravo 0:45-1:10 (25 s) ...

Requirements
  - AMX Mod X 1.10.0.5490 or newer
  - the team artifact add-on, or a small bridge, calling the natives below

Install
  1. Compile scripting/olds_relic.sma (scripting/include/olds_relic.inc next
     to it) and copy olds_relic.amxx to addons/amxmodx/plugins/, before the
     artifact add-on in plugins.ini.
  2. Copy data/lang/olds_relic.txt to addons/amxmodx/data/lang/.
  No downloads: chat text only.

Setting (addons/amxmodx/configs/plugins/olds_relic.cfg, made on first run)
  olds_relic_minsec 3   holds shorter than this (seconds) are left out of the
                        table and of the end line (0-600)

Players
  say /relic   the round's timeline: carrier, from-to (round clock), seconds.
               During the round it is locked (the player is told it unlocks
               at round end), so it cannot be used to find the carrier.

For the artifact add-on (include/olds_relic.inc, library "olds_relic")
  Call these only for confirmed changes:
    olds_relic_granted(id)             the player got / picked up the relic
    olds_relic_dropped(id)             the carrier dropped it
    olds_relic_transferred(from, to)   handed straight to another player
    olds_relic_reset()                 returned to its base or removed
  A hold also ends when the carrier leaves the server and when the round ends.

Details
  - A drop followed by a pick-up by the same player within 1 second stays one
    hold (its time runs on through the drop).
  - At most 16 holds per round are listed; later holds are counted ("N more
    holds were not listed") and still count for the longest hold.
  - Owner positions are never recorded or printed, and nothing about the
    current carrier is shown during the round.
  - Each round's holds (with SteamIDs) are also written to the AMXX log at
    round end.

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.