I made a plugin to block this, it however requires dhooks. As far as I can tell mp_autokick works, however this disables other kicks which I feel are important (afk kicker, tk/ta kicker and a few others iirc). The plugin simply stops punishing suicides.
PHP Code:
#include <sourcemod>
#include <dhooks>
Handle hSuicidePenalty;
public void OnPluginStart()
{
Handle temp = LoadGameConfigFile("suicide.games");
if(temp == INVALID_HANDLE)
{
SetFailState("Failed to locate suicide.games.txt");
}
int offset;
offset = GameConfGetOffset(temp, "UseSuicidePenalty");
hSuicidePenalty = DHookCreate(offset, HookType_GameRules, ReturnType_Bool, ThisPointer_Ignore, UseSuicidePenalty);
CloseHandle(temp);
}
public OnMapStart()
{
//Hook Gamerules function in map start
DHookGamerules(hSuicidePenalty, true);
}
public MRESReturn UseSuicidePenalty(Handle hReturn)
{
DHookSetReturn(hReturn, false);
return MRES_Override;
}
Gamedata: suicide.games.txt
Code:
"Games"
{
"csgo"
{
"Offsets"
{
"UseSuicidePenalty"
{
"windows" "149"
"linux" "150"
}
}
}
}