AWP One-Shot Kill 1.0.0 (olds.ro)
=================================
A bullet from the AWP kills on any body hit, not only on the head or the
chest. A cvar limits it to some hit groups, armor can be ignored or not, and
the Scout can be made to work the same way.
- olds_ao_groups chooses where one bullet kills, as a sum: head 1,
chest 2, stomach 4, arms 8, legs 16 (31 or more = everywhere; the
default 255 is everywhere). 3 = head and chest only. Other hit groups
take the game's normal damage.
- olds_ao_armor 1: armor does not save the victim. 0: the game's armor
reduction still applies to the lethal hit, so an armored victim can
survive a chest or stomach hit.
- olds_ao_scout 1: the Scout kills in one hit too.
- Only bullets count, fired by a player holding the AWP (or the Scout).
Grenades, the knife and other guns are not touched.
- A bullet through a wall still kills when the hit group is allowed.
- The game still decides whether a hit may hurt at all: with friendly
fire off a teammate takes no damage, as before.
- 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 fakemeta module (enabled by
default)
Install
1. Compile scripting/olds_awponeshot.sma and copy olds_awponeshot.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_awponeshot.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_awponeshot.amxx to addons/amxmodx/configs/plugins.ini.
Settings (addons/amxmodx/configs/plugins/olds_awponeshot.cfg)
olds_ao_groups 255 hit groups where one bullet kills: head 1,
chest 2, stomach 4, arms 8, legs 16, added up
olds_ao_armor 1 1 = armor does not save the victim
olds_ao_scout 0 1 = the Scout kills in one hit too
Commands
None.
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-0094. Licence: GNU General Public License v3.0 or later
(GPL-3.0-or-later).