The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE2:GameRules (U2XMP)
From Unreal Wiki, The Unreal Engine Documentation Site
Contents |
- Package:
- Engine
- Direct subclasses:
- HitSound, ShowDamageInfo
- This class in other games:
- U2, UE2Runtime, UT2003, UT2004, UT3
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
GameRules.
The GameRules class handles game rule modifications for the GameInfo such as scoring, finding player starts, and damage modification.
[edit] Properties
[edit] NextGameRules
Type: GameRules
[edit] Instance functions
[edit] AddGameRules
function AddGameRules (GameRules GR)
[edit] CheckEndGame
[edit] CheckScore
function bool CheckScore (PlayerReplicationInfo Scorer)
[edit] FindPlayerStart
function NavigationPoint FindPlayerStart (Controller Player, optional byte InTeam, optional string incomingName)
[edit] GetRules
function string GetRules ()
[edit] HandleRestartGame
function bool HandleRestartGame ()
[edit] NetDamage
function int NetDamage (int OriginalDamage, int Damage, Pawn injured, Pawn instigatedBy, Object.Vector HitLocation, Object.Vector Momentum, class<DamageType> DamageType)
[edit] OverridePickupQuery
[edit] PreventDeath
function bool PreventDeath (Pawn Killed, Controller Killer, class<DamageType> damageType, Object.Vector HitLocation)
[edit] ScoreKill
function ScoreKill (Controller Killer, Controller Killed)
[edit] ScoreObjective
function ScoreObjective (PlayerReplicationInfo Scorer, int Score)
