The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:XVotingHandler (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> Actor >> Info >> VotingHandler >> XVotingHandler

Contents

Package: 
xVoting

Class: xVoting.xVotingHandler

xVotingHandler handles the server side of map voting, kick voting, and match setup.

Written by Bruce Bickar (c) 2003, Epic Games, Inc. All Rights Reserved

Constants[edit]

MAPVOTEALLOWED[edit]

Value: True


KICKVOTEALLOWED[edit]

Value: True


MATCHSETUPALLOWED[edit]

Value: False


Properties[edit]

Property group 'xVotingHandler'[edit]

AccInfo[edit]

Type: array<VotingHandler.AccumulationData>

Modifiers: config

used to save player's unused votes between maps when in Accumulation mode

bAccumulationMode[edit]

Type: bool

Modifiers: config


bAnonymousKicking[edit]

Type: bool

Modifiers: config


Default value: True

bAutoOpen[edit]

Type: bool

Modifiers: config


Default value: True

bDefaultToCurrentGameType[edit]

Type: bool

Modifiers: config


Default value: True

bEliminationMode[edit]

Type: bool

Modifiers: config


bKickVote[edit]

Type: bool

Modifiers: config


bMapVote[edit]

Type: bool

Modifiers: config


bMatchSetup[edit]

Type: bool

Modifiers: config


bScoreMode[edit]

Type: bool

Modifiers: config


CurrentGameConfig[edit]

Type: int

Modifiers: config


DefaultGameConfig[edit]

Type: int

Modifiers: config


GameConfig[edit]

Type: array<VotingHandler.MapVoteGameConfig>

Modifiers: config


KickPercent[edit]

Type: int

Modifiers: config


Default value: 51

MapListLoaderType[edit]

Type: string

Modifiers: config


Default value: "xVoting.DefaultMapListLoader"

MapVoteHistoryType[edit]

Type: string

Modifiers: config


Default value: "xVoting.MapVoteHistory_INI"

MidGameVotePercent[edit]

Type: int

Modifiers: config


Default value: 50

MinMapCount[edit]

Type: int

Modifiers: config


Default value: 2

RepeatLimit[edit]

Type: int

Modifiers: config


Default value: 4

ScoreBoardDelay[edit]

Type: int

Modifiers: config


Default value: 5

ServerNumber[edit]

Type: int

Modifiers: config


Default value: 1

VoteTimeLimit[edit]

Type: int

Modifiers: config


Default value: 70

Internal variables[edit]

bAutoDetectMode[edit]

Type: bool


bLevelSwitchPending[edit]

Type: bool


bMidGameVote[edit]

Type: bool


GameConfigPage[edit]

Type: string


Default value: "xVoting.MapVoteGameConfigPage"

History[edit]

Type: MapVoteHistory


KickVoteCount[edit]

Type: array<VotingHandler.KickVoteScore>


lmsgAdminMapChange[edit]

Type: string

Modifiers: localized


Default value: "Admin has forced map switch to %mapname%"

lmsgAnonymousKickVote[edit]

Type: string

Modifiers: localized


Default value: "A kick vote has been placed against %playername%"

lmsgGameConfigColumnTitle[edit]

Type: string

Array size: 6

Modifiers: localized


Default value, index 0: "GameType"

Default value, index 1: "MapPrefixes"

Default value, index 2: "Abbreviation"

Default value, index 3: "Name"

Default value, index 4: "Mutators"

Default value, index 5: "Options"

lmsgInvalidPassword[edit]

Type: string

Modifiers: localized


Default value: "The password entered is invalid !"

lmsgKickVote[edit]

Type: string

Modifiers: localized


Default value: "%playername1% placed a kick vote against %playername2%"

lmsgKickVoteAdmin[edit]

Type: string

Modifiers: localized


Default value: "%playername% attempted to submit a kick vote against the server administrator !"

lmsgMapVotedFor[edit]

Type: string

Modifiers: localized


Default value: "%playername% has voted for %mapname%"

lmsgMapVotedForWithCount[edit]

Type: string

Modifiers: localized


Default value: "%playername% has placed %votecount% votes for %mapname%"

lmsgMapWon[edit]

Type: string

Modifiers: localized


Default value: "%mapname% has won !"

lmsgMatchSetupPermission[edit]

Type: string

Modifiers: localized


Default value: "Sorry, you do not have permission to use Match Setup !"

lmsgMidGameVote[edit]

Type: string

Modifiers: localized


Default value: "Mid-Game Map Voting has been initiated !!!!"

lmsgSpectatorsCantVote[edit]

Type: string

Modifiers: localized


Default value: "Sorry, Spectators can not vote."

MapCount[edit]

Type: int

number of maps

MapList[edit]

Type: array<VotingHandler.MapVoteMapList>


MapListConfigPage[edit]

Type: string


Default value: "xVoting.MapVoteMapListConfigPage"

MapVoteCount[edit]

Type: array<VotingHandler.MapVoteScore>


MapVoteHistoryClass[edit]

Type: class<MapVoteHistory>


MatchProfile[edit]

Type: MatchConfig


MVRI[edit]

Type: array<VotingReplicationInfo>

used to communicated between players and server

PropDescription[edit]

Type: string

Array size: 17

Modifiers: localized


Default value, index 0: "If enabled players can vote for maps."

Default value, index 1: "If enabled the Map voting interface will automatically open at the end of each game."

Default value, index 10: "If enabled, and there are no players on the server then the server will stay on the current game type."

Default value, index 11: "If enable players can vote to kick other players."

Default value, index 12: "The percentage of players that must vote against an individual player to have them kicked from the server."

Default value, index 13: "If enabled players can place Kick votes without anyone knowing who placed the vote."

Default value, index 14: "Enables match setup on the server - valid admin username & password is required in order to use this feature"

Default value, index 15: "Opens the map voting game configuration screen"

Default value, index 16: "Opens the map voting list configuration screen"

Default value, index 17: "Sets the number of seconds to delay after the end of each game before opening the voting interface."

Default value, index 18: "If enabled, each player gets his or her score worth of votes."

Default value, index 19: "If enabled, each player will accumulate votes each game until they win."

Default value, index 20: "If enabled, available maps are disabled as they are played until there are X maps left."

Default value, index 21: "The number of enabled maps that remain in the map list (in Elimination mode) before the map list is reset."

Default value, index 22: "Number of previously played maps that should not be votable."

Default value, index 23: "Limits how much time (in seconds) to allow for voting."

Default value, index 24: "Percentage of players that must vote to trigger a Mid-Game vote."

PropsDisplayText[edit]

Type: string

Array size: 17

Modifiers: localized


Default value, index 0: "Enable Map Voting"

Default value, index 1: "Auto Open GUI"

Default value, index 10: "Default Current GameType"

Default value, index 11: "Enable Kick Voting"

Default value, index 12: "Kick Vote Percent"

Default value, index 13: "Anonymous Kick Voting"

Default value, index 14: "Allow Match Setup"

Default value, index 15: "Game Configuration"

Default value, index 16: "Map List Configuration"

Default value, index 17: "ScoreBoard Delay"

Default value, index 18: "Score Mode"

Default value, index 19: "Accumulation Mode"

Default value, index 20: "Elimination Mode"

Default value, index 21: "Minimum Maps"

Default value, index 22: "Repeat Limit"

Default value, index 23: "Voting Time Limit"

Default value, index 24: "Mid-Game Vote Percent"

ScoreBoardTime[edit]

Type: int


ServerTravelString[edit]

Type: string


ServerTravelTime[edit]

Type: int


TextMessage[edit]

Type: string


TimeLeft[edit]

Type: int


Functions[edit]

Static events[edit]

AcceptPlayInfoProperty[edit]

static event bool AcceptPlayInfoProperty (string PropertyName)

Overrides: Info.AcceptPlayInfoProperty


GetDescriptionText[edit]

static event string GetDescriptionText (string PropName)

Overrides: Info.GetDescriptionText


Other static functions[edit]

FillPlayInfo[edit]

static function FillPlayInfo (PlayInfo PlayInfo)

Overrides: VotingHandler.FillPlayInfo


IsEnabled[edit]

static function bool IsEnabled ()

Overrides: VotingHandler.IsEnabled


Events[edit]

PostBeginPlay[edit]

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


timer[edit]

event timer ()

Overrides: Actor.Timer


Other instance functions[edit]

See xVotingHandler instance functions.