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

TribesVoting.TribesVotingHandler

Extends
VotingHandler
Modifiers
config

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Info
      |   
      +-- Engine.VotingHandler
         |   
         +-- TribesVoting.TribesVotingHandler

Variables Summary
array<AdminVoteScore>AdminVoteCount
boolbLevelSwitchPending
boolbMidGameVote
stringGameConfigPage
array<KickVoteScore>KickVoteCount
stringlmsgAdminMapChange
stringlmsgAdminVote
stringlmsgAdminVoteAdmin
stringlmsgAnonymousAdminVote
stringlmsgAnonymousKickVote
stringlmsgGameConfigColumnTitle[6]
stringlmsgInvalidPassword
stringlmsgKickVote
stringlmsgKickVoteAdmin
stringlmsgMapVotedFor
stringlmsgMapVotedForWithCount
stringlmsgMapWon
stringlmsgMatchSetupPermission
stringlmsgMidGameVote
stringlmsgSpectatorsCantVote
stringlmsgTeamDamageDisabled
stringlmsgTeamDamageEnabled
stringlmsgTeamDamageVote
stringlmsgTournamentModeDisabled
stringlmsgTournamentModeEnabled
stringlmsgTournamentVote
intMapCount
array<MapVoteMapList>MapList
stringMapListConfigPage
array<MapVoteScore>MapVoteCount
array<VotingReplicationInfo>MVRI
stringPropDescription[24]
stringPropsDisplayText[24]
intScoreBoardTime
stringServerTravelString
intServerTravelTime
TeamDamageVoteScoreTeamDamageVoteCount
stringTextMessage
intTimeLeft
TournamentVoteScoreTournamentVoteCount
TribesVotingHandler
array<AccumulationData>AccInfo
intAdminPercent
boolbAccumulationMode
boolbAdminVote
boolbAnonymousAdmining
boolbAnonymousKicking
boolbAutoOpen
boolbDefaultToCurrentGameType
boolbEliminationMode
boolbKickVote
boolbMapVote
boolbMatchSetup
boolbScoreMode
boolbTeamDamageVote
boolbTournamentVote
intCurrentGameConfig
intDefaultGameConfig
array<MapVoteGameConfig>GameConfig
intKickPercent
stringMapVoteHistoryType
intMidGameVotePercent
intMinMapCount
intRepeatLimit
intScoreBoardDelay
intServerNumber
intTeamDamagePercent
intTournamentPercent
intVoteTimeLimit

Structures Summary
Inherited Structures from Engine.VotingHandler
AccumulationData, AdminVoteScore, KickVoteScore, MapHistoryInfo, MapVoteGameConfig, MapVoteGameConfigLite, MapVoteMapList, MapVoteScore, TeamDamageVoteScore, TournamentVoteScore
Inherited Structures from Engine.Info
KeyValuePair, PlayerResponseLine, ServerResponseLine

Functions Summary
eventbool AcceptPlayInfoProperty (string PropertyName))
functionint AddConfigArrayItem (string ConfigArrayName))
function AddVoteReplicationInfo (PlayerController Player))
function AdminPlayer (int PlayerIndex))
function CloseAllVoteWindows ()))
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 ()))
function KickPlayer (int PlayerIndex))
function LoadGameTypesInternal ()))
function LoadMapList ()))
function LoadMapListInternal ()))
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))
function SubmitAdminVote (int PlayerID, Actor Voter))
function SubmitKickVote (int PlayerID, Actor Voter))
function SubmitMapVote (int MapIndex, int GameIndex, Actor Voter))
function SubmitTeamDamageVote (bool vote, Actor Voter))
function SubmitTournamentVote (bool vote, Actor Voter))
function TallyAdminVotes ()))
function TallyKickVotes ()))
function TallyMapVotes (bool bForceMapSwitch))
function TallyTeamDamageVotes ()))
function TallyTournamentVotes ()))
event timer ()))
function UpdateAdminVoteCount (int PlayerID, int VoteCountDelta))
function UpdateConfigArrayItem (string ConfigArrayName, int RowIndex, int ColumnIndex, string NewValue))
function UpdateKickVoteCount (int PlayerID, int VoteCountDelta))
function UpdateTeamDamageVoteCount (int yesVoteDelta, int noVoteDelta))
function UpdateTournamentVoteCount (int yesVoteDelta, int noVoteDelta))
function UpdateVoteCount (int MapIndex, int GameIndex, int VoteCount))
Inherited Functions from Engine.VotingHandler
AddConfigArrayItem, DeleteConfigArrayItem, FillPlayInfo, GetConfigArrayColumnTitle, GetConfigArrayData, GetConfigArrayItemCount, GetServerDetails, HandleRestartGame, PlayerExit, PlayerJoin, ReloadAll, UpdateConfigArrayItem
Inherited Functions from Engine.Info
AcceptPlayInfoProperty, FillPlayInfo


Variables Detail

AdminVoteCount Source code

var array<AdminVoteScore> AdminVoteCount;

bLevelSwitchPending Source code

var bool bLevelSwitchPending;

