Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

xVoting.xVotingHandler

Extends
VotingHandler
Modifiers
config

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Info
      |   
      +-- Engine.VotingHandler
         |   
         +-- xVoting.xVotingHandler

Constants Summary
KICKVOTEALLOWED=True
MAPVOTEALLOWED=True
MATCHSETUPALLOWED=False

Variables Summary
boolbAutoDetectMode
boolbLevelSwitchPending
boolbMidGameVote
stringGameConfigPage
MapVoteHistoryHistory
array<KickVoteScore>KickVoteCount
stringlmsgAdminMapChange
stringlmsgAnonymousKickVote
stringlmsgGameConfigColumnTitle[6]
stringlmsgInvalidPassword
stringlmsgKickVote
stringlmsgKickVoteAdmin
stringlmsgMapVotedFor
stringlmsgMapVotedForWithCount
stringlmsgMapWon
stringlmsgMatchSetupPermission
stringlmsgMidGameVote
stringlmsgSpectatorsCantVote
intMapCount
array<MapVoteMapList>MapList
stringMapListConfigPage
array<MapVoteScore>MapVoteCount
class<MapVoteHistory>MapVoteHistoryClass
MatchConfigMatchProfile
array<VotingReplicationInfo>MVRI
stringPropDescription[17]
stringPropsDisplayText[17]
intScoreBoardTime
stringServerTravelString
intServerTravelTime
stringTextMessage
intTimeLeft
xVotingHandler
array<AccumulationData>AccInfo
boolbAccumulationMode
boolbAnonymousKicking
boolbAutoOpen
boolbDefaultToCurrentGameType
boolbEliminationMode
boolbKickVote
boolbMapVote
boolbMatchSetup
boolbScoreMode
intCurrentGameConfig
intDefaultGameConfig
array<MapVoteGameConfig>GameConfig
intKickPercent
stringMapListLoaderType
stringMapVoteHistoryType
intMidGameVotePercent
intMinMapCount
intRepeatLimit
intScoreBoardDelay
intServerNumber
intVoteTimeLimit
Inherited Variables from Engine.Info
BotsGroup, ChatGroup, GameGroup, KickVoteGroup, MapVoteGroup, RulesGroup, ServerGroup

Structures Summary
Inherited Structures from Engine.VotingHandler
AccumulationData, KickVoteScore, MapHistoryInfo, MapVoteGameConfig, MapVoteGameConfigLite, MapVoteMapList, MapVoteScore

Functions Summary
eventbool AcceptPlayInfoProperty (string PropertyName))
functionint AddConfigArrayItem (string ConfigArrayName))
function AddMap (string MapName, string Mutators, string GameOptions))
function AddMapVoteReplicationInfo (PlayerController Player))
function CloseAllVoteWindows ()))
functionMatchConfig CreateMatchProfile ()))
function DeleteConfigArrayItem (string ConfigArrayName, int RowIndex))
function FillPlayInfo (PlayInfo PlayInfo))
functionint GetAccVote (PlayerController Player))
functionstring GetConfigArrayColumnTitle (string ConfigArrayName, int ColumnIndex))
functionstring GetConfigArrayData (string ConfigArrayName, int RowIndex, int ColumnIndex))
functionint GetConfigArrayItemCount (string ConfigArrayName))
function GetDefaultMap (out int mapidx, out int gameidx))
eventstring GetDescriptionText (string PropName))
functionMapVoteGameConfigLite GetGameConfig (int p_GameConfigIndex))
functionMapVoteMapList GetMapList (int p_MapIndex))
functionint GetMVRIIndex (PlayerController Player))
functionfloat GetPlayerScore (PlayerController Player))
function GetServerDetails (out GameInfo.ServerResponseLine ServerState ))
functionbool HandleRestartGame ()))
functionbool IsEnabled ()))
functionbool IsValidVote (int MapIndex, int GameIndex))
function KickPlayer (int PlayerIndex))
function LoadMapList ()))
functionbool MatchSetupLogin (string UserID, string Password, Actor Requestor, out int SecLevel))
function MatchSetupLogout (Actor Requestor))
function OpenAllVoteWindows ()))
function PlayerExit (Controller Exiting))
function PlayerJoin (PlayerController Player))
function PostBeginPlay ()))
function PropagateValue (VotingReplicationInfo Sender, string Type, string SettingName, string NewValue ))
function ReloadAll (optional bool bParam ))
function ReloadMatchConfig (bool bRefreshMaps, bool bRefreshMuts, optional PlayerController Caller ))
function SaveAccVotes (int WinningMapIndex, int WinningGameIndex))
functionstring SetupGameMap (MapVoteMapList MapInfo, int GameIndex, MapHistoryInfo MapHistoryInfo))
function SubmitKickVote (int PlayerID, Actor Voter))
function SubmitMapVote (int MapIndex, int GameIndex, Actor Voter))
function TallyKickVotes ()))
function TallyVotes (bool bForceMapSwitch))
event timer ()))
function UpdateConfigArrayItem (string ConfigArrayName, int RowIndex, int ColumnIndex, string NewValue))
function UpdateKickVoteCount (int PlayerID, int VoteCountDelta))
function UpdateVoteCount (int MapIndex, int GameIndex, int VoteCount))
Inherited Functions from Engine.VotingHandler
AddConfigArrayItem, DeleteConfigArrayItem, FillPlayInfo, GetConfigArrayColumnTitle, GetConfigArrayData, GetConfigArrayItemCount, GetServerDetails, HandleRestartGame, IsEnabled, PlayerExit, PlayerJoin, ReloadAll, UpdateConfigArrayItem
Inherited Functions from Engine.Info
AcceptPlayInfoProperty, AllowClassRemoval, FillPlayInfo, GetDescriptionText, GetSecurityLevel


