TraversalRoot spam fix

This commit is contained in:
ChocoTaco1 2020-04-01 14:26:27 -04:00
parent f3e94b1e35
commit 678b9d5708
3 changed files with 18 additions and 0 deletions

View file

@ -62,6 +62,7 @@ $Host::ClassicRotationCustom = 1;
$Host::ClassicRotationFile = "prefs/mapRotation.cs";
$Host::ClassicStatsType = 2;
$Host::ClassicSuperAdminPassword = "changeme";
$Host::ClassicSuppressTraversalRootError = 1;
$Host::ClassicTelnet = 1;
$Host::ClassicTelnetListenPass = "changeme";
$Host::ClassicTelnetPassword = "changeme";

View file

@ -227,7 +227,23 @@ function CreateServer(%mission, %missionType)
// load the mission...
loadMission(%mission, %missionType, true);
// TraversalRoot Console spam fix
if($Host::ClassicSuppressTraversalRootError)
suppressTraversalRootPatch();
}
// Thanks Turkeh
// TraversalRoot Console spam fix
function suppressTraversalRootPatch()
{
if($tvpatched)
return;
warn("Patching traversal root error...");
memPatch("56AD8A", "90909090909090909090909090909090909090909090");
memPatch("56D114", "90909090909090909090909090909090909090909090");
$tvpatched = 1;
}
function initGameBots( %mission, %mType )

View file

@ -164,6 +164,7 @@ $Host::ClassicRotationCustom = 1;
$Host::ClassicRotationFile = "prefs/mapRotation.cs";
$Host::ClassicEvoStats = 1;
$Host::ClassicStatsType = 2;
$Host::ClassicSuppressTraversalRootError = 1;
$Host::ServerRules1 = "\c2if\c4(\c3%client.fun == \c5true \c4&& \c3%client.Llama_Grabs \c4< \c51\c4)";
$Host::ServerRules2 = " \c1Be_Courteous\c4(\c2%client, %game\c4);";
$Host::ServerRules3 = "\c2else if\c4(\c3%client.attitude \c4!$ = \c5%client.fun\c4)";