Raised This Month: $150 Target: $400
 37% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
LumiStance
SourceMod 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:
    15 
    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 - 533 views - 6.5 KB)
    File Type: smx sm_shootknife.smx (6.5 KB, 508 views)
    __________________

    Last edited by LumiStance; 12-24-2011 at 18:42. Reason: Release v0.4
    LumiStance is offline
    LumiStance
    SourceMod Donor
    Join Date: Jan 2009
    Location: Northern California
    Old 08-29-2010 , 17:06   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #2

    Updated to v0.3
    Modify code to ignore non gun damage
    Add code to forgive shots at round start
    __________________
    LumiStance is offline
    tgn
    Junior Member
    Join Date: Aug 2010
    Old 01-24-2011 , 13:37   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #3

    if the killer shoot in two and kill one, and then try to kill each other on the knife, he will be killed?
    tgn is offline
    LumiStance
    SourceMod Donor
    Join Date: Jan 2009
    Location: Northern California
    Old 01-28-2011 , 23:39   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #4

    Quote:
    Originally Posted by tgn View Post
    if the killer shoot in two and kill one, and then try to kill each other on the knife, he will be killed?
    That is what the description states.
    __________________
    LumiStance is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 01-29-2011 , 13:33   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #5

    I've not yet tested this, going to do that in a few hours, but kudos for making this! People who do this on our servers piss me off beyond reason.

    Will let you know if there's any trouble.
    Black Haze is offline
    tgn
    Junior Member
    Join Date: Aug 2010
    Old 02-02-2011 , 13:20   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #6

    Quote:
    Originally Posted by LumiStance View Post
    That is what the description states.
    then does not work with knife elite...
    tgn is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 02-02-2011 , 17:15   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #7

    Quote:
    Originally Posted by tgn View Post
    then does not work with knife elite...
    Yet it does...

    You sure you installed it correctly, high enough source- and metamod version, sdkhooks?

    Does it show up when you do a plugin list?
    Black Haze is offline
    LumiStance
    SourceMod Donor
    Join Date: Jan 2009
    Location: Northern California
    Old 02-02-2011 , 18:49   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #8

    Quote:
    Originally Posted by Black Haze View Post
    Yet it does...
    You sure you installed it correctly, high enough source- and metamod version, sdkhooks?
    Does it show up when you do a plugin list?
    The plugin actually works to well. GunGame has knife elite, where you're weapon is stripped on level up, but you don't get the next weapon until you respawn.

    Imagine, you've just shot a bunch of players, leveled up, and now are left with just the knife. This corner case also applies to reaching the knife level.

    I will be adding an exception for players that only have knife.
    __________________
    LumiStance is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 02-02-2011 , 19:13   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #9

    Quote:
    Originally Posted by LumiStance View Post
    The plugin actually works to well. GunGame has knife elite, where you're weapon is stripped on level up, but you don't get the next weapon until you respawn.

    Imagine, you've just shot a bunch of players, leveled up, and now are left with just the knife. This corner case also applies to reaching the knife level.

    I will be adding an exception for players that only have knife.
    Not run into that yet, but I can imagine how that'd be a problem :p

    Anyways, thanks for making this!
    Black Haze is offline
    tgn
    Junior Member
    Join Date: Aug 2010
    Old 02-02-2011 , 19:34   Re: [CSS] Don't Shoot Knife - works on GunGame
    Reply With Quote #10

    Quote:
    Originally Posted by Black Haze View Post
    Yet it does...

    You sure you installed it correctly, high enough source- and metamod version, sdkhooks?

    Does it show up when you do a plugin list?
    you do not understand.

    the plugin is correctly installed and working, just not good to use when the knife elite is on...
    tgn is offline
    Reply


    Thread Tools
    Display Modes

    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 14:55.


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