Constants Detail

KICKVOTEALLOWED Source code

const KICKVOTEALLOWED = True;

MAPVOTEALLOWED Source code

const MAPVOTEALLOWED = True;

MATCHSETUPALLOWED Source code

const MATCHSETUPALLOWED = False;


Variables Detail

bAutoDetectMode Source code

var bool bAutoDetectMode;

bLevelSwitchPending Source code

var bool bLevelSwitchPending;

bMidGameVote Source code

var bool bMidGameVote;

GameConfigPage Source code

var string GameConfigPage;

History Source code

var MapVoteHistory History;

KickVoteCount Source code

var array<KickVoteScore> KickVoteCount;

lmsgAdminMapChange Source code

var localized string lmsgAdminMapChange;

lmsgAnonymousKickVote Source code

var localized string lmsgAnonymousKickVote;

lmsgGameConfigColumnTitle[6] Source code

var localized string lmsgGameConfigColumnTitle[6];

lmsgInvalidPassword Source code

var localized string lmsgInvalidPassword;

lmsgKickVote Source code

var localized string lmsgKickVote;

lmsgKickVoteAdmin Source code

var localized string lmsgKickVoteAdmin;

lmsgMapVotedFor Source code

var localized string lmsgMapVotedFor;

lmsgMapVotedForWithCount Source code

var localized string lmsgMapVotedForWithCount;

lmsgMapWon Source code

var localized string lmsgMapWon;

lmsgMatchSetupPermission Source code

var localized string lmsgMatchSetupPermission;

lmsgMidGameVote Source code

var localized string lmsgMidGameVote;

lmsgSpectatorsCantVote Source code

var localized string lmsgSpectatorsCantVote;

MapCount Source code

var int MapCount;

MapList Source code

var array<MapVoteMapList> MapList;

MapListConfigPage Source code

var string MapListConfigPage;

MapVoteCount Source code

var array<MapVoteScore> MapVoteCount;

MapVoteHistoryClass Source code

var class<MapVoteHistory> MapVoteHistoryClass;

MatchProfile Source code

var MatchConfig MatchProfile;

MVRI Source code

var array<VotingReplicationInfo> MVRI;

PropDescription[17] Source code

var localized string PropDescription[17];

PropsDisplayText[17] Source code

var localized string PropsDisplayText[17];

ScoreBoardTime Source code

var int ScoreBoardTime;

ServerTravelString Source code

var string ServerTravelString;

ServerTravelTime Source code

var int ServerTravelTime;

TextMessage Source code

var string TextMessage;

TimeLeft Source code

var int TimeLeft;

xVotingHandler

AccInfo Source code

var(xVotingHandler) config array<AccumulationData> AccInfo;

bAccumulationMode Source code

var(xVotingHandler) config bool bAccumulationMode;

bAnonymousKicking Source code

var(xVotingHandler) config bool bAnonymousKicking;

bAutoOpen Source code

var(xVotingHandler) config bool bAutoOpen;

bDefaultToCurrentGameType Source code

var(xVotingHandler) config bool bDefaultToCurrentGameType;

bEliminationMode Source code

var(xVotingHandler) config bool bEliminationMode;

bKickVote Source code

var(xVotingHandler) config bool bKickVote;

bMapVote Source code

var(xVotingHandler) config bool bMapVote;

bMatchSetup Source code

var(xVotingHandler) config bool bMatchSetup;

bScoreMode Source code

var(xVotingHandler) config bool bScoreMode;

CurrentGameConfig Source code

var(xVotingHandler) config int CurrentGameConfig;

DefaultGameConfig Source code

var(xVotingHandler) config int DefaultGameConfig;

GameConfig Source code

