Simple TK Manager v1.0d Updated 5/27/2011
3 Attachment(s)
Simple TK Manager
By Lebson506th Description This plugin is just a simple solution to an annoying problem: Team killers. All this plugin does is count how many times a person TKs and is not forgiven for the TK. When the TK limit is reached, it kicks or bans the player for a set amount of time. There is also a reflect damage ability where it will reflect all team damage back onto the attacker. Note: Reflect damage does not block headshots and/or shots that kill the victim instantly. In these cases both the victim and the attacker will die. Known Issues
Code:
sm_stk_enabled (default: 1) - Enables(1) or disables(0) the plugin.
Code:
5/27/2011 - v1.0d |
Re: Simple TK Manager v0.1 Updated 8/22/2008
I will try on insurgency server. Can you add support in the future for client's to decide to forgive or not forgive attacker, or team killer.
|
Re: Simple TK Manager v0.1 Updated 8/22/2008
Quote:
|
Re: Simple TK Manager v0.1 Updated 8/22/2008
Quote:
EDIT: it says failed to compile. |
Re: Simple TK Manager v0.2 Updated 8/22/2008
Yea, i know. That's why i removed it.
Edit: Fixed. I'm getting a bunch of tag mismatch warnings when i'm getting one of my convars as an int. I don't know why... Anyway... it compiles so try it out. |
Re: Simple TK Manager v0.2 Updated 8/22/2008
Ok it seems to only work once when I team killed someone this is what it said:
*** [STK] FPSBanana Dingoland Insurgency did not forgive FPSBanana Dingoland Insurgency for tking. Thats the name of our server. The person I team killed said a menu came up and it said Forgive and blank which was Not Forgive. This is what I got from a error log. L 08/22/2008 - 12:20:04: Error log file session closed. L 08/22/2008 - 22:29:34: SourceMod error session started L 08/22/2008 - 22:29:34: Info (map "ins_karkar") (file "errors_20080822.log") L 08/22/2008 - 22:29:35: [SM] Native "GetClientName" reported: Client index -3 is invalid L 08/22/2008 - 22:29:35: [SM] Displaying call stack trace for plugin "simpletk.smx": L 08/22/2008 - 22:29:35: [SM] [0] Line 168, /home/groups/alliedmodders/forums/files/3/9/5/3/8/30532.attach::AdminMenuHandler() |
Re: Simple TK Manager v0.2 Updated 8/22/2008
I'll test this tomorrow morning on my DOD:S OB serevr and provide feedback.
This looks fantastic, and just what I was looking for !! |
Re: Simple TK Manager v0.2 Updated 8/22/2008
Dude, I just read the top and I got a "shout out" !!
Very cool, but you are the one who deserves the props !! <thumbs up man> |
Re: Simple TK Manager v0.2 Updated 8/22/2008
Heres a screen shot from insurgency option 2 doesn't show up.
http://i53.photobucket.com/albums/g7...buhriz0000.jpg And for a few suggestions for later releases is to add cvar's to plugin config so admin can choose what type of punishments are enforced on the team killer. EDIT: Sometimes when someone is team killed the plugin will say the client names, but sometimes it will say the server name example below. *** [STK] LOLOL did not forgive Sgt-Mess for tking. But other times it only said : *** [STK] FPSBanana Dingoland Insurgency did not forgive FPSBanana Dingoland Insurgency for tking. |
Re: Simple TK Manager v0.2 Updated 8/22/2008
@Lebson506th
replace line 59: Code:
new Hnadle:g_CvarMessage;Code:
new Handle:g_CvarMessage;replace line 155: Code:
Format(yes, 127, "%t", "No");Code:
Format(no, 127, "%t", "No"); |
Re: Simple TK Manager v0.2 Updated 8/22/2008
Found the Handle thing this morning.
And thanks for the 2nd part. That's what i get for coding when i'm tired. Should be fixed in .3 |
Re: Simple TK Manager v0.3 Updated 8/23/2008
OK we tested it this AM, and it is a great start.
Comments bugs, you weed out what is important. When I was an Admin TKing in spawn, RD did not work properly. When in spawn you can RD yourself only down to about 20% then you never go lower (not a big deal really) Option 3 for players and admins to see forgive selection, only worked for Admins and when option 3 was selected nobody was kicked for any number of TKs. I changed it to option 1 and then everyone saw menu and then TKs were kicked. Once TK limit is reached and player is kicked, after he reconnects he is kicked next time for one tk, not the number designated. And before we could test further it crashed my Win2K3 server. Please tell me where to send any log files and which ones. I enabled the debug option about 1/2 way through our testing and it was in debug mode when it crashed. |
Re: Simple TK Manager v0.3 Updated 8/23/2008
You can post it here.
I'll work on some of those bugs. Not going below a certain point is because i can't force a player to suicide in spawn in DoD:S. I'm not sure what will happen if i set thier health to 0. |
Re: Simple TK Manager v0.3 Updated 8/23/2008
np on the spawn health thingy..
Exactly what log files do I need to post, and where are they on my server??? WRT the mdmp files, I'll have to post a few because I get a mdmp file generated every time I manually shut down my server... Also I got an error message dialog box on the server when the server crashed, and I took a ss of that if it is helpful. |
Re: Simple TK Manager v0.3 Updated 8/23/2008
Perhaps we can have a centerprint or menu area message when a guy kills himself because he TK'd someone else ? Some of the new folks connecting this AM seemed confused about why they were dying.
And also perhaps there can be chat or menu area messages that say you have 1 TK, 2 more and you will be kicked, and so forth ?? |
Re: Simple TK Manager v0.3 Updated 8/23/2008
Yea, i can add that as well.
That screenshot will probably help as well as your error logs from addons/sourcemod/logs |
Re: Simple TK Manager v0.3 Updated 8/23/2008
The menu doesn't always pop up when team killed, both yes and no for fogive show up now.
Here are some errors: L 08/23/2008 - 15:58:17: [SM] Native "GetClientName" reported: Client index -3 is invalid L 08/23/2008 - 15:58:17: [SM] Displaying call stack trace for plugin "simpletk.smx": L 08/23/2008 - 15:58:17: [SM] [0] Line 173, /home/groups/alliedmodders/forums/files/3/9/5/3/8/30545.attach::AdminMenuHandler() L 08/23/2008 - 15:58:28: [SM] Native "GetUserAdmin" reported: Client 3 is not connected L 08/23/2008 - 15:58:28: [SM] Displaying call stack trace for plugin "simpletk.smx": L 08/23/2008 - 15:58:28: [SM] [0] Line 190, /home/groups/alliedmodders/forums/files/3/9/5/3/8/30545.attach::AdminMenuHandler() Right now I have sm_stk_messagetype set the 3 and it doesn't show people involved or admins. I will try other types and let you know what happens with them. |
Re: Simple TK Manager v0.3 Updated 8/23/2008
Yea, there was a problem with that.
.4 should fix that. I did a bunch of testing and it seems ok, but let me know. |
Re: Simple TK Manager v0.3 Updated 8/23/2008
Looking forward to .4. we can test it tomorrow AM !!
|
Re: Simple TK Manager v0.3 Updated 8/23/2008
If you want to wait that long, be my guest. I'm releasing it now =)
8/23/2008 - v0.4
|
Re: Simple TK Manager v0.3 Updated 8/23/2008
Quote:
Many thanks, I'm also assuming you believe you found the cause of the server crashing and squashed that as well. We will be testing this out tomorrow morning on my server, everyone feel free to join us on "Cain's Lair" |
Re: Simple TK Manager v0.4 Updated 8/23/2008
Yea....... that too. =)
|
Re: Simple TK Manager v0.4 Updated 8/23/2008
Its working now menu and chat messages, although it looks like the menu still doesn't pop up all the time, but more often then last release.
The server did crash once I didn't get any error logs this time. |
Re: Simple TK Manager v0.4 Updated 8/23/2008
I'm running it on both of my servers with no problems at all =/
Can you figure out what is happening when the menu doesn't show? Edit: There is an "Array out of bounds" error in the admin menu handler that is causing the crashes. I don't know what is going wrong, but i am looking into it. |
Re: Simple TK Manager v0.4 Updated 8/23/2008
Note all my testing is being done on a Linux Insurgency server.
This is the newest error I got from it: L 08/24/2008 - 03:17:43: [SM] Plugin encountered error 15: Array index is out of bounds L 08/24/2008 - 03:17:43: [SM] Displaying call stack trace for plugin "simpletk.smx": L 08/24/2008 - 03:17:43: [SM] [0] Line 285, /home/groups/alliedmodders/forums/files/3/9/5/3/8/30563.attach::AdminMenuHandler() The tk menu seems to only pop up once then after that it doesn't pop up any more. |
Re: Simple TK Manager v0.4 Updated 8/23/2008
Any success fixing the server crashing yet ?????
|
Re: Simple TK Manager v0.4 Updated 8/23/2008
Yea, i know.... that's the issue i'm talking about.
e-mailed you Cain |
Re: Simple TK Manager v0.4 Updated 8/23/2008
|
Re: Simple TK Manager v0.4 Updated 8/23/2008
Thank you.
|
Re: Simple TK Manager v0.4 Updated 8/23/2008
0.5 is well on its way fixing a lot of things, but there is a crashing issue i need to deal with before it is released.
If anyone would like to look through the newest code and try to help me fix this halting bug, send me a PM and i'll send you a link to the code. |
Re: Simple TK Manager v0.4 Updated 8/23/2008
Sounds like a good plugin, would it be possible to autoslay the player when TK just after spawn.
Lets say if someone TK/TD within 5 seconds after spawn it is probable someone that we dont want on the server and shuld be slayed. And if it happens several times the idiot should be kicked off the server and maybe even banned. Worth looking into? |
Re: Simple TK Manager v0.4 Updated 8/23/2008
Yea, i'll look into adding that after i fix this crashing issue =)
|
Re: Simple TK Manager v0.4 Updated 8/23/2008
Soooo yea.
Thanks to a LOT of people for helping out with this 8/24/2008 - v0.5
|
Re: Simple TK Manager v0.5 Updated 8/24/2008
Had the .smx uploaded instead of the .sp, sorry.
Changed that =) |
Re: Simple TK Manager v0.5 Updated 8/24/2008
Every time I get tk'd the menu never pops up, and says I automaticaly forgave the tk'er.
However it does seem to come up for others. I was the first in the server. |
Re: Simple TK Manager v0.5 Updated 8/24/2008
Interesting...
Let me change a couple things around to make it more consistent. 8/25/2008 - v0.5a
|
Re: Simple TK Manager v0.5a Updated 8/25/2008
To point out, while it seems a nice idea to have a "simple tk manager" it's actually quite impossible in terms of team-attack based stuff.
Here's why: The event player_hurt is NOT default-ly coded into some mods. It is in most Valve games, and the majority of mods, but it is NOT coded by default, it is up to mod developers to code this event into the game and pass it's information to the server/game. THIS being the case, team-attack management may not be possible with some mods/games. This is exactly WHY I removed Team Attack management and mirror damage from ATAC's core, running just atac.smx from my ATAC package (and nothing else of the ATAC plugins) will provide you with nothing but the most basic karma and TK management. So basically almost identical functionality to this plugin, but no mirror damage or team attack management. This is also why I split ATAC up into a modular set up to allow people to run individual portions of it. How do I know player_hurt isn't by default coded into the base source code? Because in CSS and DoD: Source's "modevents.res" file is where player_hurt is, NOT in HL2's GameEvents.res (where it would be if it was coded directly into HL2) On a side note however, I do respect your work in providing an alternative to my fairly complex plugin. Especially since I still have it placed under un-approved while I'm working on 2.5.0 to become stable. |
Re: Simple TK Manager v0.5a Updated 8/25/2008
That's why Team Reflect and Spawn Slaying are optional.
The simple part of this is the # to kick, forgive don't forgive part. As you respect my alternative, I respect all the work you have put into ATAC so far. |
Re: Simple TK Manager v0.5a Updated 8/25/2008
I only made the post to point out to others that may be attempting to utilize that functionality that it may not work in the mod they may be attempting to use it in.
|
Re: Simple TK Manager v0.5a Updated 8/25/2008
Quote:
|
| All times are GMT -4. The time now is 21:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.