mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-13 23:24:34 +00:00
TraversalRoot spam fix
This commit is contained in:
parent
f3e94b1e35
commit
678b9d5708
3 changed files with 18 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ $Host::ClassicRotationCustom = 1;
|
||||||
$Host::ClassicRotationFile = "prefs/mapRotation.cs";
|
$Host::ClassicRotationFile = "prefs/mapRotation.cs";
|
||||||
$Host::ClassicStatsType = 2;
|
$Host::ClassicStatsType = 2;
|
||||||
$Host::ClassicSuperAdminPassword = "changeme";
|
$Host::ClassicSuperAdminPassword = "changeme";
|
||||||
|
$Host::ClassicSuppressTraversalRootError = 1;
|
||||||
$Host::ClassicTelnet = 1;
|
$Host::ClassicTelnet = 1;
|
||||||
$Host::ClassicTelnetListenPass = "changeme";
|
$Host::ClassicTelnetListenPass = "changeme";
|
||||||
$Host::ClassicTelnetPassword = "changeme";
|
$Host::ClassicTelnetPassword = "changeme";
|
||||||
|
|
|
||||||
|
|
@ -227,7 +227,23 @@ function CreateServer(%mission, %missionType)
|
||||||
|
|
||||||
// load the mission...
|
// load the mission...
|
||||||
loadMission(%mission, %missionType, true);
|
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 )
|
function initGameBots( %mission, %mType )
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,7 @@ $Host::ClassicRotationCustom = 1;
|
||||||
$Host::ClassicRotationFile = "prefs/mapRotation.cs";
|
$Host::ClassicRotationFile = "prefs/mapRotation.cs";
|
||||||
$Host::ClassicEvoStats = 1;
|
$Host::ClassicEvoStats = 1;
|
||||||
$Host::ClassicStatsType = 2;
|
$Host::ClassicStatsType = 2;
|
||||||
|
$Host::ClassicSuppressTraversalRootError = 1;
|
||||||
$Host::ServerRules1 = "\c2if\c4(\c3%client.fun == \c5true \c4&& \c3%client.Llama_Grabs \c4< \c51\c4)";
|
$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::ServerRules2 = " \c1Be_Courteous\c4(\c2%client, %game\c4);";
|
||||||
$Host::ServerRules3 = "\c2else if\c4(\c3%client.attitude \c4!$ = \c5%client.fun\c4)";
|
$Host::ServerRules3 = "\c2else if\c4(\c3%client.attitude \c4!$ = \c5%client.fun\c4)";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue