Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

AFK C4 Handoff

Plugin
Alexit42fec3992cVersion 1.0: First release.History
addonsVersion 1.0: First release.
README.txtVersion 1.0: First release.
AFK C4 Handoff 1.0.0 (olds.ro) ============================== If the bomb carrier stays idle after the freeze time, the bomb is passed to the nearest Terrorist who is active, so the round is not lost to an AFK player. - A player is idle while he presses no key, does not move and does not turn. Counting starts when the freeze time ends. - After olds_afk_time seconds (15) of idling, the bomb goes to the nearest living Terrorist who was active in the last 5 seconds. Both players get a chat line (olds_afk_msg 1) and the server log records it. - If every other Terrorist is dead or idle too, the bomb stays where it is and the plugin keeps looking, once a second, until someone is active. - At most one handoff per round. After it nothing more is done that round: if the new carrier leaves, the bomb drops as usual. - Nothing happens once the bomb is planted or lies on the ground. - No sound is played. (The stock radio sound the card names, radio/bombpl.wav, says "the bomb has been planted", which would mislead the players.) Requirements - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI - AMX Mod X 1.10.0.5490 or newer Install 1. Compile scripting/olds_afkc4.sma and copy olds_afkc4.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release, in addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes. 2. Copy data/lang/olds_afkc4.txt to addons/amxmodx/data/lang/. 3. Copy configs/plugins/olds_afkc4.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.) 4. Add olds_afkc4.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_afkc4.cfg) olds_afk_time 15 seconds the carrier must stay idle after the freeze time before the bomb is passed on (5 to 120) olds_afk_msg 1 1 = the old and the new carrier get a chat line Commands None. Chat text To the idle player: "[Bomb] You were idle, so the bomb went to <name>." To the new carrier: "[Bomb] <name> was idle: you have the bomb now." The texts are in data/lang/olds_afkc4.txt and can be translated there. Log L 12/05/2026 - 20:00:00: [olds_afkc4.amxx] AFK C4 handoff: "<name>" was idle for 15 s, the bomb went to "<name>" 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-0061. Licence: GNU General Public License v3.0 or later (GPL-3.0-or-later).

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.