Here's the edited wall of code
registerOutputEvent("GameConnection","EHO_stopEHO");
registerOutputEvent("GameConnection","EHO_startEHO");
registerOutputEvent("GameConnection","EHO_startMarathon");
registerOutputEvent("GameConnection","EHO_startExHO");
registerSpecialVar(GameConnection,"isEHO","%client.isEHO");
registerSpecialVar(GameConnection,"isMarathon","%client.isMarathon");
registerSpecialVar(GameConnection,"iloveHO","%client.iloveHO");
function GameConnection::EHO_startEHO(%client)
{
if(!%client.isEHO && !%client.isMarathon && !%client.iloveHO)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>EHO is now enabled.<color:ffffff> Dying DOES NOT disable this.");
%client.isEHO = true;
}
}
function GameConnection::EHO_stopEHO(%client)
{
if(%client.isEHO)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>EHO is now disabled.<color:ffffff> Go back to the start to re-enable.");
%client.isEHO = false;
}
else if(%client.iloveHO)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>ExHO is now disabled.<color:ffffff> Go back to the start to re-enable.");
%client.iloveHO = false;
}
}
function GameConnection::EHO_startMarathon(%client)
{
if(!%client.isEHO && !%client.isMarathon && !%client.iloveHO)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>You are now in the marathon.<color:ffffff> Dying disables this.");
%client.isMarathon = true;
}
}
function GameConnection::EHO_startExHO(%client)
{
if(!%client.isEHO && !%client.isMarathon && !%client.iloveHO)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>ExHO is now enabled.<color:ffffff> Dying disables this.");
%client.iloveHO = true;
}
}
package ExtraHardOptions
{
function GameConnection::onDeath(%client)
{
Parent::onDeath(%client);
if(%client.isMarathon)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>You are no longer in the marathon. <color:ffffff> Go back to the start to re-join.");
%client.isMarathon = false;
}
else if(%client.iloveHO)
{
messageClient(%client,'MsgAdminForce',"<color:ff0000>ExHO is no longer enabled.<color:ffffff> Go back to the start to re-enable.");
%client.iloveHO = false;
}
}
};
activatePackage(ExtraHardOptions);