| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||
BetrayalGame Creation date: 2010-01-31 15:25 Last change: $Id$
Core.Object
|
+-- Engine.Actor
|
+-- Engine.Info
|
+-- Engine.GameInfo
|
+-- UnrealGame.UnrealMPGameInfo
|
+-- UnrealGame.DeathMatch
|
+-- XGame.xDeathMatch
|
+-- Betrayal.BetrayalGame
| Constants Summary |
|---|
| Inherited Contants from UnrealGame.DeathMatch |
|---|
| DMPROPNUM |
| Inherited Variables from XGame.xDeathMatch |
|---|
| bCustomPreload |
| Structures Summary | ||
|---|---|---|
| TDrawOp Content, Top, Left, Height, Width, RenderStyle, AlignH, AlignV, ImageStyle, DrawColor, FontName, WrapText | ||
| TSavedPRIData ClientID, PlayerID, Score, Deaths, Hits, Shots, Kills, PaybackCount, RetributionCount, BetrayalCount, BetrayedCount, RemainingRogueTime, BetrayedPlayers, EagleEyes, MultiHits, BestMultiHit, HeadCount, bFirstBlood, WeaponStatsArray, VehicleStatsArray, Spree[6], MultiKills[7], Suicides, TimePlayed | ||
| Functions Summary | ||
|---|---|---|
![]() | bool | AcceptPlayInfoProperty (string PropertyName)) |
![]() | BetrayalDrawImageOp | AddImage (UT2K4LoadingPageBase LoadingScreen, Material Image, float Top, float Left, float Height, float Width)) |
![]() | BetrayalDrawTextOp | AddText (UT2K4LoadingPageBase LoadingScreen, string Text, byte Just, float Top, float Left, float Height, float Width, optional byte VAlign)) |
![]() | bool | AllowBecomeActivePlayer (PlayerController P)) |
![]() | bool | BecomeSpectator (PlayerController P)) |
![]() | CheckScore (PlayerReplicationInfo Scorer)) | |
![]() | DisableUnlag ())) | |
![]() | EnableUnlag (Pawn Attacker, vector FireStart, vector FireDir)) | |
![]() | FillPlayInfo (PlayInfo PlayInfo)) | |
![]() | rotator | FindBestDirectionFor (vector StartLocation, rotator StartRotation, float CheckDist)) |
![]() | NavigationPoint | FindPlayerStart (Controller Player, optional byte InTeam, optional string incomingName)) |
![]() | FixQuality (Material Mat)) | |
![]() | array<string> | GetAllLoadHints (optional bool bThisClassOnly)) |
![]() | string | GetDescriptionText (string PropName)) |
![]() | string | GetLoadingHint (PlayerController Ref, string MapName, color HintColor)) |
![]() | GetServerDetails (out ServerResponseLine ServerState)) | |
![]() | bool | HasDuplicateClientID (BetrayalPRI PRI)) |
![]() | InitGame (string Options, out string Error)) | |
![]() | InitGameReplicationInfo ())) | |
![]() | bool | InOrder (PlayerReplicationInfo P1, PlayerReplicationInfo P2)) |
![]() | Killed (Controller Killer, Controller Killed, Pawn KilledPawn, class<DamageType> damageType)) | |
![]() | bool | LoadDemoData (PlayerController Ref, string DemoName, out string MapName, out string MapTitle, out string MapDescription, out string MapAuthor, out Material MapScreenshot, out string RecordedBy, out string Timestamp, out int ClientSide)) |
![]() | bool | LoadMapData (string MapName, out string MapTitle, out string MapDescription, out string MapAuthor, out Material MapScreenshot)) |
![]() | Logout (Controller Exiting)) | |
![]() | bool | OnSameTeam (Pawn A, Pawn B)) |
![]() | bool | PlayerCanRestart (PlayerController aPlayer)) |
![]() | PostLogin (PlayerController NewPlayer)) | |
![]() | float | RatePlayerStart (NavigationPoint N, byte Team, Controller Player)) |
![]() | RemoveFromTeam (BetrayalPRI PRI)) | |
![]() | RemoveTeam (BetrayalTeam Team)) | |
![]() | Reset ())) | |
![]() | RestartPlayer (Controller aPlayer)) | |
![]() | bool | RestorePRIData (BetrayalPRI PRI)) |
![]() | SavePRIData (BetrayalPRI PRI, bool bBecomingSpectator)) | |
![]() | ScoreKill (Controller Killer, Controller Other)) | |
![]() | ScoreSpecialKill (Controller Killer)) | |
![]() | ShotTeammate (BetrayalPRI InstigatorPRI, BetrayalPRI HitPRI, Pawn ShotInstigator, Pawn HitPawn)) | |
![]() | bool | ShouldSpawnNearby (BetrayalPRI SpawningPRI, BetrayalPRI OtherPRI)) |
![]() | SortPRIArray ())) | |
![]() | float | SpawnWait (AIController B)) |
![]() | Tick (float DeltaTime)) MatchInprogress | |
![]() | Timer ())) MatchInprogress | |
![]() | UpdateUnlagLocations ())) | |
![]() | bool | ValidateStartSpot (NavigationPoint StartSpot, out PlayerStart ClosestPlayerStart)) |
![]() | bool | WantsPickups (Bot B)) |
| Inherited Functions from XGame.xDeathMatch |
|---|
| PrecacheGameStaticMeshes, PrecacheGameTextures |
| States Summary |
|---|
| MatchInprogress Source code |
|---|
|
state MatchInprogress |
| Tick, Timer |
| Variables Detail |
|---|
| Structures Detail |
|---|
var byte AlignH;};
var byte AlignV;
var string Content;
var color DrawColor;
var string FontName;
var float Height;
var byte ImageStyle;
var float Left;
var byte RenderStyle;
var float Top;
var float Width;
var bool WrapText;
AlignH:Alignment options. 0 = left/top, 1 = center, 2 = right/bottomAlignV:Alignment options. 0 = left/top, 1 = center, 2 = right/bottomContent:Available image operations are: `bgmapimage `bggameimage `mapimage `gameimage `image:package.group.material,u,v,ul,vl `random:p1.g1.m1,u1,v1,ul1,vl1;p2.g2.m2,u2,v2,ul2,vl2;... The U, V, UL and VL properties are optional. You can specify any number of random images you want. Available text operations are: `mapname `maptitle `mapauthor `gamename `gamehint `localize:file.section.property Any other text is displayed unmodified. Localized text is looked up in file.int [section] property=... (The file extension depends on your UT2004 language.)Height:The drawing area of this operation.ImageStyle:Image style. 0 = normal, 1 = full image stretched, 2 = clipped, 3 = partially stretchedLeft:The drawing area of this operation.RenderStyle:The render style. 1 = normal, 5 = alphablendTop:The drawing area of this operation.Width:The drawing area of this operation.
var int BestMultiHit;};
var int BetrayalCount;
var int BetrayedCount;
var array<BetrayalPRI> BetrayedPlayers;
var bool bFirstBlood;
var string ClientID;
var float Deaths;
var int EagleEyes;
var int HeadCount;
var int Hits;
var int Kills;
var int MultiHits;
var byte MultiKills[7];
var int PaybackCount;
var int PlayerID;
var int RemainingRogueTime;
var int RetributionCount;
var float Score;
var int Shots;
var byte Spree[6];
var int Suicides;
var int TimePlayed;
var array<TeamPlayerReplicationInfo.VehicleStats> VehicleStatsArray;
var array<TeamPlayerReplicationInfo.WeaponStats> WeaponStatsArray;
| Functions Detail |
|---|
AcceptPlayInfoProperty Source code
AddImage Source code
AddText Source code
AllowBecomeActivePlayer Source code
BecomeSpectator Source code
CheckScore Source code
DisableUnlag Source code
EnableUnlag Source code
FillPlayInfo Source code
FindBestDirectionFor Source code
FindPlayerStart Source code
FixQuality Source code
GetAllLoadHints Source code
GetDescriptionText Source codeReturns the description text for a configurable property.
GetLoadingHint Source code
GetServerDetails Source code
HasDuplicateClientID Source code
InitGame Source code
InitGameReplicationInfo Source code
InOrder Source code
Killed Source code
LoadDemoData Source code
LoadMapData Source code
Logout Source code
OnSameTeam Source code
PlayerCanRestart Source code
PostLogin Source code
RatePlayerStart Source code
RemoveFromTeam Source code
RemoveTeam Source code
Reset Source code
RestartPlayer Source code
RestorePRIData Source code
SavePRIData Source code
ScoreKill Source code
ScoreSpecialKill Source code
ShotTeammate Source code
ShouldSpawnNearby Source code
SortPRIArray Source code
SpawnWait Source code
Tick MatchInprogress Source code
Timer MatchInprogress Source code
UpdateUnlagLocations Source code
ValidateStartSpot Source code
WantsPickups Source code| Defaultproperties |
|---|
defaultproperties
{
GameName = "Betrayal"
Description = "Cooperate to get bonus points. Betray your team to keep them."
Acronym = "BET"
GoalScore = 100
Build = "%%%%-%%-%% %%:%%"
Copyright = "Copyright 2003-2013 by Wormbo"
bBeamMultiHit = False
MaxUnlagTime = 0.25
bSpecialKillRewards = False
bRestorePlayerStats = True
bImprovedSlopeDodging = True
MutatorClass = "Betrayal.BetrayalMutator"
HUDType = "Betrayal.BetrayalHud"
ScoreBoardType = "Betrayal.BetrayalScoreboard"
DefaultPlayerClassName = "Betrayal.BetrayalPawn"
HUDSettingsMenu = "Betrayal.BetrayalClientSettingsMenu"
LocalStatsScreenClass = "Betrayal.BetrayalStatsScreen"
LoginMenuClass = "GUI2K4.UT2K4PlayerLoginMenu"
BetrayedSound = Sound'GameSounds.DDAverted'
DMSquadClass = class'BetrayalSquadAI'
GameReplicationInfoClass = class'BetrayalGRI'
AnnouncerMessageClass = class'BetrayalMessage'
DeathMessageClass = class'BetrayalDeathMessage'
lblMaxUnlagTime = "Max. Unlag Time"
descMaxUnlagTime = "Maximum shot unlag time."
lblBeamMultiHit = "Instagib Beam Multi-Hit"
descBeamMultiHit = "Whether the Instagib rifle shoots through players."
lblSpecialKillRewards = "Special Kill Rewards"
descSpecialKillRewards = "Adds an additional point for special kills, such as multiple hits per shot, head shots or nice mid-air hits."
lblRestorePlayerStats = "Restore Player Stats"
descRestorePlayerStats = "Save the player's stats of he/she becomes spectator or leaves the server and restore them on rejoin in the same match."
lblBrighterPlayerSkins = "Brighter Player Skins"
descBrighterPlayerSkins = "Slightly increases player skin brightness. (For the TAM-/UTComp-impaired players.)"
lblImprovedSlopeDodging = "Improved slope dodging"
descImprovedSlopeDodging = "Adjusts the dodging direction when dodging up a (walkable) slope."
RelevantDMLoadingHints = (1,2,3,7,9,11,12,13)
BetrayalHints[0] = "Shoot with %FIRE% to kill enemies, shoot with %ALTFIRE% to kill your teammates and take the team pot."
BetrayalHints[1] = "Try getting retribution on a former teammate who betrayed you. Doing so within 30 seconds after betrayal will award you additional points."
BetrayalHints[2] = "Make sure you hit with the first shot when trying to betray your team. Betraying shots have a different color, so your teammate will notice your intentions if you miss."
BetrayalHints[3] = "Don't betray your team right away. The few points in the team pot might not be worth the trouble of avoiding payback. Later betraying at the right time can decide the match very quickly, though."
BetrayalHints[4] = "The player beacons reflect your relation to that player and tell how much points you will get for killing him/her. Blue is for teammates, red is for a former teammate who betrayed you, green is for the former teammates who are seeking payback on you."
BetrayalHints[5] = "Be aware of your teammates' scores when they get closer to the goal score. You may need to betray them to prevent them from taking the pot to win the match."
BetrayalHints[6] = "You can access client-side Betrayal options via %MYMENU%."
BetrayalHints[7] = "You can access client-side Betrayal options via %MENU3SPN%."
BetrayalHints[8] = "You can access client-side Betrayal options via the standard HUD settings page."
BetrayalHints[9] = "After you betrayed your team, try to not give them a chance for retribution. When they succeed your score will decrease!"
LoadingScreenByNameText = "by `name"
LoadingScreenAtTimeText = "at `time"
GameDrawOps(0) = (Content="`bgmapimage",Height=1.0,Width=1.0,RenderStyle=1,DrawColor=(R=200,G=200,B=200,A=255))
GameDrawOps(1) = (Content="`random:2k4Menus.MainMenu.Char01,0,0,1024,768;2k4Menus.MainMenu.Char02,0,0,1024,768;2k4Menus.MainMenu.Char03,0,0,1024,768",Top=0.0,Left=0.0,Height=1.0,Width=1.0,RenderStyle=5,DrawColor=(R=255,G=255,B=255,A=255))
GameDrawOps(2) = (Content="`image:2k4Menus.MainMenu.2k4Logo",Top=0.0,Left=0.325,Height=0.25,Width=0.35,RenderStyle=5,DrawColor=(R=224,G=224,B=224,A=255))
GameDrawOps(3) = (Content="`mapimage",Top=0.25,Left=0.1,Height=0.4,Width=0.4,RenderStyle=1,DrawColor=(R=255,G=255,B=255,A=255))
GameDrawOps(4) = (Content="`image:2k4Menus.Controls.outlinesquare",Top=0.25,Left=0.1,Height=0.4,Width=0.4,RenderStyle=5,ImageStyle=3,DrawColor=(R=128,G=128,B=128,A=255))
GameDrawOps(5) = (Content="`{gamename}",Top=0.05,Left=0.0,Height=0.2,Width=0.6,RenderStyle=1,AlignH=1,AlignV=2,FontName="XInterface.UT2LargeFont",DrawColor=(R=255,G=255,B=255,A=255))
GameDrawOps(6) = (Content="`{maptitle}",Top=0.65,Left=0.0,Height=0.15,Width=0.6,RenderStyle=1,AlignH=1,FontName="XInterface.UT2LargeFont",DrawColor=(R=255,G=255,B=255,A=255))
GameDrawOps(7) = (Content="`gamehint",Top=0.8,Left=0.05,Height=0.18,Width=0.9,RenderStyle=1,AlignV=2,WrapText=True,FontName="GUI2K4.fntUT2k4SmallHeader",DrawColor=(R=255,G=255,B=255,A=255))
DemoDrawOps(0) = (Content="`bgmapimage",Height=1.0,Width=1.0,RenderStyle=1,DrawColor=(R=200,G=200,B=200,A=255))
DemoDrawOps(1) = (Content="`random:2k4Menus.MainMenu.Char01,0,0,1024,768;2k4Menus.MainMenu.Char02,0,0,1024,768;2k4Menus.MainMenu.Char03,0,0,1024,768",Top=0.0,Left=0.0,Height=1.0,Width=1.0,RenderStyle=5,DrawColor=(R=255,G=255,B=255,A=255))
DemoDrawOps(2) = (Content="`image:2k4Menus.MainMenu.2k4Logo",Top=0.0,Left=0.325,Height=0.25,Width=0.35,RenderStyle=5,DrawColor=(R=224,G=224,B=224,A=255))
DemoDrawOps(3) = (Content="`mapimage",Top=0.25,Left=0.1,Height=0.4,Width=0.4,RenderStyle=1,DrawColor=(R=255,G=255,B=255,A=255))
DemoDrawOps(4) = (Content="`image:2k4Menus.Controls.outlinesquare",Top=0.25,Left=0.1,Height=0.4,Width=0.4,RenderStyle=5,ImageStyle=3,DrawColor=(R=128,G=128,B=128,A=255))
DemoDrawOps(5) = (Content="`{gamename}`{lf}`{maptitle}",Top=0.05,Left=0.0,Height=0.2,Width=0.6,RenderStyle=1,AlignH=1,AlignV=2,FontName="XInterface.UT2LargeFont",DrawColor=(R=255,G=255,B=255,A=255))
DemoDrawOps(6) = (Content="`{demotype}`{lf}`{byplayer}`{lf}`{attime}",Top=0.65,Left=0.0,Height=0.3,Width=0.6,RenderStyle=1,AlignH=1,FontName="XInterface.UT2LargeFont",DrawColor=(R=255,G=255,B=255,A=255))
}
|
| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||