Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Daemon/

Barrier Zones

Plugin
Daemonee71236c61Version 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
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 1. Compile scripting/olds_barrier.sma and copy olds_barrier.amxx to addons/amxmodx/plugins/. 2. 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.

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.