Mostly Harmless

UE2:UnrealPlayerChatManager (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site

(Redirected from UE2:ChatBan (UT2004))
Jump to: navigation, search
UT2004 Object >> Actor >> Info >> PlayerChatManager >> UnrealPlayerChatManager

Contents

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

[edit] Constants

[edit] NOTEXT

Value: 1


[edit] NOSPEECH

Value: 2


[edit] NOVOICE

Value: 4


[edit] BANNED

Value: 8


[edit] Properties

[edit] ChatRestrictions

Type: array<ChatBan>

Modifiers: protected


[edit] StoredChatRestrictions

Type: array<StoredChatBan>

Modifiers: globalconfig, protected


[edit] Structs

[edit] ChatBan

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

[edit] StoredChatBan

string PlayerHash 
byte Restriction 

[edit] Functions

[edit] Events

[edit] AcceptVoice

event bool AcceptVoice (PlayerReplicationInfo SenderPRI)

Overrides: PlayerChatManager.AcceptVoice


[edit] Other instance functions

[edit] AcceptSpeech

function bool AcceptSpeech (PlayerReplicationInfo SenderPRI)

Overrides: PlayerChatManager.AcceptSpeech


[edit] AcceptText

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

Overrides: PlayerChatManager.AcceptText


[edit] AddRestriction

simulated function bool AddRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.AddRestriction


[edit] AddRestrictionID

simulated function bool AddRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.AddRestrictionID


[edit] ChatDebug

simulated function ChatDebug ()

Overrides: PlayerChatManager.ChatDebug


[edit] ClearRestriction

simulated function bool ClearRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.ClearRestriction


[edit] ClearRestrictionID

simulated function bool ClearRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.ClearRestrictionID


[edit] ClientIsBanned

simulated function bool ClientIsBanned (string PlayerHash)

Overrides: PlayerChatManager.ClientIsBanned


[edit] Count

simulated function int Count ()

Overrides: PlayerChatManager.Count


[edit] GetHashIndex

simulated protected function int GetHashIndex (string PlayerHash)


[edit] GetIDIndex

simulated protected function int GetIDIndex (int PlayerID)


[edit] GetPlayerHash

simulated protected function string GetPlayerHash (int PlayerID)


[edit] GetPlayerRestriction

simulated function byte GetPlayerRestriction (int PlayerID)

Overrides: PlayerChatManager.GetPlayerRestriction


[edit] IsBanned

function bool IsBanned (PlayerReplicationInfo PRI)

Overrides: PlayerChatManager.IsBanned


[edit] IsLocal

simulated function bool IsLocal ()


[edit] IsValid

simulated protected function bool IsValid (int i)


[edit] LoadChatBan

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


[edit] LogChatRestriction

simulated function LogChatRestriction (int i)


[edit] MergeRestriction

simulated function bool MergeRestriction (int Index, byte NewType)


[edit] ReceiveBanInfo

simulated function ReceiveBanInfo (string S)

Overrides: PlayerChatManager.ReceiveBanInfo


[edit] SetRestriction

simulated function bool SetRestriction (string PlayerHash, byte Type)

Overrides: PlayerChatManager.SetRestriction


[edit] SetRestrictionID

simulated function bool SetRestrictionID (int PlayerID, byte Type)

Overrides: PlayerChatManager.SetRestrictionID


[edit] StoreChatBan

simulated protected function StoreChatBan (string PlayerHash, byte Restriction)


[edit] TrackNewPlayer

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

Overrides: PlayerChatManager.TrackNewPlayer


[edit] UnMergeRestriction

simulated function bool UnMergeRestriction (int Index, byte NewType)


[edit] UnTrackPlayer

simulated function UnTrackPlayer (int PlayerID)

Overrides: PlayerChatManager.UnTrackPlayer