Description:
Suicides a player who shoots, then knifes another player, before either player has died. Suicide is accentuated with a lightning bolt explosion and thunder to get the point across. Player will then see Centered Hint text stating "Dont' shoot knife!".
The victim will not receive any knife damage if the attacker had shot them. Grenades attacks are ignored. Players with no gun are not smited.
On Gun Game, this prevents players from getting easy upgrades when knifepro is enabled. In this case, the attacker will level down.
Servers using this mod:
GameTracker sm_shootknife_version
Installation Notice:
This plugin requires
sdkhooks. I have attached a precompiled smx.
The forum compiler will not work.
Download SDK Hooks here:
[EXTENSION] SDK Hooks 2.0 (Updated 2011-04/15)
Background:
This pluging was inspired by complaints on I.P.S.
Admin Smite by Hipster -
http://forums.alliedmods.net/showthread.php?t=118534
Files:
cstrike/addons/sourcemod/plugins/sm_shootknife.smx
Changelog:
0.4 <-> 2011 - 02/03 LumiStance
Modify code to only smite players with guns
0.3 <-> 2010 - 08/29 LumiStance
Modify code to ignore non gun damage
Add code to forgive shots at round start
0.2 <-> 2010 - 08/27 LumiStance
Add PrintToChat's to inform all players about plugin
0.1 <-> 2010 - 08/26 LumiStance
Add hook for OnTakeDamage - Note damagetype is not useful
Add Smite
Debug