addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.8 KB
No file matches.
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.