Skip to content
View in the app

A better way to browse. Learn more.

Learn more

hostage-down-alert/README.txt

README.txt
40 lines · 1.8 KB · Text
Raw
Hostage Down Alert 1.0.0 (olds.ro)
==================================

Hostage Rescue: when a hostage dies, the chosen team hears the "hostage down"
radio and reads a chat line with the hostage's number, who killed it and how
many hostages are left.

Requirements
  - AMX Mod X 1.10.0.5490 or newer, ReAPI, fakemeta, hamsandwich

Install
  1. Compile scripting/olds_hdown.sma and copy olds_hdown.amxx to
     addons/amxmodx/plugins/.
  2. Copy data/lang/olds_hdown.txt to addons/amxmodx/data/lang/.
  No downloads: the radio is the stock radio/hosdown.wav (%!MRAD_HOSDOWN).

Settings (addons/amxmodx/configs/plugins/olds_hdown.cfg, made on first run)
  olds_hdown_radio 1   play the hostage down radio
  olds_hdown_name 1    name the killer (0 = only "Hostage #n is down.")
  olds_hdown_team 3    who is told: 1 counter-terrorists, 2 terrorists, 3 both

Example line
  [Hostage] Hostage #2 was killed by Alpha. 3 hostage(s) left.
  [Hostage] Hostage #4 was killed by the world. No hostages left.

Admins
  amx_hdown_last (ADMIN_KICK)   the last alert and who received it; every
                                alert is also written to the AMX Mod X log

How it works
  - ReAPI has no hostage death hook, so a death is seen in Ham_TakeDamage
    on hostage_entity (its health falls to 0) and in Ham_Killed, once per
    hostage per round.
  - The killer is the attacking player, or the player who owns the grenade
    or entity that did the damage. Falls and map damage (worldspawn,
    trigger_hurt, doors, trains) give "the world"; anything else gives
    "an unknown killer". The name is shown in the killer's team colour.
  - Hostages are numbered in map order; those left are the living ones.
  - Only living players of the chosen teams are told: dead players and
    spectators are skipped.

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.