Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Control Points Capture Mode

Featured Replies

  • Administrator

Capture points placed around a map: standing near a point converts it for your team, and held points add score each interval until a team reaches the goal.

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

  • Compile scripting/olds_cpoints.sma and copy olds_cpoints.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_cpoints.txt to addons/amxmodx/data/lang/.
  • 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.

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_cpoints.sma, test/cp_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-0917).

Control Points Capture Mode
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6.4 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 441 lines
/*
 * Control Points Capture Mode (olds.ro workshop card LIB-0917)
 *
 * 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
Show all 441 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.