AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Train knife kill (https://forums.alliedmods.net/showthread.php?t=213362)

Pastout 04-13-2013 22:06

Train knife kill
 
2 Attachment(s)
Train Knife Kill

I'll do my best to explain how I came up with this idea.
Okay I was playing in a knife server and heard the term being trained on 35hp. And from what I understand being trained is when players on the same team follow each other back to back just a like a train and kill people. Well I made plugin that detects this and adds a sound and chat message to this and also a deathmessage top right corner with a train symbol. If you have any suggestions please feel free to tell me.





Cvars ( 1=On || 0=Off )
  • train_sound 1 //enables/disables sound
  • train_message 1 //enables/disables message
  • train_killangle 145 // 0-180 [Do Not change unless you know what you are doing.]
    • kill angle helps detect train kill by checking what angle the killer has killed his victim at.
    • The higher the angle the more direct the kill has to be.
train_punishment Default: Blind
  • no //Turns punishment off
  • off //Turns punishment off
  • none //Turns punishment off
  • slay //slays player
  • kill //slays player
  • slap //slaps player
  • smack //slaps player
  • drug //drugs player
  • dope //drugs player
  • blind //blinds player
  • sightless //blinds player
[IMG]http://img818.**************/img818/607/trainkiller.jpg[/IMG]

tonykaram1993 04-14-2013 01:27

Re: Train knife kill
 
PHP Code:

new g_szPlayer[] = "player"
    
RegisterHamHam_Killedg_szPlayer"Ham_CBasePlayer_Killed", .Post false 

Why not simply this?
PHP Code:

RegisterHamHam_Killed"player""Ham_CBasePlayer_Killed", .Post false 


Pastout 04-14-2013 11:43

Re: Train knife kill
 
Quote:

Originally Posted by tonykaram1993 (Post 1932264)
PHP Code:

new g_szPlayer[] = "player"
    
RegisterHamHam_Killedg_szPlayer"Ham_CBasePlayer_Killed", .Post false 

Why not simply this?
PHP Code:

RegisterHamHam_Killed"player""Ham_CBasePlayer_Killed", .Post false 


Cause its just the way I code...

corei7 04-14-2013 13:40

Re: Train knife kill
 
There should be a punishment for training. Like advanced team attack control but not exactly killing a teammate but training them.

Pastout 04-14-2013 13:59

Re: Train knife kill
 
Quote:

Originally Posted by corei7 (Post 1932572)
There should be a punishment for training. Like advanced team attack control but not exactly killing a teammate but training them.

What do you want to see
slay, slap, blind user or other?

corei7 04-14-2013 14:27

Re: Train knife kill
 
Quote:

Originally Posted by Pastout (Post 1932580)
What do you want to see
slay, slap, blind user or other?

Yes, should be..
1.Slap Trainer 5 Times
2.Blind Trainer
3.Drug Trainer
4.Slay Trainer

Pastout 04-14-2013 18:01

Re: Train knife kill
 
Quote:

Originally Posted by corei7 (Post 1932594)
Yes, should be..
1.Slap Trainer 5 Times
2.Blind Trainer
3.Drug Trainer
4.Slay Trainer

Added Check update and cvar for your choice of punishment

corei7 04-14-2013 19:35

Re: Train knife kill
 
Nice! I'll add it.

FanatikSVK 04-15-2013 05:46

Re: Train knife kill
 
Wow nice :)

Serkan Kischa 04-15-2013 11:30

Re: Train knife kill
 
DAMN!! This is awesome!! n1 Pastout like always


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

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