I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:UnrealPlayerChatManager (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:11, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT2004 Object >> Actor >> Info >> PlayerChatManager >> UnrealPlayerChatManager
Package: 
UnrealGame

Created on: 08/29/2003 UnrealPlayerChatManager is responsible for tracking each player's chat preferences and restrictions. When a client joins the game, a new UnrealPlayerChatManager object is spawned for that player, and replicated to the client. When the UnrealPlayerChatManager object arrives on the client, it requests a list of player hashes for all players currently connected to the server. The hashes received from the server are matched against the local client's stored restrictions. When a match is found, UnrealPlayerChatManager updates the server's copy of the tracking information with the client's restriction.

Thereafter, when the client's copy of the UnrealPlayerChatManager object is notified that a new client has connected, it requests the hash information for that player in order to match it against the client's stored restrictions.

Written by Ron Prestenback © 2003, Epic Games, Inc. All Rights Reserved

Constants

NOTEXT

Value: 1


NOSPEECH

Value: 2


NOVOICE

Value: 4


BANNED

Value: 8


Properties

ChatRestrictions

Type: array<ChatBan>

Modifiers: protected


StoredChatRestrictions

Type: array<StoredChatBan>

Modifiers: globalconfig, protected


Structs

ChatBan

int PlayerID 
string PlayerHash 
string PlayerAddress 
byte PlayerVoiceMask 
byte Restriction 
1 - Text, 2 - Speech, 4 - Voice, 8 - Banned from private chat

StoredChatBan

string PlayerHash 
byte Restriction 

Functions

Events

AcceptVoice

event bool AcceptVoice (PlayerReplicationInfo SenderPRI)

Overrides: PlayerChatManager.AcceptVoice


Other instance functions

AcceptSpeech

function bool AcceptSpeech (PlayerReplicationInfo SenderPRI)

Overrides: PlayerChatManager.AcceptSpeech


AcceptText

function bool AcceptText (PlayerReplicationInfo Sender, out string Msg, optional name Type)

Overrides: PlayerChatManager.AcceptText


AddRestriction

simulated function bool AddRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.AddRestriction


AddRestrictionID

simulated function bool AddRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.AddRestrictionID


ChatDebug

simulated function ChatDebug ()

Overrides: PlayerChatManager.ChatDebug


ClearRestriction

simulated function bool ClearRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.ClearRestriction


ClearRestrictionID

simulated function bool ClearRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.ClearRestrictionID


ClientIsBanned

simulated function bool ClientIsBanned (string PlayerHash)

Overrides: PlayerChatManager.ClientIsBanned


Count

simulated function int Count ()

Overrides: PlayerChatManager.Count


GetHashIndex

simulated protected function int GetHashIndex (string PlayerHash)


GetIDIndex

simulated protected function int GetIDIndex (int PlayerID)


GetPlayerHash

simulated protected function string GetPlayerHash (int PlayerID)


GetPlayerRestriction

simulated function byte GetPlayerRestriction (int PlayerID)

Overrides: PlayerChatManager.GetPlayerRestriction


IsBanned

function bool IsBanned (PlayerReplicationInfo PRI)

Overrides: PlayerChatManager.IsBanned


IsLocal

simulated function bool IsLocal ()


IsValid

simulated protected function bool IsValid (int i)


LoadChatBan

simulated protected function bool LoadChatBan (string PlayerHash, out byte OutRestriction)


LogChatRestriction

simulated function LogChatRestriction (int i)


MergeRestriction

simulated function bool MergeRestriction (int Index, byte NewType)


ReceiveBanInfo

simulated function ReceiveBanInfo (string S)

Overrides: PlayerChatManager.ReceiveBanInfo


SetRestriction

simulated function bool SetRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.SetRestriction


SetRestrictionID

simulated function bool SetRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.SetRestrictionID


StoreChatBan

simulated protected function StoreChatBan (string PlayerHash, byte Restriction)


TrackNewPlayer

simulated function TrackNewPlayer (int PlayerID, string PlayerHash, string PlayerAddress)

Overrides: PlayerChatManager.TrackNewPlayer


UnMergeRestriction

simulated function bool UnMergeRestriction (int Index, byte NewType)


UnTrackPlayer

simulated function UnTrackPlayer (int PlayerID)

Overrides: PlayerChatManager.UnTrackPlayer