Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Blinded Kill Bonus

Plugin
Alexit7656839238Version 1.0: First release.History
addonsVersion 1.0: First release.
README.txtVersion 1.0: First release.
Blinded Kill Bonus 1.0.0 (olds.ro) ================================== A kill on an enemy who is still blinded by a flashbang pays the killer extra money and, if set, extra frags. The killer gets a chat line. - Killing a blinded enemy gives olds_bb_money ($300) and olds_bb_frag extra frags (0 = none); the scoreboard shows the frags at once. - The victim counts as blinded while the white of his flash is at least olds_bb_minalpha (200, on a 0-255 scale): during the whole hold of the flash, then during the part of the fade-out that is still that white. A flashbang seen face on gives 255, one seen from the side or from behind gives 200; a flash weaker than olds_bb_minalpha never counts. - Once the flash has faded below olds_bb_minalpha, a kill pays nothing extra. - Only an enemy kill counts (any player with mp_freeforall 1). Killing a blinded teammate with friendly fire gives nothing. - Any weapon counts: a grenade kill pays the player who threw it. It does not matter who threw the flashbang. - Money never goes above mp_maxmoney (16000 by default); money that is already higher is not lowered. - Bots count as victims and as killers, the same as players. Requirements - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI - AMX Mod X 1.10.0.5490 or newer, with the cstrike and fun modules (enabled by default) Install 1. Compile scripting/olds_blindbonus.sma and copy olds_blindbonus.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_blindbonus.txt to addons/amxmodx/data/lang/. 3. Copy configs/plugins/olds_blindbonus.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_blindbonus.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_blindbonus.cfg) olds_bb_money 300 money for killing a blinded enemy olds_bb_frag 0 extra frags for killing a blinded enemy olds_bb_minalpha 200 how white (0-255) the victim's screen must still be for him to count as blinded; applies to flashes that start after a change Commands None. Chat text "[Blind Kill] You killed a blinded enemy: +$300." The texts are in data/lang/olds_blindbonus.txt and can be translated there. How it works The ScreenFade message the game sends to a flashed player gives the time his blindness ends; the kill hook (RG_CBasePlayer_Killed) checks that the victim is still blind. The game sends no ScreenFade to its own bots, so for them the same values come from ReAPI's RG_PlayerBlind. A later screen fade from another plugin replaces the flash on the player's screen, so it replaces the blind time too. 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-0104, after the idea of "BlindBonus" (amxx.pl). 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.