bMidGameVote Source code

var bool bMidGameVote;

GameConfigPage Source code

var string GameConfigPage;

KickVoteCount Source code

var array<KickVoteScore> KickVoteCount;

lmsgAdminMapChange Source code

var localized string lmsgAdminMapChange;

lmsgAdminVote Source code

var localized string lmsgAdminVote;

lmsgAdminVoteAdmin Source code

var localized string lmsgAdminVoteAdmin;

lmsgAnonymousAdminVote Source code

var localized string lmsgAnonymousAdminVote;

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;

lmsgTeamDamageDisabled Source code

var localized string lmsgTeamDamageDisabled;

lmsgTeamDamageEnabled Source code

var localized string lmsgTeamDamageEnabled;

lmsgTeamDamageVote Source code

var localized string lmsgTeamDamageVote;

lmsgTournamentModeDisabled Source code

var localized string lmsgTournamentModeDisabled;

lmsgTournamentModeEnabled Source code

var localized string lmsgTournamentModeEnabled;

lmsgTournamentVote Source code

var localized string lmsgTournamentVote;

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;

MVRI Source code

var array<VotingReplicationInfo> MVRI;

PropDescription[24] Source code

var localized string PropDescription[24];

PropsDisplayText[24] Source code

var localized string PropsDisplayText[24];

ScoreBoardTime Source code

var int ScoreBoardTime;

ServerTravelString Source code

var string ServerTravelString;

ServerTravelTime Source code

var int ServerTravelTime;

TeamDamageVoteCount Source code

var TeamDamageVoteScore TeamDamageVoteCount;

TextMessage Source code

var string TextMessage;

TimeLeft Source code

var int TimeLeft;

TournamentVoteCount Source code

var TournamentVoteScore TournamentVoteCount;

TribesVotingHandler

AccInfo Source code

var(TribesVotingHandler) config array<AccumulationData> AccInfo;

AdminPercent Source code

var(TribesVotingHandler) config int AdminPercent;

bAccumulationMode Source code

var(TribesVotingHandler) config bool bAccumulationMode;

bAdminVote Source code

var(TribesVotingHandler) config bool bAdminVote;

bAnonymousAdmining Source code

var(TribesVotingHandler) config bool bAnonymousAdmining;

bAnonymousKicking Source code

var(TribesVotingHandler) config bool bAnonymousKicking;

bAutoOpen Source code

var(TribesVotingHandler) config bool bAutoOpen;

bDefaultToCurrentGameType Source code

var(TribesVotingHandler) config bool bDefaultToCurrentGameType;

bEliminationMode Source code

var(TribesVotingHandler) config bool bEliminationMode;

bKickVote Source code

var(TribesVotingHandler) config bool bKickVote;

bMapVote Source code

var(TribesVotingHandler) config bool bMapVote;

bMatchSetup Source code

var(TribesVotingHandler) config bool bMatchSetup;

bScoreMode Source code

var(TribesVotingHandler) config bool bScoreMode;

bTeamDamageVote Source code

var(TribesVotingHandler) config bool bTeamDamageVote;

bTournamentVote Source code

var(TribesVotingHandler) config bool bTournamentVote;

CurrentGameConfig Source code

var(TribesVotingHandler) config int CurrentGameConfig;

DefaultGameConfig Source code

var(TribesVotingHandler) config int DefaultGameConfig;

GameConfig Source code

var(TribesVotingHandler) config array<MapVoteGameConfig> GameConfig;

KickPercent Source code

var(TribesVotingHandler) config int KickPercent;

MapVoteHistoryType Source code

var(TribesVotingHandler) config string MapVoteHistoryType;

MidGameVotePercent Source code

var(TribesVotingHandler) config int MidGameVotePercent;

MinMapCount Source code

var(TribesVotingHandler) config int MinMapCount;

RepeatLimit Source code

var(TribesVotingHandler) config int RepeatLimit;

ScoreBoardDelay Source code

var(TribesVotingHandler) config int ScoreBoardDelay;

ServerNumber Source code

var(TribesVotingHandler) config int ServerNumber;

TeamDamagePercent Source code

var(TribesVotingHandler) config int TeamDamagePercent;

TournamentPercent Source code

var(TribesVotingHandler) config int TournamentPercent;

VoteTimeLimit Source code

var(TribesVotingHandler) config int VoteTimeLimit;


Functions Detail

AcceptPlayInfoProperty Source code

static event bool AcceptPlayInfoProperty ( string PropertyName) )

AddConfigArrayItem Source code

function int AddConfigArrayItem ( string ConfigArrayName) )

AddVoteReplicationInfo Source code

function AddVoteReplicationInfo ( PlayerController Player) )

AdminPlayer Source code

function AdminPlayer ( int PlayerIndex) )

CloseAllVoteWindows Source code

function CloseAllVoteWindows ( ) )

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 ( ) )

KickPlayer Source code

function KickPlayer ( int PlayerIndex) )

LoadGameTypesInternal Source code

private function LoadGameTypesInternal ( ) )

LoadMapList Source code

