Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Tower Breach Register

Featured Replies

  • Administrator

Record the first wave enemy to damage the tower from each configured lane.

Tower Breach Register 1.0.0 (olds.ro)

Tower Defence: for each lane of the map, records the first enemy that damaged the tower during the wave, and when. At the end of the wave the register is posted to chat; amx_breach prints the current or last register to the console.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • A Tower Defence mod that reports waves and tower damage through this plugin's natives (directly, or through a small bridge plugin)

Install

  • Compile scripting/olds_breach.sma and copy olds_breach.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_breach.txt to addons/amxmodx/data/lang/.
  • Copy configs/olds_breach/ to addons/amxmodx/configs/ and write a <mapname>.ini for each map from _example.ini.
  • Copy scripting/include/olds_breach.inc next to the mod's sources.

Use

  amx_breach    the register per lane (ADMIN_MAP)

Settings (addons/amxmodx/configs/plugins/olds_breach.cfg, created on first run)

  olds_breach_enable 1   0 stops recording and reports

Lanes: configs/olds_breach/<map>.ini, one box per line, numbered from 1:

    "Lane name"  x1 y1 z1  x2 y2 z2

For the mod (include/olds_breach.inc, library "olds_breach")

  olds_breach_wave_start(wave)          a wave began; the register is emptied
  olds_breach_tower_damage(enemy)       this enemy entity just damaged the real
                                        tower
  olds_breach_wave_end(bool:cancelled)  the wave ended; cancelled = no report
The enemy's lane is the box holding its origin at that moment; outside every
box it is not recorded. Each lane keeps only its first breach: later damage
ticks, the same enemy again, or a new enemy reusing an old entity index never
overwrite it.

No downloads: chat text and a console table.

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_breach.inc, addons/amxmodx/scripting/olds_breach.sma, test/td_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-100).

Tower Breach Register
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.2 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 253 lines
/*
 * Tower Breach Register (olds.ro workshop card AMX-100)
 *
 * Tower Defence: for each lane of the map, records the first enemy that
 * damaged the tower during the wave, and when. At the end of the wave the
 * register is posted to chat:
 *     Wave 4 breaches: lane 1 (North) monster #212 at 0:12, lane 2 (Bridge) none
Show all 253 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.