Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Relic Custody

Featured Replies

  • Administrator

Publish a post-round timeline of who carried a single team artifact.

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

  • 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.
  • 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.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/include/olds_relic.inc, addons/amxmodx/scripting/olds_relic.sma, test/relic_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (AMX-095).

Relic Custody
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.2 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 329 lines
/*
 * Relic Custody (olds.ro workshop card AMX-095)
 *
 * Teamplay: records who carried the single team artifact during the round and, when the
 * round ends, names the longest uninterrupted hold in chat. /relic shows the round's
 * timeline after the round has ended; during the round it is locked, so it cannot
 * be used to find the carrier. Owner positions are never recorded or printed.
Show all 329 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.