// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. //============================================================================= // GeoGameInfo // Used RTGameInfo AND ExampleGameInfo (UDN) to start //============================================================================= class GeoGameInfoMenus 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 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.GeoPlayerController" PlayerControllerClass=None HUDType="GeoSimulator.GeoHUDMenu" ScoreBoardType="Engine.Scoreboard" DefaultPlayerName="Levee Patroller" GameName="Levee Patroller" }