Skip to content
View in the app

A better way to browse. Learn more.

Learn more

defuse-margin/README.txt

README.txt
49 lines · 1.8 KB · Text
Raw
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
  1. 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/.
  2. Copy data/lang/olds_defusemargin.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_defusemargin.cfg to addons/amxmodx/configs/plugins/.
  4. 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.

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.