Skip to content
View in the app

A better way to browse. Learn more.

Learn more

c4-death-icon/README.txt

README.txt
56 lines · 2.4 KB · Text
Raw
C4 Death Icon 1.0.0 (olds.ro)
=============================

When the bomb's explosion kills someone, the kill feed shows the C4 icon
instead of the grenade icon or a skull. Optionally the planter gets the
frag for each enemy the bomb kills.

  - Only a death caused by the bomb's own blast counts. A grenade, a fall
    or a bullet in the same moment keeps its own icon.
  - olds_ci_credit 1: the planter gets +1 frag for each enemy the bomb
    kills (the scoreboard updates at once) and is shown as the killer in
    the feed. No frag for his own death or for a teammate's. If the game
    already names the planter as the killer, no extra frag is given.
  - Bots and humans are treated the same.
  - The C4 icon is part of every Counter-Strike client (sprites/hud.txt);
    nothing has to be downloaded.
  - The plugin shows no text and has no language file.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer, with the hamsandwich module (enabled by
    default)

Install
  1. Compile scripting/olds_c4icon.sma and copy olds_c4icon.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 configs/plugins/olds_c4icon.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.)
  3. Add olds_c4icon.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_c4icon.cfg)
  olds_ci_enable 1         1 = bomb deaths show the C4 icon
  olds_ci_credit 1         1 = the planter gets +1 frag for each enemy the
                           bomb kills and is shown as the killer

Commands
  None.

How it works
  The moment of the blast (ReAPI RG_CGrenade_ExplodeBomb) and what last
  hurt each player (RG_CBasePlayer_TakeDamage) are kept. When the DeathMsg
  for a player killed by the bomb within 0.1 s of the blast goes out, its
  weapon is changed to "c4". The frag is added right after the death with
  Ham_AddPoints.

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