function LoadMapList ( ) )

LoadMapListInternal Source code

private function LoadMapListInternal ( ) )

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) )

SubmitAdminVote Source code

function SubmitAdminVote ( int PlayerID, Actor Voter) )

SubmitKickVote Source code

function SubmitKickVote ( int PlayerID, Actor Voter) )

SubmitMapVote Source code

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

SubmitTeamDamageVote Source code

function SubmitTeamDamageVote ( bool vote, Actor Voter) )

SubmitTournamentVote Source code

function SubmitTournamentVote ( bool vote, Actor Voter) )

TallyAdminVotes Source code

function TallyAdminVotes ( ) )

TallyKickVotes Source code

function TallyKickVotes ( ) )

TallyMapVotes Source code

function TallyMapVotes ( bool bForceMapSwitch) )

TallyTeamDamageVotes Source code

function TallyTeamDamageVotes ( ) )

TallyTournamentVotes Source code

function TallyTournamentVotes ( ) )

timer Source code

event timer ( ) )

UpdateAdminVoteCount Source code

function UpdateAdminVoteCount ( int PlayerID, int VoteCountDelta) )

UpdateConfigArrayItem Source code

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

UpdateKickVoteCount Source code

function UpdateKickVoteCount ( int PlayerID, int VoteCountDelta) )

UpdateTeamDamageVoteCount Source code

function UpdateTeamDamageVoteCount ( int yesVoteDelta, int noVoteDelta) )

UpdateTournamentVoteCount Source code

function UpdateTournamentVoteCount ( int yesVoteDelta, int noVoteDelta) )

UpdateVoteCount Source code

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


Defaultproperties

defaultproperties
{
	VoteTimeLimit=60
	ScoreBoardDelay=5
	bAutoOpen=False
	MinMapCount=2
	MapVoteHistoryType="TribesVoting.MapVoteHistory_INI"
	RepeatLimit=4
	bScoreMode=False
	bAccumulationMode=False
	bEliminationMode=False
	DefaultGameConfig=0
	bDefaultToCurrentGameType=True


	bMapVote=True
	bKickVote=True
	bMatchSetup=True
    bAdminVote=True
    bTeamDamageVote=True
    bTournamentVote=true
	
	bAnonymousKicking=True
	bAnonymousAdmining=True


	MidGameVotePercent=51
	KickPercent=51
	AdminPercent=51
    TeamDamagePercent=51
    TournamentPercent=51


	ServerNumber=1


	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)="Enable Admin Voting"
    PropsDisplayText(15)="Admin Vote Percent"
    PropsDisplayText(16)="Anonymous Admin Voting"
    PropsDisplayText(17)="Enable Team Damage Voting"
    PropsDisplayText(18)="Team Damage Vote Percent"
    PropsDisplayText(19)="Enable Tournament Voting"
    PropsDisplayText(20)="Tournament Vote Percent"
    PropsDisplayText(21)="Allow Match Setup"
    PropsDisplayText(22)="Game Configuration"
    PropsDisplayText(23)="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)="If enable players can vote to Admin other players."
    PropDescription(15)="The percentage of players that must vote against an individual player to have them Admined from the server."
    PropDescription(16)="If enabled players can place Admin votes without anyone knowing who placed the vote."
    PropDescription(17)="If enable players can vote for team damage."
    PropDescription(18)="The percentage of players that must vote for/against team damage to have it enabled or disabled."
    PropDescription(19)="If enable players can vote for tournament mode."
    PropDescription(20)="The percentage of players that must vote for/against tournament mode to have it enabled or disabled."
	PropDescription(21)="Enables match setup on the server - valid admin username & password is required in order to use this feature"
    PropDescription(22)="Opens the map voting game configuration screen"
    PropDescription(23)="Opens the map voting list configuration screen"


	lmsgAdminMapChange="Admin has forced map switch to %mapname%"
	lmsgMapVotedForWithCount="%playername% has placed %votecount% votes for %mapname%"
	lmsgMapVotedFor="%playername% has voted for %mapname%"
	lmsgMapWon="%mapname% has won !"
	lmsgMidGameVote="Mid-Game Map Voting has been initiated !!!!"
	lmsgSpectatorsCantVote="Sorry, Spectators can not vote."
	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 !"
	lmsgAdminVote="%playername1% placed an admin vote for %playername2%"
	lmsgAnonymousAdminVote="An admin vote has been placed for %playername%"
	lmsgAdminVoteAdmin="%playername% submitted an admin vote for an existing administrator"
	lmsgTeamDamageVote="%playername% placed a vote %type% team damage"
	lmsgTournamentVote="%playername% placed a vote %type% tournament mode"
	lmsgTournamentModeEnabled="Tournament mode has been enabled by vote"
	lmsgTournamentModeDisabled="Tournament mode has been disabled by vote"
	lmsgTeamDamageEnabled="Team damage has been enabled by vote"
	lmsgTeamDamageDisabled="Team damage has been disabled by vote"
	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: st 23.5.2018 00:10:37.205 - Created with UnCodeX