Skip to content
View in the app

A better way to browse. Learn more.

Learn more

bomb-distance-display/README.txt

README.txt
59 lines · 2.5 KB · Text
Raw
Bomb Distance Display 1.0.0 (olds.ro)
=====================================

Once the bomb is planted, a HUD line shows each player how far away it is,
in meters or in game units. Counter-Terrorists also get a direction: ahead,
to the left or to the right. Each player can switch the line off and on
with /bombdist.

  - The line is updated every 0.5 s from the plant until the bomb is
    defused, explodes or the round restarts; then it is cleared for
    everyone at once.
  - olds_bdist_all 0: only Counter-Terrorists see it. 1: Terrorists see the
    distance too (without the direction).
  - olds_bdist_units 1 shows meters, 0 game units. One meter is 39.37 game
    units (one unit is one inch).
  - Direction: "(ahead)" when the bomb is within 30 degrees of where the
    player looks, otherwise "<< (left)" or "(right) >>", the side to turn
    to.
  - A dead player or spectator watching someone (first person or chase
    camera) sees the line of the player he watches.
  - /bombdist is remembered until the player leaves the server.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer

Install
  1. Compile scripting/olds_bombdist.sma and copy olds_bombdist.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_bombdist.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_bombdist.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_bombdist.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_bombdist.cfg)
  olds_bdist_units 1       1 = meters; 0 = game units
  olds_bdist_all 0         0 = only Counter-Terrorists see the line;
                           1 = Terrorists too

Commands
  say /bombdist, say_team /bombdist   switch the line off or on for
                                      yourself

Texts
  HUD line: "Bomb: 40 m  << (left)". The texts are in
  data/lang/olds_bombdist.txt and can be translated there.

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-0111. 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.