var(xVotingHandler) config array<MapVoteGameConfig> GameConfig;

KickPercent Source code

var(xVotingHandler) config int KickPercent;

MapListLoaderType Source code

var(xVotingHandler) config string MapListLoaderType;

MapVoteHistoryType Source code

var(xVotingHandler) config string MapVoteHistoryType;

MidGameVotePercent Source code

var(xVotingHandler) config int MidGameVotePercent;

MinMapCount Source code

var(xVotingHandler) config int MinMapCount;

RepeatLimit Source code

var(xVotingHandler) config int RepeatLimit;

ScoreBoardDelay Source code

var(xVotingHandler) config int ScoreBoardDelay;

ServerNumber Source code

var(xVotingHandler) config int ServerNumber;

VoteTimeLimit Source code

var(xVotingHandler) config int VoteTimeLimit;


Functions Detail

AcceptPlayInfoProperty Source code

static event bool AcceptPlayInfoProperty ( string PropertyName) )

AddConfigArrayItem Source code

function int AddConfigArrayItem ( string ConfigArrayName) )

AddMap Source code

function AddMap ( string MapName, string Mutators, string GameOptions) )

AddMapVoteReplicationInfo Source code

function AddMapVoteReplicationInfo ( PlayerController Player) )

CloseAllVoteWindows Source code

function CloseAllVoteWindows ( ) )

CreateMatchProfile Source code

function MatchConfig CreateMatchProfile ( ) )

DeleteConfigArrayItem Source code

function DeleteConfigArrayItem ( string ConfigArrayName, int RowIndex) )

FillPlayInfo Source code

static function FillPlayInfo ( PlayInfo PlayInfo) )

GetAccVote Source code

function int GetAccVote ( PlayerController Player) )

GetConfigArrayColumnTitle Source code

function string GetConfigArrayColumnTitle ( string ConfigArrayName, int ColumnIndex) )

GetConfigArrayData Source code

function string GetConfigArrayData ( string ConfigArrayName, int RowIndex, int ColumnIndex) )

GetConfigArrayItemCount Source code

function int GetConfigArrayItemCount ( string ConfigArrayName) )

GetDefaultMap Source code

function GetDefaultMap ( out int mapidx, out int gameidx) )

GetDescriptionText Source code

static event string GetDescriptionText ( string PropName) )

GetGameConfig Source code

function MapVoteGameConfigLite GetGameConfig ( int p_GameConfigIndex) )

GetMapList Source code

function MapVoteMapList GetMapList ( int p_MapIndex) )

GetMVRIIndex Source code

function int GetMVRIIndex ( PlayerController Player) )

GetPlayerScore Source code

function float GetPlayerScore ( PlayerController Player) )

GetServerDetails Source code

function GetServerDetails ( out GameInfo.ServerResponseLine ServerState ) )

HandleRestartGame Source code

function bool HandleRestartGame ( ) )

IsEnabled Source code

static function bool IsEnabled ( ) )

IsValidVote Source code

function bool IsValidVote ( int MapIndex, int GameIndex) )

KickPlayer Source code

function KickPlayer ( int PlayerIndex) )

LoadMapList Source code

function LoadMapList ( ) )

MatchSetupLogin Source code

function bool MatchSetupLogin ( string UserID, string Password, Actor Requestor, out int SecLevel) )

MatchSetupLogout Source code

function MatchSetupLogout ( Actor Requestor) )

OpenAllVoteWindows Source code

function OpenAllVoteWindows ( ) )

PlayerExit Source code

function PlayerExit ( Controller Exiting) )

PlayerJoin Source code

function PlayerJoin ( PlayerController Player) )

PostBeginPlay Source code

function PostBeginPlay ( ) )

PropagateValue Source code

function PropagateValue ( VotingReplicationInfo Sender, string Type, string SettingName, string NewValue ) )

ReloadAll Source code

function ReloadAll ( optional bool bParam ) )

ReloadMatchConfig Source code

function ReloadMatchConfig ( bool bRefreshMaps, bool bRefreshMuts, optional PlayerController Caller ) )

SaveAccVotes Source code

function SaveAccVotes ( int WinningMapIndex, int WinningGameIndex) )

SetupGameMap Source code

function string SetupGameMap ( MapVoteMapList MapInfo, int GameIndex, MapHistoryInfo MapHistoryInfo) )

SubmitKickVote Source code

function SubmitKickVote ( int PlayerID, Actor Voter) )

SubmitMapVote Source code

function SubmitMapVote ( int MapIndex, int GameIndex, Actor Voter) )

TallyKickVotes Source code

function TallyKickVotes ( ) )

TallyVotes Source code

function TallyVotes ( bool bForceMapSwitch) )

timer Source code

