Mostly Harmless

UE2:UnrealPlayerChatManager (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from UE2:StoredChatBan (UT2004))
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[edit]

NOTEXT[edit]

Value: 1


NOSPEECH[edit]

Value: 2


NOVOICE[edit]

Value: 4


BANNED[edit]

Value: 8


Properties[edit]

ChatRestrictions[edit]

Type: array<ChatBan>

Modifiers: protected


StoredChatRestrictions[edit]

Type: array<StoredChatBan>

Modifiers: globalconfig, protected


Structs[edit]

ChatBan[edit]

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

StoredChatBan[edit]

string PlayerHash 
byte Restriction 

Functions[edit]

Events[edit]

AcceptVoice[edit]

event bool AcceptVoice (PlayerReplicationInfo SenderPRI)

Overrides: PlayerChatManager.AcceptVoice


Other instance functions[edit]

AcceptSpeech[edit]

function bool AcceptSpeech (PlayerReplicationInfo SenderPRI)

Overrides: PlayerChatManager.AcceptSpeech


AcceptText[edit]

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

Overrides: PlayerChatManager.AcceptText


AddRestriction[edit]

simulated function bool AddRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.AddRestriction


AddRestrictionID[edit]

simulated function bool AddRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.AddRestrictionID


ChatDebug[edit]

simulated function ChatDebug ()

Overrides: PlayerChatManager.ChatDebug


ClearRestriction[edit]

simulated function bool ClearRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.ClearRestriction


ClearRestrictionID[edit]

simulated function bool ClearRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.ClearRestrictionID


ClientIsBanned[edit]

simulated function bool ClientIsBanned (string PlayerHash)

Overrides: PlayerChatManager.ClientIsBanned


Count[edit]

simulated function int Count ()

Overrides: PlayerChatManager.Count


GetHashIndex[edit]

simulated protected function int GetHashIndex (string PlayerHash)


GetIDIndex[edit]

simulated protected function int GetIDIndex (int PlayerID)


GetPlayerHash[edit]

simulated protected function string GetPlayerHash (int PlayerID)


GetPlayerRestriction[edit]

simulated function byte GetPlayerRestriction (int PlayerID)

Overrides: PlayerChatManager.GetPlayerRestriction


IsBanned[edit]

function bool IsBanned (PlayerReplicationInfo PRI)

Overrides: PlayerChatManager.IsBanned


IsLocal[edit]

simulated function bool IsLocal ()


IsValid[edit]

simulated protected function bool IsValid (int i)


LoadChatBan[edit]

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


LogChatRestriction[edit]

simulated function LogChatRestriction (int i)


MergeRestriction[edit]

simulated function bool MergeRestriction (int Index, byte NewType)


ReceiveBanInfo[edit]

simulated function ReceiveBanInfo (string S)

Overrides: PlayerChatManager.ReceiveBanInfo


SetRestriction[edit]

simulated function bool SetRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.SetRestriction


SetRestrictionID[edit]

simulated function bool SetRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.SetRestrictionID


StoreChatBan[edit]

simulated protected function StoreChatBan (string PlayerHash, byte Restriction)


TrackNewPlayer[edit]

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

Overrides: PlayerChatManager.TrackNewPlayer


UnMergeRestriction[edit]

simulated function bool UnMergeRestriction (int Index, byte NewType)


UnTrackPlayer[edit]

simulated function UnTrackPlayer (int PlayerID)

Overrides: PlayerChatManager.UnTrackPlayer