Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Damage Dealt Display

Plugin
Alexitb198efefeeVersion 1.0: First release.History
addonsVersion 1.0: First release.
README.txtVersion 1.0: First release.
Damage Dealt Display 1.0.0 (olds.ro) ==================================== After you hit an enemy, a small number under the crosshair shows the damage you just dealt. While you keep hitting the same target the number keeps adding up. Each player can switch it off and on with /dmg. - The number is the health the target really lost (after armor). A grenade shows its damage once; the killing bullet shows the total right after the death message. - Hits on the same target less than olds_dd_stack_time (1.5) seconds apart are added together. Hitting another target, or a longer pause, starts a new total. - The colour follows your team: olds_dd_color_ct for a CT, olds_dd_color_t for a Terrorist. - Damage to yourself is not shown. Damage to a teammate is not shown with mp_friendlyfire 0 (unless mp_freeforall 1). - The number is a director HUD text, which cannot be replaced or cleared. So it is redrawn at most every 0.75 s (shown 0.5 s, then a 0.2 s fade); hits in between are added and appear in the next redraw. Two numbers are never drawn on top of each other. - /dmg 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_damagedealt.sma and copy olds_damagedealt.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_damagedealt.txt to addons/amxmodx/data/lang/. 3. Copy configs/plugins/olds_damagedealt.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_damagedealt.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_damagedealt.cfg) olds_dd_stack_time 1.5 hits on the same target closer than this (seconds) are added together olds_dd_color_ct "0 120 255" colour of the number for a CT (red green blue, 0-255) olds_dd_color_t "255 90 60" colour of the number for a Terrorist Commands say /dmg, say_team /dmg switch the number off or on for yourself Chat text "[Damage] Damage numbers are off. Type /dmg to turn them on." The texts are in data/lang/olds_damagedealt.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-0001. 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.