Block Fire-in-the-Hole Radio 1.0.0 (olds.ro)
============================================
When a player throws a HE grenade, a flashbang or a smoke grenade, the game
makes him shout "Fire in the hole!" on the team radio: a voice line and a
chat line for every teammate. This plugin drops both, for players and bots
alike. Every other radio message (Go go go, Roger that, Need backup, ...)
still plays as normal.
- Works for all three grenades.
- With olds_nf_admins_hear 1, admins (any access flag besides the default
"z") still hear and see the grenade radio; everyone else does not.
- olds_nf_enable 0 turns the plugin off without unloading it.
- The plugin shows no text and has no language file.
Requirements
- AMX Mod X 1.10.0.5490 or newer
- Counter-Strike 1.6 (written for ReHLDS, ReGameDLL_CS and Metamod-r; it
uses no ReAPI function and also works with the stock game)
Install
1. Compile scripting/olds_nofireinhole.sma and copy olds_nofireinhole.amxx
to addons/amxmodx/plugins/.
2. Copy configs/plugins/olds_nofireinhole.cfg to
addons/amxmodx/configs/plugins/ and change the values you want.
(If the file is missing, the plugin writes one with the defaults the
first time it starts.)
3. Add olds_nofireinhole.amxx to addons/amxmodx/configs/plugins.ini.
Settings (addons/amxmodx/configs/plugins/olds_nofireinhole.cfg)
olds_nf_enable 1 1 = drop the Fire in the hole radio (voice and
text); 0 = the game's normal radio
olds_nf_admins_hear 0 1 = admins still hear and see it
Commands
None.
How it works
The game sends the radio as two messages to each teammate: a TextMsg
chat line (#Game_radio ... #Fire_in_the_hole) and a SendAudio voice line
(%!MRAD_FIREINHOLE). The plugin hooks both with register_message and
blocks only those two, so nothing else changes.
Tested on
ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149,
AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card
LIB-0105. Licence: GNU General Public License v3.0 or later
(GPL-3.0-or-later).