Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Anti-Camp Infection Rule

Featured Replies

  • Administrator

At round end, if some humans remain uninfected and are camping, they are penalized or infected so rounds do not stall.

Anti-Camp Infection Rule 1.0.0 (olds.ro)

Biohazard rounds should not stall: a human who stays in one spot is a camper, gets warned, and in the last seconds of the round is hurt or infected until they move.

Requirements

  • AMX Mod X 1.10.0.5490 or newer (fakemeta, hamsandwich)
  • ReGameDLL_CS 5.30.0.814 or newer with ReAPI 5.29.0.358 or newer
  • Biohazard 2.0 (library biohazardf: is_user_zombie, infect_user, game_started)

Install

  • Compile scripting/olds_anticamp.sma and copy olds_anticamp.amxx to addons/amxmodx/plugins/, after biohazard.amxx.
  • Copy data/lang/olds_anticamp.txt to addons/amxmodx/data/lang/. No downloads: HUD text and the stock buttons/blip2.wav.

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

  olds_ac_dist 100     units a human must move to stop being a camper
  olds_ac_time 40      seconds within olds_ac_dist that make a camper
  olds_ac_action 1     0 = warn only, 1 = damage, 2 = infect (core native)
  olds_ac_damage 10    damage every 2 seconds with action 1
  olds_ac_window 20    penalties only in the round's last this many seconds;
                       before that campers are warned

How it works

  • Every 2 seconds each living human's position is compared with where the current count started; more than olds_ac_dist away starts it again.
  • Nothing counts during freeze time, before Biohazard's first infection (game_started) or once the round is ending, so waiting in those periods is never camping.
  • A camper gets a HUD warning and a blip every 2 seconds. In the last olds_ac_window seconds of the round clock (ReGameDLL's round start time and length) the action applies: damage every 2 seconds, or one infect_user call through the Biohazard core.
  • Moving resets everything at once, so a lone survivor who keeps moving is never punished.

Admin (ADMIN_KICK)

  amx_anticamp   each human's still time and penalties, the round time left

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_anticamp.sma, test/bio_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 (LIB-0028).

Anti-Camp Infection Rule
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.8 KBUpdated 8 hours ago
Sign in to download
Pawn (AMX Mod X) · 182 lines
/*
 * Anti-Camp Infection Rule (olds.ro)
 * Copyright (C) 2026 daemon (olds.ro)
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
Show all 182 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.