Skip to content
View in the app

A better way to browse. Learn more.

Learn more

rune-spawn-rotation/addons/amxmodx/scripting/include/olds_runes.inc

olds_runes.inc
47 lines · 1.6 KB · Pawn include
Raw
/*
 * olds_runes.inc - API of the olds.ro RuneMod core (Rune Pickups), for add-ons such as
 * Rune Drop on Death and Rune Spawn Rotation. Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.
 */
#if defined _olds_runes_included
    #endinput
#endif
#define _olds_runes_included

#pragma reqlib olds_runes
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib olds_runes
#endif

/* Rune types of the core (the skin of models/olds/runes/rune.mdl is the type). */
#define OLDS_RUNE_NONE    -1
#define OLDS_RUNE_SPEED    0
#define OLDS_RUNE_REGEN    1
#define OLDS_RUNE_DAMAGE   2
#define OLDS_RUNE_VAMPIRE  3
#define OLDS_RUNE_SHIELD   4

/* The rune the player holds (OLDS_RUNE_NONE for none) and its seconds left. */
native olds_rune_get(id, &Float:secondsLeft);

/*
 * Gives the player a rune for the given seconds, as a pickup would (a rune already held is
 * handled the core's way). Returns 1, or 0 when the core refuses (dead player, bad type).
 */
native olds_rune_give(id, type, Float:seconds);

/* Number of rune types. */
native olds_rune_types();

/* The rune's name, such as "Speed". Returns 0 for a bad type. */
native olds_rune_name(type, name[], len);

/* 1 when the type is turned on on this map (the core spawns only those). */
native olds_rune_type_enabled(type);

/*
 * The core is about to put a rune at a spawn point (point: 0.. in the core's point list;
 * type: the core's own choice). Return a rune type to spawn instead, or OLDS_RUNE_NONE to
 * keep the core's choice. The core calls it with ExecuteForward and uses the result when it
 * is a turned-on type.
 */
forward olds_rune_spawning(point, type);

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.