Raised This Month: $32 Target: $400
 8% 

[CSS] Don't Shoot Knife - works on GunGame


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Plugin ID:
1914
Plugin Version:
0.4
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    13 
    Plugin Description:
    Suicides a player who shoots, then knifes another player, before either player has died.
    Old 08-27-2010 , 03:07   [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_shootknife.sp - 1219 views - 6.5 KB)
    File Type: smx sm_shootknife.smx (6.5 KB, 1254 views)
    __________________

    Last edited by LumiStance; 12-24-2011 at 18:42. Reason: Release v0.4
    LumiStance is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:26.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode