Variables |
int |
AIProfile[8]
TEMP statistics |
string |
Author
Who built it. |
float |
AvgAITime
moving average of Actor time |
float |
Brightness
optimize for low resolution (e.g. TV) |
string |
ComputerName
Machine's name according to the OS. |
int |
Day
Day of month. |
int |
DayOfWeek
Day of week. |
class |
DefaultGameType
Min engine version that is net compatible. |
Texture |
DefaultTexture
optimize for low resolution (e.g. TV) |
enum |
ELevelAction
optimize for low resolution (e.g. TV) |
enum |
ENetMode
optimize for low resolution (e.g. TV) |
string |
EngineVersion
Engine version. |
GameInfo |
Game
Min engine version that is net compatible. |
int |
Hour
Hour. |
int |
HubStackLevel
optimize for low resolution (e.g. TV) |
string |
IdealPlayerCount
Ideal number of players for this level. I.E.: 6-8 |
string |
LevelEnterText
Message to tell players when they enter. |
string |
LocalizedPkg
Package to look in for localizations. |
int |
Millisecond
Millisecond. |
string |
MinNetVersion
Min engine version that is net compatible. |
int |
Minute
Minute. |
int |
Month
Month. |
NavigationPoint |
NavigationPointList
Min engine version that is net compatible. |
float |
NextSwitchCountdown
Min engine version that is net compatible. |
string |
NextURL
Min engine version that is net compatible. |
string |
Pauser
If paused, name of person pausing the game. |
Pawn |
PawnList
Min engine version that is net compatible. |
int |
RecommendedEnemies
number of enemy bots recommended (used by rated games) |
int |
RecommendedTeammates
number of friendly bots recommended (used by rated games) |
Texture |
Screenshot
optimize for low resolution (e.g. TV) |
int |
Second
Second. |
SpawnNotify |
SpawnNotify
enable texture-specific physics code for Pawns. |
LevelSummary |
Summary
If paused, name of person pausing the game. |
float |
TimeDilation
Normally 1 - scales real time passage. |
float |
TimeSeconds
Time in seconds since level began play. |
string |
Title
Millisecond. |
string |
VisibleGroups
List of the group names which were checked when the level was last saved |
int |
Year
Year. |
bool |
bAggressiveLOD
frame rate is well below DesiredFrameRate, so make LOD more aggressive |
bool |
bAllowFOV
Only allow "human" player pawns in this level |
bool |
bBegunPlay
Whether gameplay has begun. |
bool |
bCheckWalkSurfaces
enable texture-specific physics code for Pawns. |
bool |
bDropDetail
frame rate is below DesiredFrameRate, so drop high detail actors |
bool |
bHighDetailMode
Client high-detail mode. |
bool |
bHumansOnly
Only allow "human" player pawns in this level |
bool |
bLonePlayer
No multiplayer coordination, i.e. for entranceways. |
bool |
bLowRes
optimize for low resolution (e.g. TV) |
bool |
bNeverPrecache
optimize for low resolution (e.g. TV) |
bool |
bNextItems
Min engine version that is net compatible. |
bool |
bNoCheating
Only allow "human" player pawns in this level |
bool |
bPlayersOnly
Only update players. |
bool |
bStartup
Starting gameplay. |
Function Summary |
string |
GetAddressURL()
//
// Return the URL of this level, which may possibly
// exist on a remote machine.
//
|
string |
GetLocalURL()
//
// Return the URL of this level on the local machine.
//
|
Source Code
00001 //=============================================================================
00002 // LevelInfo contains information about the current level. There should
00003 // be one per level and it should be actor 0. UnrealEd creates each level's
00004 // LevelInfo automatically so you should never have to place one
00005 // manually.
00006 //
00007 // The ZoneInfo properties in the LevelInfo are used to define
00008 // the properties of all zones which don't themselves have ZoneInfo.
00009 //=============================================================================
00010 class LevelInfo extends ZoneInfo
00011 native
00012 nativereplication;
00013
00014 // Textures.
00015 #exec Texture Import File=Textures\DefaultTexture.pcx
00016
00017 //-----------------------------------------------------------------------------
00018 // Level time.
00019
00020 // Time passage.
00021 var() float TimeDilation; // Normally 1 - scales real time passage.
00022
00023 // Current time.
00024 var float TimeSeconds; // Time in seconds since level began play.
00025 var transient int Year; // Year.
00026 var transient int Month; // Month.
00027 var transient int Day; // Day of month.
00028 var transient int DayOfWeek; // Day of week.
00029 var transient int Hour; // Hour.
00030 var transient int Minute; // Minute.
00031 var transient int Second; // Second.
00032 var transient int Millisecond; // Millisecond.
00033
00034 //-----------------------------------------------------------------------------
00035 // Text info about level.
00036
00037 var() localized string Title;
00038 var() string Author; // Who built it.
00039 var() localized string IdealPlayerCount;// Ideal number of players for this level. I.E.: 6-8
00040 var() int RecommendedEnemies; // number of enemy bots recommended (used by rated games)
00041 var() int RecommendedTeammates; // number of friendly bots recommended (used by rated games)
00042 var() localized string LevelEnterText; // Message to tell players when they enter.
00043 var() string LocalizedPkg; // Package to look in for localizations.
00044 var string Pauser; // If paused, name of person pausing the game.
00045 var levelsummary Summary;
00046 var string VisibleGroups; // List of the group names which were checked when the level was last saved
00047
00048 //-----------------------------------------------------------------------------
00049 // Flags affecting the level.
00050
00051 var() bool bLonePlayer; // No multiplayer coordination, i.e. for entranceways.
00052 var bool bBegunPlay; // Whether gameplay has begun.
00053 var bool bPlayersOnly; // Only update players.
00054 var bool bHighDetailMode; // Client high-detail mode.
00055 var bool bDropDetail; // frame rate is below DesiredFrameRate, so drop high detail actors
00056 var bool bAggressiveLOD; // frame rate is well below DesiredFrameRate, so make LOD more aggressive
00057 var bool bStartup; // Starting gameplay.
00058 var() bool bHumansOnly; // Only allow "human" player pawns in this level
00059 var bool bNoCheating;
00060 var bool bAllowFOV;
00061 var config bool bLowRes; // optimize for low resolution (e.g. TV)
00062
00063 //-----------------------------------------------------------------------------
00064 // Audio properties.
00065
00066 var(Audio) const music Song; // Default song for level.
00067 var(Audio) const byte SongSection; // Default song order for level.
00068 var(Audio) const byte CdTrack; // Default CD track for level.
00069 var(Audio) float PlayerDoppler; // Player doppler shift, 0=none, 1=full.
00070
00071 //-----------------------------------------------------------------------------
00072 // Miscellaneous information.
00073
00074 var() float Brightness;
00075 var() texture Screenshot;
00076 var texture DefaultTexture;
00077 var int HubStackLevel;
00078 var transient enum ELevelAction
00079 {
00080 LEVACT_None,
00081 LEVACT_Loading,
00082 LEVACT_Saving,
00083 LEVACT_Connecting,
00084 LEVACT_Precaching
00085 } LevelAction;
00086
00087 //-----------------------------------------------------------------------------
00088 // Renderer Management.
00089 var() bool bNeverPrecache;
00090
00091 //-----------------------------------------------------------------------------
00092 // Networking.
00093
00094 var enum ENetMode
00095 {
00096 NM_Standalone, // Standalone game.
00097 NM_DedicatedServer, // Dedicated server, no local client.
00098 NM_ListenServer, // Listen server.
00099 NM_Client // Client only, no local server.
00100 } NetMode;
00101 var string ComputerName; // Machine's name according to the OS.
00102 var string EngineVersion; // Engine version.
00103 var string MinNetVersion; // Min engine version that is net compatible.
00104
00105 //-----------------------------------------------------------------------------
00106 // Gameplay rules
00107
00108 var() class<gameinfo> DefaultGameType;
00109 var GameInfo Game;
00110
00111 //-----------------------------------------------------------------------------
00112 // Navigation point and Pawn lists (chained using nextNavigationPoint and nextPawn).
00113
00114 var const NavigationPoint NavigationPointList;
00115 var const Pawn PawnList;
00116
00117 //-----------------------------------------------------------------------------
00118 // Server related.
00119
00120 var string NextURL;
00121 var bool bNextItems;
00122 var float NextSwitchCountdown;
00123
00124 //-----------------------------------------------------------------------------
00125 // Actor Performance Management
00126
00127 var int AIProfile[8]; // TEMP statistics
00128 var float AvgAITime; //moving average of Actor time
00129
00130 //-----------------------------------------------------------------------------
00131 // Physics control
00132
00133 var() bool bCheckWalkSurfaces; // enable texture-specific physics code for Pawns.
00134
00135 //-----------------------------------------------------------------------------
00136 // Spawn notification list
00137 var SpawnNotify SpawnNotify;
00138
00139 //-----------------------------------------------------------------------------
00140 // Functions.
00141
00142 //
00143 // Return the URL of this level on the local machine.
00144 //
00145 native simulated function string GetLocalURL();
00146
00147 //
00148 // Return the URL of this level, which may possibly
00149 // exist on a remote machine.
00150 //
00151 native simulated function string GetAddressURL();
00152
00153 //
00154 // Jump the server to a new level.
00155 //
00156 event ServerTravel( string URL, bool bItems )
00157 {
00158 if( NextURL=="" )
00159 {
00160 bNextItems = bItems;
00161 NextURL = URL;
00162 if( Game!=None )
00163 Game.ProcessServerTravel( URL, bItems );
00164 else
00165 NextSwitchCountdown = 0;
00166 }
00167 }
00168
00169 //-----------------------------------------------------------------------------
00170 // Network replication.
00171
00172 replication
00173 {
00174 reliable if( Role==ROLE_Authority )
00175 Pauser, TimeDilation, bNoCheating, bAllowFOV;
00176 }
00177
00178 defaultproperties
00179 {
00180 TimeDilation=1.000000
00181 Title="Untitled"
00182 VisibleGroups="None"
00183 bHighDetailMode=True
00184 CdTrack=255
00185 Brightness=1.000000
00186 DefaultTexture=Texture'Engine.DefaultTexture'
00187 bHiddenEd=True
00188 }
|
End Source Code