AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS] Don't Shoot Knife - works on GunGame (https://forums.alliedmods.net/showthread.php?t=136507)

LumiStance 08-27-2010 03:07

[CSS] Don't Shoot Knife - works on GunGame
 
2 Attachment(s)
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

LumiStance 08-29-2010 17:06

Re: [CSS] Don't Shoot Knife - works on GunGame
 
Updated to v0.3
Modify code to ignore non gun damage
Add code to forgive shots at round start

tgn 01-24-2011 13:37

Re: [CSS] Don't Shoot Knife - works on GunGame
 
if the killer shoot in two and kill one, and then try to kill each other on the knife, he will be killed?

LumiStance 01-28-2011 23:39

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

Originally Posted by tgn (Post 1398434)
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.

Black Haze 01-29-2011 13:33

Re: [CSS] Don't Shoot Knife - works on GunGame
 
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.

tgn 02-02-2011 13:20

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

Originally Posted by LumiStance (Post 1402023)
That is what the description states.

then does not work with knife elite...

Black Haze 02-02-2011 17:15

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

Originally Posted by tgn (Post 1405522)
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?

LumiStance 02-02-2011 18:49

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

Originally Posted by Black Haze (Post 1405698)
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.

Black Haze 02-02-2011 19:13

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

Originally Posted by LumiStance (Post 1405770)
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!

tgn 02-02-2011 19:34

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

Originally Posted by Black Haze (Post 1405698)
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...


All times are GMT -4. The time now is 10:02.

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