Early Kill HP Bonus 1.0.0 (olds.ro)
===================================
Kills made in the first seconds of a round give the killer extra health,
and a headshot gives more. This rewards an aggressive early push.
- The window opens when the freeze time ends and lasts olds_rush_window
seconds (15 by default). A kill during the freeze time gives nothing.
- Each early kill gives olds_rush_hp health (25), multiplied by
olds_rush_hsmult (2) for a headshot.
- Health never goes above olds_rush_max (150). A player who already has
more keeps it.
- Only kills on an enemy by a living killer count: no bonus for team
kills, suicides or deaths caused by the map.
- The killer sees a chat line with the health gained and hears a short
medkit sound.
- With mp_freeforall 1 (ReGameDLL_CS) every other player is an enemy.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer, with the fun module (enabled by
default)
Install
1. Compile scripting/olds_rushhp.sma and copy olds_rushhp.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_rushhp.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_rushhp.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_rushhp.amxx to addons/amxmodx/configs/plugins.ini.
Settings (addons/amxmodx/configs/plugins/olds_rushhp.cfg)
olds_rush_window 15.0 seconds after the freeze time during which a kill
gives the bonus
olds_rush_hp 25 health given for an early kill
olds_rush_hsmult 2 the bonus is multiplied by this for a headshot
(1 = no extra)
olds_rush_max 150 health never goes above this (1 - 255)
Commands
None.
Chat text
"[Early Kill] Early kill: +25 HP (now 125)." The text is in
data/lang/olds_rushhp.txt and can be translated there. The sound is the
game's own items/smallmedkit1.wav, so nothing is downloaded.
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-0243. Licence: GNU General Public License v3.0 or later
(GPL-3.0-or-later).