Skip to content
View in the app

A better way to browse. Learn more.

Learn more

anti-camp-infection-rule/README.txt

README.txt
42 lines · 2 KB · Text
Raw
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
  1. Compile scripting/olds_anticamp.sma and copy olds_anticamp.amxx to
     addons/amxmodx/plugins/, after biohazard.amxx.
  2. 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

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.