Skip to content
View in the app

A better way to browse. Learn more.

Learn more

tower-breach-register/addons/amxmodx/scripting/include/olds_breach.inc

olds_breach.inc
31 lines · 0.9 KB · Pawn include
Raw
/*
 * Tower Breach Register (olds_breach) API, for a Tower Defence mod or a bridge plugin.
 * Copyright (C) 2026 daemon (olds.ro)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
#if defined _olds_breach_included
    #endinput
#endif
#define _olds_breach_included

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

/** A wave began; the register starts empty. */
native olds_breach_wave_start(wave);

/**
 * This enemy entity has just damaged the real tower. Its lane is the lane box
 * holding its origin now. Only the first breach of each lane is kept.
 *
 * @return  1 if it was recorded as a lane's first breach, 0 otherwise
 */
native olds_breach_tower_damage(enemy);

/**
 * The wave ended. With cancelled true nothing is reported and the register is
 * dropped; otherwise the register is posted to chat.
 */
native olds_breach_wave_end(bool:cancelled);

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.