Skip to content
View in the app

A better way to browse. Learn more.

Learn more

run-shadow-splits/addons/amxmodx/scripting/include/olds_shadow.inc

olds_shadow.inc
39 lines · 1.7 KB · Pawn include
Raw
/*
 * Run Shadow Splits (olds.ro): natives for a KZ timer or a small bridge plugin.
 * Copyright (C) 2026 daemon (olds.ro). SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Call these from the timer's own callbacks:
 *   run start           olds_shadow_start(id, route, style, routeSig)
 *   checkpoint reached  olds_shadow_checkpoint(id, number, runTime)
 *   finish              olds_shadow_finish(id, runTime, valid)
 *   reset / stop        olds_shadow_reset(id)
 *   style switch        olds_shadow_style(id, style)
 *
 * route     route name, 1-31 characters (letters, digits, - _ .), "main" for a one-route map
 * style     style name, 1-15 characters (same characters), e.g. "normal", "lowgrav"
 * routeSig  anything that changes when the route definition changes (for example its
 *           checkpoint list hashed to text), up to 31 characters; a stored reference with a
 *           different signature is deleted
 */
#if defined _olds_shadow_included
    #endinput
#endif
#define _olds_shadow_included

#pragma reqlib "olds_shadow"

/* Starts a run. Returns 1 if a reference run exists for this route and style. */
native olds_shadow_start(id, const route[], const style[], const routeSig[])

/* Checkpoint number (1 = first) reached at runTime seconds. Returns 1 if a delta was shown. */
native olds_shadow_checkpoint(id, number, Float:runTime)

/* The run ended at runTime seconds; valid = 1 for a finish the timer accepts. Returns 1 if it
 * became the new reference. */
native olds_shadow_finish(id, Float:runTime, valid)

/* The run was reset or stopped: no more deltas; the reference is not touched. */
native olds_shadow_reset(id)

/* The player switched style: the current run stops and the next start uses this style. */
native olds_shadow_style(id, const style[])

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.