diff --git a/Classic/prefs/serverPrefs.cs b/Classic/prefs/serverPrefs.cs index 47901c4..860452f 100644 --- a/Classic/prefs/serverPrefs.cs +++ b/Classic/prefs/serverPrefs.cs @@ -164,7 +164,7 @@ $Host::EvoTKWarn2 = 6; $Host::EvoTourneySameMap = 1; $Host::EvoUseHighPerformanceCounter = 0; $Host::FloodProtectionEnabled = 1; -$Host::ForceAFKObserverTime = 1; +$Host::AFKTime = 1; $Host::GameName = "Discord PU"; $Host::HiVisibility = "1"; $Host::holoName1 = "Storm"; diff --git a/Classic/scripts/autoexec/zDarkTigerAFK.cs b/Classic/scripts/autoexec/zDarkTigerAFK.cs index 5a5ed63..fd352cb 100644 --- a/Classic/scripts/autoexec/zDarkTigerAFK.cs +++ b/Classic/scripts/autoexec/zDarkTigerAFK.cs @@ -4,9 +4,9 @@ //TacoServer: //Change to how many minutes to set forced Observer for AFK players //Setting to 0 disables this feature -//$Host::ForceAFKObserverTime = 1; +//$Host::AFKTime = 1; -$dtVar::AFKtime = 60000 * $Host::ForceAFKObserverTime;//if player is afk specific amount of time, force them into observer +$dtVar::AFKtime = 60000 * $Host::AFKTime;//if player is afk specific amount of time, force them into observer $dtVar::AFKloop = 1000 * 30;//loop check timer currently set to 30 secs //////////////////////////////////////////////////////////////////////////////// @@ -89,8 +89,8 @@ function DefaultGame::AFKForceObserver(%game, %client) %client.camera.getDataBlock().setMode( %client.camera, "observerFly" ); - messageClient(%client, 'MsgClientJoinTeam', '\c2You have been placed into observer mode due to being AFK.', %client.name, %game.getTeamName(0), %client, 0 ); - logEcho(%client.nameBase@" (cl "@%client@") was forced into observer mode for being AFK"); + messageClient(%client, 'MsgClientJoinTeam', '\c2You have been placed into observer mode due to inactivity.', %client.name, %game.getTeamName(0), %client, 0 ); + logEcho(%client.nameBase@" (cl "@%client@") was forced into observer mode due to inactivity"); %client.lastTeam = %client.team; if($Host::TournamentMode) @@ -124,7 +124,7 @@ function DefaultGame::AFKForceObserver(%game, %client) //displayObserverHud(%client, 0); updateObserverFlyHud(%client); - messageAllExcept(%client, -1, 'MsgClientJoinTeam', '\c2%1 has been placed into observer mode due to being AFK.', %client.name, %game.getTeamName(0), %client, 0 ); + messageAllExcept(%client, -1, 'MsgClientJoinTeam', '\c2%1 has been placed into observer mode due to inactivity.', %client.name, %game.getTeamName(0), %client, 0 ); updateCanListenState( %client ); diff --git a/Classic/scripts/serverDefaults.cs b/Classic/scripts/serverDefaults.cs index 3e496df..3e64c85 100644 --- a/Classic/scripts/serverDefaults.cs +++ b/Classic/scripts/serverDefaults.cs @@ -203,7 +203,7 @@ $Host::loadingmsgline3 = "Required Mappacks: "; //Loading screen msg lin $Host::loadingmsgline3content = "S5 S8 TWL TWL2"; //Loading screen msg content 3 $Host::loadingmsgline4 = "Hosted by: "; //Loading screen msg line 4 $Host::loadingmsgline4content = "Branzone"; //Loading screen msg content 4 -$Host::ForceAFKObserverTime = 1; //Change the time in minutes it takes to force a player into observer mode for being AFK +$Host::AFKTime = 1; //Time in minutes to put AFK player in observer mode, 0 disables it //LakRabbit $Host::EnableLakUnlimitedDJ = 1; //Unlimited disc-jumps if enabled $Host::LakRabbitNoSplashDamage = 0; //Splash Damage enabled or not