I love the smell of UnrealEd crashing in the morning. – tarquin

Difference between revisions of "Legacy:TeamInfo (UT)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Demonstrated ties to TeamGamePlus because they seem very relevent.)
 
Line 1: Line 1:
 
{{classbox|[[Legacy:UT|UT]] :: [[Legacy:Actor (UT)|Actor (UT)]] >> [[Legacy:Info (UT)|Info (UT)]] >> TeamInfo (Package: UnrealShare)}}
 
{{classbox|[[Legacy:UT|UT]] :: [[Legacy:Actor (UT)|Actor (UT)]] >> [[Legacy:Info (UT)|Info (UT)]] >> TeamInfo (Package: UnrealShare)}}
  
This is just another class of Info that is designed to be replicated. Put to use only in team games, this actor simply keeps track of all variables that pertain to a single team in the game.  Its only other significant trait is that it contains <tt>bAlwaysRelevant=True</tt>, just like any [[Legacy:ReplicationInfo|ReplicationInfo]].  Why this class wasn't made a subclass of ReplicationInfo is something that is unknown to this author.
+
This is just another class of Info that is designed to be replicated. Put to use only in team games, this actor simply keeps track of all variables that pertain to a single team in the game.  Its only other significant trait is that it contains <tt>bAlwaysRelevant=True</tt>, just like any [[Legacy:ReplicationInfo|ReplicationInfo]].  Why this class wasn't made a subclass of ReplicationInfo is something that is unknown to this author.
  
 
See [[Legacy:TeamInfo|TeamInfo]] for the UT200x version of this class.
 
See [[Legacy:TeamInfo|TeamInfo]] for the UT200x version of this class.
  
 
==Properties==
 
==Properties==
; string TeamName : The team's name.
+
; int TeamIndex : The index of this team in the <tt>Teams</tt> array of [[Legacy:TeamGame|TeamGame]] or [[Legacy:TeamGamePlus|TeamGamePlus]]. The forementioned array is an array of this very class. Teams[n] is used for the purpose described above for each team in the game. This index corresponds to the byte value of PlayerReplicationInfo.Team.
 +
; string TeamName : The team's name. Set to string value of array TeamGamePlus.TeamColor[n] where n corresponds to TeamIndex and TeamGamePlus essentially sets Teams[TeamIndex].TeamName to the string value of TeamColor[TeamIndex] and therefore "Red", "Blue", etc.  
 
; int Size : The number of players on this team.
 
; int Size : The number of players on this team.
; float Score : The team's score.
+
; float Score : The team's score. TeamGamePlus.ScoreKill(...) uses the byte value of PlayerReplicationInfo.Team as a handle to TeamIndex to alter Score.
; int TeamIndex : The index of this team in the <tt>Teams</tt> array of [[Legacy:TeamGame|TeamGame]] or [[Legacy:TeamGamePlus|TeamGamePlus]].
+
  
 
[[Category:Legacy Class (UT)|{{PAGENAME}}]]
 
[[Category:Legacy Class (UT)|{{PAGENAME}}]]

Latest revision as of 23:25, 12 January 2006

UT :: Actor (UT) >> Info (UT) >> TeamInfo (Package: UnrealShare)

This is just another class of Info that is designed to be replicated. Put to use only in team games, this actor simply keeps track of all variables that pertain to a single team in the game. Its only other significant trait is that it contains bAlwaysRelevant=True, just like any ReplicationInfo. Why this class wasn't made a subclass of ReplicationInfo is something that is unknown to this author.

See TeamInfo for the UT200x version of this class.

Properties[edit]

int TeamIndex 
The index of this team in the Teams array of TeamGame or TeamGamePlus. The forementioned array is an array of this very class. Teams[n] is used for the purpose described above for each team in the game. This index corresponds to the byte value of PlayerReplicationInfo.Team.
string TeamName 
The team's name. Set to string value of array TeamGamePlus.TeamColor[n] where n corresponds to TeamIndex and TeamGamePlus essentially sets Teams[TeamIndex].TeamName to the string value of TeamColor[TeamIndex] and therefore "Red", "Blue", etc.
int Size 
The number of players on this team.
float Score 
The team's score. TeamGamePlus.ScoreKill(...) uses the byte value of PlayerReplicationInfo.Team as a handle to TeamIndex to alter Score.