Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
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
bool | bLevelSwitchPending
bool | bMidGameVote
string | GameConfigPage
array<KickVoteScore> | KickVoteCount
string | lmsgAdminMapChange
string | lmsgAdminVote
string | lmsgAdminVoteAdmin
string | lmsgAnonymousAdminVote
string | lmsgAnonymousKickVote
string | lmsgGameConfigColumnTitle[6]
string | lmsgInvalidPassword
string | lmsgKickVote
string | lmsgKickVoteAdmin
string | lmsgMapVotedFor
string | lmsgMapVotedForWithCount
string | lmsgMapWon
string | lmsgMatchSetupPermission
string | lmsgMidGameVote
string | lmsgSpectatorsCantVote
string | lmsgTeamDamageDisabled
string | lmsgTeamDamageEnabled
string | lmsgTeamDamageVote
string | lmsgTournamentModeDisabled
string | lmsgTournamentModeEnabled
string | lmsgTournamentVote
int | MapCount
array<MapVoteMapList> | MapList
string | MapListConfigPage
array<MapVoteScore> | MapVoteCount
array<VotingReplicationInfo> | MVRI
string | PropDescription[24]
string | PropsDisplayText[24]
int | ScoreBoardTime
string | ServerTravelString
int | ServerTravelTime
TeamDamageVoteScore | TeamDamageVoteCount
string | TextMessage
int | TimeLeft
TournamentVoteScore | TournamentVoteCount
TribesVotingHandler
array<AccumulationData> | AccInfo
int | AdminPercent
bool | bAccumulationMode
bool | bAdminVote
bool | bAnonymousAdmining
bool | bAnonymousKicking
bool | bAutoOpen
bool | bDefaultToCurrentGameType
bool | bEliminationMode
bool | bKickVote
bool | bMapVote
bool | bMatchSetup
bool | bScoreMode
bool | bTeamDamageVote
bool | bTournamentVote
int | CurrentGameConfig
int | DefaultGameConfig
array<MapVoteGameConfig> | GameConfig
int | KickPercent
string | MapVoteHistoryType
int | MidGameVotePercent
int | MinMapCount
int | RepeatLimit
int | ScoreBoardDelay
int | ServerNumber
int | TeamDamagePercent
int | TournamentPercent
int | VoteTimeLimit

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
| bool | AcceptPlayInfoProperty (string PropertyName))
| int | AddConfigArrayItem (string ConfigArrayName))
|  | AddVoteReplicationInfo (PlayerController Player))
|  | AdminPlayer (int PlayerIndex))
|  | CloseAllVoteWindows ()))
|  | DeleteConfigArrayItem (string ConfigArrayName, int RowIndex))
|  | FillPlayInfo (PlayInfo PlayInfo))
| int | GetAccVote (PlayerController Player))
| string | GetConfigArrayColumnTitle (string ConfigArrayName, int ColumnIndex))
| string | GetConfigArrayData (string ConfigArrayName, int RowIndex, int ColumnIndex))
| int | GetConfigArrayItemCount (string ConfigArrayName))
|  | GetDefaultMap (out int mapidx, out int gameidx))
| string | GetDescriptionText (string PropName))
| MapVoteGameConfigLite | GetGameConfig (int p_GameConfigIndex))
| MapVoteMapList | GetMapList (int p_MapIndex))
| int | GetMVRIIndex (PlayerController Player))
| float | GetPlayerScore (PlayerController Player))
|  | GetServerDetails (out GameInfo.ServerResponseLine ServerState ))
| bool | HandleRestartGame ()))
|  | KickPlayer (int PlayerIndex))
|  | LoadGameTypesInternal ()))
|  | LoadMapList ()))
|  | LoadMapListInternal ()))
| bool | MatchSetupLogin (string UserID, string Password, Actor Requestor, out int SecLevel))
|  | MatchSetupLogout (Actor Requestor))
|  | OpenAllVoteWindows ()))
|  | PlayerExit (Controller Exiting))
|  | PlayerJoin (PlayerController Player))
|  | PostBeginPlay ()))
|  | PropagateValue (VotingReplicationInfo Sender, string Type, string SettingName, string NewValue ))
|  | ReloadAll (optional bool bParam ))
|  | ReloadMatchConfig (bool bRefreshMaps, bool bRefreshMuts, optional PlayerController Caller ))
|  | SaveAccVotes (int WinningMapIndex, int WinningGameIndex))
| string | SetupGameMap (MapVoteMapList MapInfo, int GameIndex))
|  | SubmitAdminVote (int PlayerID, Actor Voter))
|  | SubmitKickVote (int PlayerID, Actor Voter))
|  | SubmitMapVote (int MapIndex, int GameIndex, Actor Voter))
|  | SubmitTeamDamageVote (bool vote, Actor Voter))
|  | SubmitTournamentVote (bool vote, Actor Voter))
|  | TallyAdminVotes ()))
|  | TallyKickVotes ()))
|  | TallyMapVotes (bool bForceMapSwitch))
|  | TallyTeamDamageVotes ()))
|  | TallyTournamentVotes ()))
|  | timer ()))
|  | UpdateAdminVoteCount (int PlayerID, int VoteCountDelta))
|  | UpdateConfigArrayItem (string ConfigArrayName, int RowIndex, int ColumnIndex, string NewValue))
|  | UpdateKickVoteCount (int PlayerID, int VoteCountDelta))
|  | UpdateTeamDamageVoteCount (int yesVoteDelta, int noVoteDelta))
|  | UpdateTournamentVoteCount (int yesVoteDelta, int noVoteDelta))
|  | 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 | UnrealScript Documentation
previous class next class | frames no frames

Creation time: st 23.5.2018 00:10:37.205 - Created with UnCodeX