addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.8 KB
No file matches.
Backstab Protection in DM 1.0.0 (olds.ro)
=========================================
For deathmatch servers: a player who faces away from the shooter cannot be
killed by bullets in the back. The lethal hit is stopped and the shooter is
told why.
Requirements
- AMX Mod X 1.10.0.5490 or newer, ReAPI
Install
1. Compile scripting/olds_nobackkill.sma and copy olds_nobackkill.amxx to
addons/amxmodx/plugins/.
2. Copy data/lang/olds_nobackkill.txt to addons/amxmodx/data/lang/.
No downloads: the warning sound is the stock buttons/button10.wav.
Settings (addons/amxmodx/configs/plugins/olds_nobackkill.cfg, made on first run)
olds_nobackkill_angle 100 width in degrees of the back arc, centred
straight behind the victim (100 = 50 degrees to
either side of straight behind)
olds_nobackkill_mode 1 1 = a lethal hit from behind is cancelled
2 = it goes through but leaves the victim at 1 HP
olds_nobackkill_knife 1 1 = knife backstabs are allowed
Admins
amx_nobackkill_status (ADMIN_KICK) health and view of every player and who
stands behind whom
How it works
- RG_CBasePlayer_TakeDamage (pre), bullet damage only (DMG_BULLET; the
knife also deals it). Grenades, falls and the world are never changed.
- The victim's view yaw (v_angle) is compared with the direction from the
victim to the attacker, on the ground plane. The attacker is behind when
the angle between them is more than 180 - width/2 degrees.
- Only a lethal hit (damage at least the victim's health) is touched; any
other hit is normal, so a burst wears the victim down and only the killing
bullet is stopped.
- The shooter sees a HUD line and hears buttons/button10.wav (at most once
a second).