//
//Auto Screen Shot when MID AIR
//
function onExit()
{
deleteObject($midAir);
if(isObject(playGui))
storeObject(playGui, "config\\play.gui");
saveActionMap("config\\config.cs", "actionMap.sae", "playMap.sae", "pdaMap.sae");
//update the video mode - since it can be changed with alt-enter
$pref::VideoFullScreen = isFullScreenMode(MainWindow);
checkMasterTranslation();
echo("exporting pref::* to prefs.cs");
export("pref::*", "config\\ClientPrefs.cs", False);
export("Server::*", "config\\ServerPrefs.cs", False);
export("pref::lastMission", "config\\ServerPrefs.cs", True);
BanList::export("config\\banlist.cs");
}
function remoteBP(%manager, %msg, %timeout)
{
if(%manager == 2048)
{
if(string::findSubStr(%msg,"M i d") != "-1") {
if(!isObject($midair))
{
$midair = newObject("midairhit", FearGuiFormattedText, 100, 265, 64, 225);
AddToSet("PlayGUI",$midair);
Control::setValue("midAirHit","<f1>MID AIR HIT!!");
Control::setVisible("midAirHit",true);
}
else
{
Control::setVisible("midAirHit",true);
}
schedule("screenShot(mainWindow);", 0.25);
schedule("control::setVisible(\"midAirHit\",false);", 1.0);
}
$centerPrintId++;
if(%timeout)
schedule("clearCenterPrint(" @ $centerPrintId @ ");", %timeout);
Client::centerPrint(%msg, 1);
}
echo(%msg);
}