Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Hostage Down Alert

Featured Replies

  • Administrator

When a hostage dies, a radio message and a chat line tell the CTs which hostage and who killed it.

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

  • Compile scripting/olds_hdown.sma and copy olds_hdown.amxx to addons/amxmodx/plugins/.
  • 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.

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_hdown.sma, test/hd_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-0864).

Hostage Down Alert
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 231 lines
/*
 * Hostage Down Alert (olds.ro workshop card LIB-0864)
 *
 * 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.
 *
Show all 231 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.