Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Barrier Zones

Featured Replies

  • Administrator

Admins define invisible barriers that block, slow or damage chosen teams, for custom rules like keeping Ts out of a base.

Barrier Zones 1.0.0 (olds.ro)

Mapping: admins define invisible boxes that block, slow or hurt a chosen team, for custom rules like keeping the terrorists out of a base.

Requirements

  • AMX Mod X 1.10.0.5490 or newer, ReAPI, fakemeta, hamsandwich

Install

  • Compile scripting/olds_barrier.sma and copy olds_barrier.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_barrier.txt to addons/amxmodx/data/lang/. No downloads: the admin preview uses the stock sprites/laserbeam.spr.

Settings (addons/amxmodx/configs/plugins/olds_barrier.cfg, made on first run)

  olds_barrier_dmg 5      damage per second inside a damage barrier
  olds_barrier_slow 0.5   speed factor inside a slow barrier

Admins (ADMIN_CFG)

  amx_barrier add <t|ct|all> <block|slow|damage> [x1 y1 z1 x2 y2 z2]
                          a box between two corners; in game without
                          corners, a 128-unit box around you
  amx_barrier del <n>
  amx_barrier list        the boxes, and every living player's team,
                          position, barrier, health and top speed
  amx_barrier show        your preview on or off (beams along the edges:
                          red block, blue slow, yellow damage)
  Every add and del is saved at once to
  addons/amxmodx/configs/barriers/<map>.ini, one box per line:
    x1 y1 z1 x2 y2 z2 <t|ct|all> <block|slow|damage>
  The file is read at map start; bad lines are logged and skipped.

How it works

  • FM_PlayerPreThink tests each living player of the box's team: the player's own box (32 x 32 x 72) touching the barrier counts as inside.
  • block: pev_velocity pushes him out through the nearest side.
  • slow: his top speed is olds_barrier_slow of normal while inside, applied after every RG_CBasePlayer_ResetMaxSpeed, and normal again as soon as he leaves or the box is deleted.
  • damage: ExecuteHamB(Ham_TakeDamage) with olds_barrier_dmg once a second.
  • Only admins with the preview on see the boxes; adding a box also shows it as a TE_BOX for a few seconds.

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/olds_barrier.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 (LIB-1015).

Barrier Zones
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.3 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 554 lines
/*
 * Barrier Zones (olds.ro workshop card LIB-1015)
 *
 * Mapping: admins draw invisible boxes that block, slow or hurt a chosen team,
 * for custom rules such as keeping the terrorists out of a base.
 *   amx_barrier add <t|ct|all> <block|slow|damage> [<x1> <y1> <z1> <x2> <y2> <z2>]
 *                        without corners (in game): a 128-unit box on you
Show all 554 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.