mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
TraversalRoot spam fix
This commit is contained in:
parent
f3e94b1e35
commit
678b9d5708
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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)";
|
||||
|
|
|
|||
Loading…
Reference in a new issue