// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // //============================================================================= // GeoGameInfo // Used RTGameInfo AND ExampleGameInfo (UDN) to start // ------------------------------------------------------------ // // © 2006, Geodelft // // Date Id Modification // 2006-10-09 The Created this header //============================================================================= class GeoGameInfoIntro extends GameInfo; // // Called after a successful login. This is the first place // it is safe to call replicated functions on the PlayerPawn. // // Mostly copied from GameInfo's PostLogin function // event PostLogin( PlayerController NewPlayer ) { local class HudClass; local class ScoreboardClass; local String SongName; log("=========== PostLogin in GeoGameInfoIntro ========================"); // Log player's login. if (GameStats!=None) { GameStats.ConnectEvent(NewPlayer.PlayerReplicationInfo); GameStats.GameEvent("NameChange",NewPlayer.PlayerReplicationInfo.playername,NewPlayer.PlayerReplicationInfo); } if ( !bDelayedStart && NewPlayer.Pawn == None ) // Changed by Demiurge (Runtime) { // start match, or let player enter, immediately bRestartLevel = false; // let player spawn once in levels that must be restarted after every death bKeepSamePlayerStart = true; if ( bWaitingToStartMatch ) StartMatch(); else RestartPlayer(newPlayer); bKeepSamePlayerStart = false; bRestartLevel = Default.bRestartLevel; } // Start player's music. SongName = Level.Song; if( SongName != "" && SongName != "None" ) NewPlayer.ClientSetMusic( SongName, MTRAN_Fade ); // tell client what hud and scoreboard to use if( HUDType != "" ) HudClass = class(DynamicLoadObject(HUDType, class'Class')); if( ScoreBoardType != "" ) ScoreboardClass = class(DynamicLoadObject(ScoreBoardType, class'Class')); NewPlayer.ClientSetHUD( HudClass, ScoreboardClass ); if ( NewPlayer.Pawn != None ) NewPlayer.Pawn.ClientSetRotation(NewPlayer.Pawn.Rotation); } event PostNetBeginPlay() //Should be PostBeginPlay or PostNetBeginPlay { Super.PostNetBeginPlay(); } defaultproperties { bDelayedStart=false PlayerControllerClassName="GeoSimulator.GeoPlayerControllerIntro" PlayerControllerClass=None HUDType="Engine.HUD" ScoreBoardType="Engine.Scoreboard" DefaultPlayerName="Demonstrator" GameName="Demonstrator" }