Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Defuse Margin

Featured Replies

  • Administrator

Tell the defuser how much time was left on a successful defuse.

Defuse Margin 1.0.0 (olds.ro)

After a successful defuse, the defuser sees how much time was left on the bomb as a DHUD line:

Defused with 4.3 s to spare

With olds_margin_all 1 the rest of the defuser's team sees it too:

Alice defused the bomb with 4.3 s to spare

What counts

  • Only a defuse that really ends with the bomb defused. An attempt that is interrupted (letting go of +use, dying, the explosion, a new round) shows nothing, so after a restarted attempt only the final defuse shows a margin.
  • If the bomb explodes in the same moment the defuse would finish, nothing is shown.
  • The time is rounded down to a tenth of a second, so it never claims more time than there was.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10 or newer
  • Tested on AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReGameDLL_CS 5.30.0.814, ReHLDS 3.15.0.896

Install

  • Compile scripting/olds_defusemargin.sma with amxxpc 1.10 and copy olds_defusemargin.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and reapi_*.inc) in addons/amxmodx/scripting/include/.
  • Copy data/lang/olds_defusemargin.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_defusemargin.cfg to addons/amxmodx/configs/plugins/.
  • Add olds_defusemargin.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_defusemargin.cfg)

  olds_margin_all 0   0 = only the defuser sees the margin,
                      1 = the defuser's teammates see it too

Commands None.

No sounds, models or sprites are added. Texts are in data/lang/olds_defusemargin.txt (English).

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card AMX-020. Licence: GPL-3.0-or-later.

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_defusemargin.sma, test/olds_defusemargin_testhelper.sma

Idea: olds.ro workshop library · Plugin: alexit · 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 (AMX-020).

Defuse Margin
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.5 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 110 lines
/*
 * Defuse Margin (olds.ro workshop card AMX-020)
 *
 * After a successful defuse, the defuser sees how much time was left on the
 * bomb, for example "Defused with 4.3 s to spare", as a DHUD line. With
 * olds_margin_all 1 the rest of the defuser's team sees it too.
 *
Show all 110 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.