Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Blinded Kill Bonus

Featured Replies

  • Administrator

A kill on a flashbang-blinded enemy awards extra money or score.

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

  • 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.
  • Copy data/lang/olds_blindbonus.txt to addons/amxmodx/data/lang/.
  • 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.)
  • 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).

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_blindbonus.sma, test/lib0104_probe.sma

Idea: olds.ro workshop library · Plugin: alexit · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0104).

Blinded Kill Bonus
v1.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.8 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 304 lines
/*
 * Blinded Kill Bonus (olds.ro workshop card LIB-0104)
 *
 * 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.
 *
 * Commands: none.
Show all 304 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.