Skip to content
View in the app

A better way to browse. Learn more.

Learn more

control-points-capture-mode/README.txt

README.txt
46 lines · 2.2 KB · Text
Raw
Control Points Capture Mode 1.0.0 (olds.ro)
===========================================

King of the Hill: capture points placed around the map. Standing near a point
with only your team for olds_cp_capture seconds converts it to your team;
every olds_cp_interval seconds each team scores olds_cp_points for every
point it holds, and the first team to olds_cp_goal wins the round
(rg_round_end). Scores and owners carry over between rounds until a team
reaches the goal; then everything starts over.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer

Install
  1. Compile scripting/olds_cpoints.sma and copy olds_cpoints.amxx to
     addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  2. Copy data/lang/olds_cpoints.txt to addons/amxmodx/data/lang/.
  3. Create addons/amxmodx/configs/flags/<map>.ini for each map (see
     configs/flags/_example.ini).

Points (configs/flags/<map>.ini), one per line:
    "Point name"  x y z  [radius 32-512, default 128]
  Bad lines are logged and skipped. A map without the file, or without a
  valid point, has the plugin off, with one log line.

Settings (addons/amxmodx/configs/plugins/olds_cpoints.cfg, created on first run)
  olds_cp_capture 10    seconds alone on a point to capture it (2-120)
  olds_cp_interval 5    seconds between score ticks (1-60)
  olds_cp_points 1      score per held point each tick (1-100)
  olds_cp_goal 200      score that wins (10-10000)

Command: amx_cp [reload | reset] (ADMIN_MAP): points, owners and scores;
reload reads the file again, reset clears owners and scores.

How it works
  - A repeating task every half second checks the living players near each
    point (get_players, get_distance_f). One team only: its capture
    progress grows. Both teams: contested, the bar freezes. Nobody: the
    progress slowly drains. Capture progress never carries into a new round.
  - Rings: TE_BEAMCYLINDER with the stock sprites/laserbeam.spr, red for
    terrorists, blue for counter-terrorists, white for nobody. A capture
    plays the stock ambience/alarm1.wav for everyone.
  - HUD: the score for everyone, and the capture bar for players on a point.

No downloads: stock sprite and sound only.

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.