//AA Construction Mod Load Screen package loadmodinfo { function sendLoadInfoToClient( %client, %second ) { //error( "** SENDING LOAD INFO TO CLIENT " @ %client @ "! **" ); %singlePlayer = $CurrentMissionType $= "SinglePlayer"; messageClient( %client, 'MsgLoadInfo', "", $CurrentMission, $MissionDisplayName, $MissionTypeDisplayName ); // Send map quote: for ( %line = 0; %line < $LoadQuoteLineCount; %line++ ) { if ( $LoadQuoteLine[%line] !$= "" ) messageClient( %client, 'MsgLoadQuoteLine', "", $LoadQuoteLine[%line] ); } // Send map objectives: if ( %singlePlayer ) { switch ( $pref::TrainingDifficulty ) { case 2: %diff = "Medium"; case 3: %diff = "Hard"; default: %diff = "Easy"; } messageClient( %client, 'MsgLoadObjectiveLine', "", "DIFFICULTY: " @ %diff ); } for ( %line = 0; %line < $LoadObjLineCount; %line++ ) { if ( $LoadObjLine[%line] !$= "" ) messageClient( %client, 'MsgLoadObjectiveLine', "", $LoadObjLine[%line], !%singlePlayer ); } // Send rules of engagement: if ( !%singlePlayer ) messageClient( %client, 'MsgLoadRulesLine', "", "RULES OF ENGAGEMENT:", false ); for ( %line = 0; %line < $LoadRuleLineCount; %line++ ) { if ( $LoadRuleLine[%line] !$= "" ) messageClient( %client, 'MsgLoadRulesLine', "", $LoadRuleLine[%line], !%singlePlayer ); } messageClient( %client, 'MsgLoadInfoDone' ); // ---------------------------------------------------------------------------------------------- // z0dd - ZOD, 5/12/02. Send the mod info screen if this isn't the second showing of mission info if(!%second) schedule(6000, 0, "sendModInfoToClient", %client); // ---------------------------------------------------------------------------------------------- } function sendModInfoToClient(%client) //Kinda Jacked Classic's loadScreen here.. but it is generally not used { %on = "On"; %off = "Off"; %line[0] = "Game Type: " @ $CurrentMissionType; %modName = "T2Bol" SPC $ModVersionText @ ""; %ModCnt = 1; %ModLine[0] = "Developers: DarkDragonDX"; %SpecialCnt = 3; %SpecialTextLine[0] = "Map:" SPC $CurrentMission; %SpecialTextLine[1] = "Game Type:" SPC $CurrentMissionType; if ($Host::BotsEnabled) %SpecialTextLine[2] = "Bot Count:" SPC $HostGameBotCount; %ServerCnt = 1; %ServerTextLine[0] = ""; %ServerTextLine[1] = ""; %singlePlayer = $CurrentMissionType $= "SinglePlayer"; messageClient( %client, 'MsgLoadInfo', "", $CurrentMission, %modName, $Host::GameName ); // Send mod details (non bulleted list, small text): for(%line = 0; %line < %ModCnt; %line++) { if(%ModLine[%line] !$= "") messageClient(%client, 'MsgLoadQuoteLine', "", %ModLine[%line]); } // Send mod special settings (bulleted list, large text): for (%line = 0; %line < %SpecialCnt; %line++) { if(%SpecialTextLine[%line] !$= "") messageClient( %client, 'MsgLoadObjectiveLine', "", %SpecialTextLine[%line], !%singlePlayer); } // Send server info: if ( !%singlePlayer ) messageClient( %client, 'MsgLoadRulesLine', "", "" @ $Host::Info, false ); for(%line = 0; %line < %ServerCnt; %line++) { if (%ServerTextLine[%line] !$= "") messageClient(%client, 'MsgLoadRulesLine', "", %ServerTextLine[%line], !%singlePlayer); } messageClient(%client, 'MsgLoadInfoDone'); // z0dd - ZOD, 5/12/02. Send mission info again so as not to conflict with cs scripts. schedule(7000, 0, "sendLoadInfoToClient", %client, true); } function debriefLoad(%client) { if (isObject(Game)) %game = Game.getId(); else return; if ($HostGameType $= "SinglePlayer") return; //Clear the debrief first messageClient( %client, 'MsgClearDebrief', ""); messageClient( %client, 'MsgDebriefResult', "", ""@$Host::GameName@"\nAdvanced Architechture Construction Mod "@getWord($ModVersion,0)@""); messageClient( %client, 'MsgDebriefAddLine', "", " " ); messageClient( %client, 'MsgDebriefAddLine', "", "If you do not see the image below then you do not have the mod installed." ); messageClient( %client, 'MsgDebriefAddLine', "", " " ); messageClient( %client, 'MsgDebriefAddLine', "", ""); //Several blank lines must be added to compensate for the large AA Logo image for (%i = 0; %i < 9; %i++) { messageClient( %client, 'MsgDebriefAddLine', "", " " ); } messageClient( %client, 'MsgDebriefAddLine', "", "\nwww.AAConstruction.net"); messageClient( %client, 'MsgDebriefAddLine', "", " "); messageClient( %client, 'MsgDebriefAddLine', "", "\n-Developer Credits-"); messageClient( %client, 'MsgDebriefAddLine', "", "Dark Dragon DX - Main Coding"); messageClient( %client, 'MsgDebriefAddLine', "", "Signal360 - Currently making a replica of ECM's Logic Pack"); messageClient( %client, 'MsgDebriefAddLine', "", "Exerpt - Graphics Artist, 3D Modeler, Website Design, Project Supervisor"); messageClient( %client, 'MsgDebriefAddLine', "", "Thyth - Provided the MIST for the entire community to use"); messageClient( %client, 'MsgDebriefAddLine', "", "" ); //Go to the debrief gui. messageClient( %client, 'MsgGameOver', "" ); } }; activatepackage(loadmodinfo);