event timer ( ) )

UpdateConfigArrayItem Source code

function UpdateConfigArrayItem ( string ConfigArrayName, int RowIndex, int ColumnIndex, string NewValue) )

UpdateKickVoteCount Source code

function UpdateKickVoteCount ( int PlayerID, int VoteCountDelta) )

UpdateVoteCount Source code

function UpdateVoteCount ( int MapIndex, int GameIndex, int VoteCount) )


Defaultproperties

defaultproperties
{
     VoteTimeLimit=70
     ScoreBoardDelay=5
     bAutoOpen=True
     MidGameVotePercent=50
     MinMapCount=2
     MapVoteHistoryType="xVoting.MapVoteHistory_INI"
     RepeatLimit=4
     bDefaultToCurrentGameType=True
     KickPercent=51
     bAnonymousKicking=True
     MapListLoaderType="xVoting.DefaultMapListLoader"
     ServerNumber=1
     GameConfigPage="xVoting.MapVoteGameConfigPage"
     MapListConfigPage="xVoting.MapVoteMapListConfigPage"
     lmsgInvalidPassword="The password entered is invalid !"
     lmsgMatchSetupPermission="Sorry, you do not have permission to use Match Setup !"
     lmsgKickVote="%playername1% placed a kick vote against %playername2%"
     lmsgAnonymousKickVote="A kick vote has been placed against %playername%"
     lmsgKickVoteAdmin="%playername% attempted to submit a kick vote against the server administrator !"
     lmsgMapWon="%mapname% has won !"
     lmsgMidGameVote="Mid-Game Map Voting has been initiated !!!!"
     lmsgSpectatorsCantVote="Sorry, Spectators can not vote."
     lmsgMapVotedFor="%playername% has voted for %mapname%"
     lmsgMapVotedForWithCount="%playername% has placed %votecount% votes for %mapname%"
     PropsDisplayText(0)="Enable Map Voting"
     PropsDisplayText(1)="Auto Open GUI"
     PropsDisplayText(2)="ScoreBoard Delay"
     PropsDisplayText(3)="Score Mode"
     PropsDisplayText(4)="Accumulation Mode"
     PropsDisplayText(5)="Elimination Mode"
     PropsDisplayText(6)="Minimum Maps"
     PropsDisplayText(7)="Repeat Limit"
     PropsDisplayText(8)="Voting Time Limit"
     PropsDisplayText(9)="Mid-Game Vote Percent"
     PropsDisplayText(10)="Default Current GameType"
     PropsDisplayText(11)="Enable Kick Voting"
     PropsDisplayText(12)="Kick Vote Percent"
     PropsDisplayText(13)="Anonymous Kick Voting"
     PropsDisplayText(14)="Allow Match Setup"
     PropsDisplayText(15)="Game Configuration"
     PropsDisplayText(16)="Map List Configuration"
     PropDescription(0)="If enabled players can vote for maps."
     PropDescription(1)="If enabled the Map voting interface will automatically open at the end of each game."
     PropDescription(2)="Sets the number of seconds to delay after the end of each game before opening the voting interface."
     PropDescription(3)="If enabled, each player gets his or her score worth of votes."
     PropDescription(4)="If enabled, each player will accumulate votes each game until they win."
     PropDescription(5)="If enabled, available maps are disabled as they are played until there are X maps left."
     PropDescription(6)="The number of enabled maps that remain in the map list (in Elimination mode) before the map list is reset."
     PropDescription(7)="Number of previously played maps that should not be votable."
     PropDescription(8)="Limits how much time (in seconds) to allow for voting."
     PropDescription(9)="Percentage of players that must vote to trigger a Mid-Game vote."
     PropDescription(10)="If enabled, and there are no players on the server then the server will stay on the current game type."
     PropDescription(11)="If enable players can vote to kick other players."
     PropDescription(12)="The percentage of players that must vote against an individual player to have them kicked from the server."
     PropDescription(13)="If enabled players can place Kick votes without anyone knowing who placed the vote."
     PropDescription(14)="Enables match setup on the server - valid admin username & password is required in order to use this feature"
     PropDescription(15)="Opens the map voting game configuration screen"
     PropDescription(16)="Opens the map voting list configuration screen"
     lmsgAdminMapChange="Admin has forced map switch to %mapname%"
     lmsgGameConfigColumnTitle(0)="GameType"
     lmsgGameConfigColumnTitle(1)="MapPrefixes"
     lmsgGameConfigColumnTitle(2)="Abbreviation"
     lmsgGameConfigColumnTitle(3)="Name"
     lmsgGameConfigColumnTitle(4)="Mutators"
     lmsgGameConfigColumnTitle(5)="Options"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 09:50:00.714 - Created with UnCodeX