Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › General Help › mp_tkpenalty not working?
5 posts, 2 people · 220 views Thread Rating: ★★★★★
closedmp_tkpenalty not working?
Started by RichNagel on 10-21-2013, 03:29 PM
RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
10-21-2013, 03:29 PM #1

I've just enabled "mp_tkpenalty 6" on a server (as well as "mp_friendlyfire 1", which is required for "mp_tkpenalty"), but it doesn't seem to be working.rnrnAfter a player has team-kills 6 times, there is a logged chat message that says that the player "has team killed too many times. Now being kicked!", but they are NOT kicked.rnrnThere are no other AMXModX plugins that are installed on the server that would conflict with the "mp_tkpenalty" setting, and I've even tried it with my humble "listen" server, but it doesn't seem to work at all.rnrnCan anyone shed any light on this? I'd really like to be able to enable friendly-fire mode, with automatick player kicking after a certain amount of team-kills.

RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
10-22-2013, 12:32 AM #2

Problem discovered (but not solved):rnrnAfter bashing my brain for quite a few hours (and a LOT of testing):rnrnIt seems that the problem is when SturmBot is enabled on the server. There must be something in SturmBot that is blocking the auto-kicking of TKers.rnrnFWIW, it's the Windows version of SturmBot. I THOUGHT that just MAYBE I could hack something in the SturmBot DLL (like I've done with my other fixes to SturmBot (that I've named "version 1.8" ), and currently I'm dressing up version 1.9, but I haven't released yet). But, after several hours of hex-edits, that looks like that fixing the mp_tkpenalty problem is a no-go :(

RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
10-23-2013, 02:57 AM #3

Just a heads-up:rnrnI checked out a few AMXModX teamkill plugins, and I found this one... "Day of Defeat TeamKill Revenge v1.2" ( https://www.dodplugins.net/forums/showthread.php?t=43 ).rnrnThat being said, my goal was to find a plugin that I could configure so that it would function as close to Day of Defeat's standard "mp_tkpenalty" setting, without all of the additional bells and whistles of the plugin.rnrnHere are some custom settings that I came up with for the "Day of Defeat TeamKill Revenge v1.2" plugin, that does just that :) The following is a simple text file that I typed up for my own reference:rnrn-=-=-=-=-=-=-=-=-=-rn"Day of Defeat TeamKill Revenge v1.2" Default Settings (AMXX.cfg)rn-----------------------------------------------------------------rnNote: Refer to the comments contained in the "DoD_TKRevenge.sma" source code for detailed information about these settings.rnrndod_tkrevenge_addmirrordmg 5rndod_tkrevenge_amxbansreason "Excessive TeamKilling"rndod_tkrevenge_ban 1rndod_tkrevenge_bantime 1440rndod_tkrevenge_botaction 0rndod_tkrevenge_displaytacount 1rndod_tkrevenge_displaytkcount 1rndod_tkrevenge_enabled 1rndod_tkrevenge_enableglow 1rndod_tkrevenge_forgiveslap 1rndod_tkrevenge_karmareducetk 25rndod_tkrevenge_killfx 1rndod_tkrevenge_killkarma 1rndod_tkrevenge_meleeslay 1rndod_tkrevenge_meleetkcount 2rndod_tkrevenge_nadetkcount 0rndod_tkrevenge_novictimdeath 1rndod_tkrevenge_obeyimmunity 1rndod_tkrevenge_options 1rndod_tkrevenge_playersaytks 1rndod_tkrevenge_respawnslay 1rndod_tkrevenge_savetks 1rndod_tkrevenge_scorekarma 2rndod_tkrevenge_spawndistance 800rndod_tkrevenge_spawnprotect 1rndod_tkrevenge_spawntahandle 2rndod_tkrevenge_spawntkcount 3rndod_tkrevenge_tareset 1rndod_tkrevenge_tasequaltk 10rndod_tkrevenge_useamxbans 0rndod_tkrevenge_warnings 5rnrn"Day of Defeat TeamKill Revenge v1.2" Customized Settings (AMXX.cfg)rn--------------------------------------------------------------------rnThe following settings configure "Day of Defeat TeamKill Revenge v1.2" to function like Day of Defeat's standard "mp_tkpenalty" feature (which does not function when SturmBot is installed), while disabling all of the plugin's extra features.rnrnNote that "mp_friendlyfire 1" and "mp_tkpenalty 0" must be added to the "Server.cfg" file. The "mp_tkpenalty" is set to "0", as teamkills are handled by the "Day of Defeat TeamKill Revenge v1.2" AMXX plugin.rnrnAlso note that the default "dod_tkrevenge_warnings 5" setting displays the "Forgive / Don't Forgive" menu to the teamkiller's victim for 5 teamkills, and then kicks the teamkiller upon the sixth teamkill.rnrnLastly, note that SturmBot's default "maxteamkills" setting is "3". "maxteamkills" sets the number of times a human can teamkill the SturmBots before the SturmBots will fire upon the human teamkiller.rnrndod_tkrevenge_ban 0rndod_tkrevenge_botaction 5rndod_tkrevenge_displaytacount 0rndod_tkrevenge_displaytkcount 0rndod_tkrevenge_enableglow 0rndod_tkrevenge_killfx 0rndod_tkrevenge_killkarma 0rndod_tkrevenge_meleeslay 0rndod_tkrevenge_meleetkcount 1rndod_tkrevenge_nadetkcount 1rndod_tkrevenge_novictimdeath 0rndod_tkrevenge_options 4rndod_tkrevenge_playersaytks 0rndod_tkrevenge_savetks 0rndod_tkrevenge_scorekarma 0rndod_tkrevenge_spawnprotect 0rndod_tkrevenge_spawntkcount 1rndod_tkrevenge_tasequaltk 0rnrnServer Settings (Server.cfg)rn----------------------------rnmp_friendlyfire 1rnmp_tkpenalty 0rn-=-=-=-=-=-=-=-=-=-

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
10-28-2013, 07:35 AM #4

I always hated that kic thing about Sturmbots but loved the way they go crazy and revenge shoot you when you tk;d them.

RichNagel
started this thread
Posts: 49
Threads: 8
Joined: Jan 2012
10-28-2013, 03:07 PM #5

Yeah, and it's quite funny, too :)rnrn"Cease fire! Cease fire!"rn"Cease fire! Cease fire!"rn"Cease fire! Cease fire!"rnrnNext thing you know, you're dead LOL!rnrnBTW, poking through the DLL, it appears that the Sturmbots that are firing upon you (after you have teamkilled "x" amount of times), are temporarily toggled into "General" mode <grin>.rnrnP.S. For the Axis:rnrnBeing half German, I SHOULD know what the Axis are saying for their "Cease fire! Cease fire!" voice message... but I don't. My friends and I joke around, saying that the Axis are saying:rnrn"Stupid oslo! Stupid oslo! Stupid oslo!"rnrn(oslo, pronounced ashlow, German word for "a$$hole") LOL! :)

Archive › Old Forum Threads › Help › General Help › mp_tkpenalty not working?
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC