Mostly Harmless

UE3:QHCurrent (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> QHCurrent
Package: 
WebAdmin
Implemented interfaces
IQueryHandler

The query handler that provides information about the current game. It will also set the start page for the webadmin.

Copyright 2008 Epic Games, Inc. All Rights Reserved

Author: Michiel 'elmuerte' Hendriks

Properties[edit]

adminCmdHandler[edit]

Type: AdminCommandHandler

Instance that handled "Admin" console command aliases.

AdminCommandHandlerClass[edit]

Type: string

Modifiers: config

The AdminCommandHandler class to use for handling the admin console command hack.

Default value: "WebAdmin.AdminCommandHandler"

bAdminConsoleCommandsHack[edit]

Type: bool

Modifiers: config

if true use the hack to access some special admin commands lick "kickban ...", "restartlevel". If false these commands would not be available

Default value: True

bConsoleEnabled[edit]

Type: bool

Modifiers: config

If true the management console will be available. This will allow users to directly enter console commands on the server. This means that the user will have the ability to shutdown the server or execute commands that change certain core variables.

Default value: True

bEnableTeamChat[edit]

Type: bool

Modifiers: config

if true team chat will be enabled.

Default value: True

ChatRefresh[edit]

Type: int

Modifiers: config

Refresh time of the chat console

Default value: 5000

cssHidden[edit]

Type: string

CSS code to make HTML elements hidden.

Default value: "display: none;"

cssVisible[edit]

Type: string

CSS code to make things visible.

denyConsoleCommands[edit]

Type: array<string>

Modifiers: config

Lists of console commands that are not allowed to be executed.

Default value, index 0: "say"

Default value, index 1: "obj"

Default value, index 2: "debug"

Default value, index 3: "flush"

Default value, index 4: "set"

Default value, index 5: "get engine.accesscontrol"

denyUrlOptions[edit]

Type: array<string>

Modifiers: config

Options in this list are not allowed to be set in the "change game" page. They will removed from the url.

Default value, index 0: "GamePassword"

Default value, index 1: "AdminPassword"

Default value, index 2: "Port"

Default value, index 3: "QueryPort"

factions[edit]

Type: array<FactionCharacters>

List of factions and their characters

newUrl[edit]

Type: string

Modifiers: private

Will hold the url where to switch the game to. Game switching a delayed for a few ms.

sortedPRI[edit]

Type: array<PlayerReplicationInfo>

Will hold a sorted player replication info list.

webadmin[edit]

Type: WebAdmin


Structs[edit]

FactionCharacters[edit]

string factionName 
UTCustomChar_Data.FactionInfo fi 
array<UTCustomChar_Data.CharacterInfo> chars 

Functions[edit]

Static functions[edit]

comparePRI[edit]

static function bool comparePRI (PlayerReplicationInfo PRI1, PlayerReplicationInfo PRI2, string key)


getPlayerKey[edit]

static function string getPlayerKey (PlayerReplicationInfo pri)


substPri[edit]

static function substPri (IQueryHandler.WebAdminQuery q, PlayerReplicationInfo pri)


Events[edit]

ChangeGameTimer[edit]

event ChangeGameTimer ()


Other instance functions[edit]

banByHash[edit]

protected function banByHash (PlayerController PC)


banByID[edit]

protected function banByID (PlayerController PC)


banByIP[edit]

protected function banByIP (PlayerController PC)


BroadcastMessage[edit]

function BroadcastMessage (Controller Sender, int teamidx, coerce string Msg, name Type)


buildSortedPRI[edit]

function buildSortedPRI (string sortkey, optional bool reverse, optional bool includeBots)


cleanup[edit]

function cleanup ()

Specified by: IQueryHandler.cleanup

Cleanup (prepare for being destroyed). If the implementation extends Object it should set all actor references to none.

CreateTeamChatProxy[edit]

function CreateTeamChatProxy ()


handleBots[edit]

function handleBots (IQueryHandler.WebAdminQuery q)


handleConsole[edit]

function handleConsole (IQueryHandler.WebAdminQuery q)


handleCurrent[edit]

function handleCurrent (IQueryHandler.WebAdminQuery q)


handleCurrentChange[edit]

function handleCurrentChange (IQueryHandler.WebAdminQuery q)


handleCurrentChangeData[edit]

function handleCurrentChangeData (IQueryHandler.WebAdminQuery q)


handleCurrentChat[edit]

function handleCurrentChat (IQueryHandler.WebAdminQuery q)


handleCurrentChatData[edit]

function handleCurrentChatData (IQueryHandler.WebAdminQuery q)


handleCurrentPlayers[edit]

function handleCurrentPlayers (IQueryHandler.WebAdminQuery q)


handleCurrentPlayersAction[edit]

function bool handleCurrentPlayersAction (IQueryHandler.WebAdminQuery q)


handleCurrentPlayersData[edit]

function handleCurrentPlayersData (IQueryHandler.WebAdminQuery q)


handleQuery[edit]

function bool handleQuery (IQueryHandler.WebAdminQuery q)

Specified by: IQueryHandler.handleQuery

(Description copied from IQueryHandler.handleQuery)
Called by the webadmin to request the query handler to handle this query.

Returns:

true when the query was handled.

init[edit]

function init (WebAdmin webapp)

Specified by: IQueryHandler.init

Called when the WebAdmin creates and initializes this query handler.

procChatData[edit]

function procChatData (IQueryHandler.WebAdminQuery q, optional int startFrom, optional string substvar)


procCurrentChange[edit]

function procCurrentChange (IQueryHandler.WebAdminQuery q, string currentGameType, string curmap, array<stringcurrentMutators, out string outMaps, out string outMutators, out int outMutatorGroups)


registerMenuItems[edit]

function registerMenuItems (WebAdminMenu menu)

Specified by: IQueryHandler.registerMenuItems

Called by the webadmin to request the query handler to add its menu items to the web admin menu. The menu is used to determine what query handler will be handle a given path. Paths not registered will be passed to all query handlers until one returns true.

unhandledQuery[edit]

function bool unhandledQuery (IQueryHandler.WebAdminQuery q)

Specified by: IQueryHandler.unhandledQuery

(Description copied from IQueryHandler.unhandledQuery)
Called in case of an unhandled path.

Returns:

true when the query was handled.