Skip to content
View in the app

A better way to browse. Learn more.

Learn more

enemy-health-display/README.txt

README.txt
56 lines · 2.5 KB · Text
Raw
Enemy Health Display 1.0.0 (olds.ro)
====================================

While you aim at another living player, a HUD line under the crosshair
shows his name, health and armor. A cvar can limit it to teammates, and each
player can switch it off and on with /hpinfo.

  - Only a living player sees the line, and only for a living target that
    his aim really hits: a straight trace from his eyes, so walls block it
    and smoke does not.
  - The line is red for an enemy and green for a teammate (everyone is an
    enemy with mp_freeforall 1).
  - olds_eh_enemies 0 shows teammates only; 1 shows everyone.
  - A target farther than olds_eh_range (2000 units) is not shown.
  - When the aim leaves the target, or the target goes out of range or
    dies, the line is cleared at the next refresh (0.2 s). It appears
    within 0.3 s of aiming at someone.
  - /hpinfo 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_hpinfo.sma and copy olds_hpinfo.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_hpinfo.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_hpinfo.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_hpinfo.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_hpinfo.cfg)
  olds_eh_enemies 1        1 = enemies and teammates are shown;
                           0 = teammates only
  olds_eh_range 2000       players farther away than this (units) are not
                           shown

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

Texts
  HUD line: "Bravo  -  Health: 76  -  Armor: 100". Chat: "[HP Info] The
  health line is off. Type /hpinfo to turn it on." The texts are in
  data/lang/olds_hpinfo.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-0002. 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.