Skip to content
View in the app

A better way to browse. Learn more.

Learn more

alternate-hostage-rescue/README.txt

README.txt
48 lines · 2.2 KB · Text
Raw
Alternate Hostage Rescue 1.0.0 (olds.ro)
========================================

Replaces the normal hostage rescue on maps that have a points file:

  mode 1  marked points: a hostage counts as rescued when it stands within a
          point's radius with a living counter-terrorist escorting it (within
          200 units). The escort is paid olds_althost_reward, once per
          hostage. Every surviving hostage rescued (at least one): the CTs win.
  mode 2  defend timer: keep at least one hostage alive for olds_althost_time
          seconds after freeze time: the CTs win and every living CT is paid
          olds_althost_reward.

In both modes, every hostage dead with none rescued: the terrorists win. The
map's own rescue zones are switched off on those maps, so walking a hostage
into one counts for nothing. Eliminations and the round timer work as usual.

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

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

Points (configs/hostpoints/<map>.ini), one per line:
    "Point name"  x y z  [radius 32-512, default 96]
  Bad lines are logged and skipped. A map without the file, or without a
  valid point, keeps the normal rescue and the plugin does nothing there.

Settings (addons/amxmodx/configs/plugins/olds_althost.cfg, created on first run)
  olds_althost_mode 1       1 = escort to points, 2 = defend timer
  olds_althost_time 90      mode 2: seconds to hold (10-600)
  olds_althost_reward 800   money per rescue (mode 1) or per living CT (mode 2)

Command: amx_althost [reload] (ADMIN_MAP) shows the points, the hostages and
the round so far; reload reads the points file again.

How it works
  - RG_CSGameRules_CheckWinConditions (and a check twice a second) decide
    the round; rg_round_end ends it; rg_add_account pays.
  - Points are shown with a vertical beam (stock sprites/laserbeam.spr) in
    mode 1; a rescue plays the stock radio/rescued.wav.

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.