You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script is a drop-in replacement for SAPP's built-in voting system.
- features -
1). Cast and re-cast your vote.
2). Ability to show more than 6 map vote options.
3). Configurable messages.
4). Limit how many times can a player re-vote.
5). Full control over script timers:
* Time until map votes are shown (after game ends).
* Time until votes are calculated (after game ends).
* Time until map cycle (after PGCR screen is shown)
- notes -
1). You need to import your map vote settings from mapvotes.txt
2). This script will disable SAPP's built-in map vote setting automatically.
3). Map skipping will still work and the skip ratio is defined in the config.
----------------------------------------------------------------------------------------
See config section for more information.
-- Configuration Starts --localMapVote= {
-- Map skip setting:---- map_skip is the percentage of people needed to skip the map.-- Set to 0 to disable map skipping entirely.-- Default: 60%map_skip=60,
---- How many votes options to display when the game ends?amount_to_show=5,
---- If true, players can re-cast their vote:re_vote=true,
-- How many times can a player re-vote?re_vote_count=1,
-- If true, the player's console will be cleared each time we print vote options:clear_console=false,
-- Most messages are configurable (edit them here):messages= {
-- message alignment characters: "|l", "|r", "|c", "|t" = Left, Right, Center, Tab-- Message omitted when player votes for map:
[1] ="|l%name% voted for [#%id%] %map% %msg%",
---- Message omitted when player re-votes (updates):
[2] ="|l%name% updated their vote to [#%id%] %map% %msg%",
---- Map vote option format:
[3] ="|l[%id%] %map% %msg%",
---- Map vote calculation messages:
[4] = {
"|l%map% %msg% won with %votes% vote%s%",
"|lNo Votes! Picking %map% %msg%..."
}
--
},
------------------------------------------------------------------------------------------ I do not recommend changing these values:-- Time (in seconds) until we show map votes (after game ends)time_until_show=7,
-- Time (in seconds) until votes are calculated (after game ends):time_until_tally=13,
-- Time (in seconds) until map cycle (after PGCR screen is shown):map_cycle_timeout=13,
-- Vote options will be re-shown every "re_show_interval" seconds until timer reaches "time_until_tally"re_show_interval=5,
----------------------------------------------------------------------------------------maps= {
--[[ ============================= - TECHNICAL NOTES - ============================= 1). Configure the map votes in the following format: {map name, game mode, message} 2). Map vote options will be seen in-game like this: Examples: [1] bloodgulch (ctf) [2] deathisland (ctf) [3] sidewinder (ctf) [4] icefields (ctf) [5] infinity (ctf) 3). You can define custom game modes like this: { "bloodgulch", "MyCustomKing", "(Custom King)" }, Example #2 (as seen in-game): [1] bloodgulch (Custom King)]]--======================================---- CONFIGURE MAP VOTES HERE ----======================================--
{ "bloodgulch", "ctf", "(ctf)" },
{ "deathisland", "ctf", "(ctf)" },
{ "sidewinder", "ctf", "(ctf)" },
{ "icefields", "ctf", "(ctf)" },
{ "infinity", "ctf", "(ctf)" },
{ "timberland", "ctf", "(ctf)" },
{ "dangercanyon", "ctf", "(ctf)" },
{ "beavercreek", "ctf", "(ctf)" },
{ "boardingaction", "ctf", "(ctf)" },
{ "carousel", "ctf", "(ctf)" },
{ "chillout", "ctf", "(ctf)" },
{ "damnation", "ctf", "(ctf)" },
{ "gephyrophobia", "ctf", "(ctf)" },
{ "hangemhigh", "ctf", "(ctf)" },
{ "longest", "ctf", "(ctf)" },
{ "prisoner", "ctf", "(ctf)" },
{ "putput", "ctf", "(ctf)" },
{ "ratrace", "ctf", "(ctf)" },
{ "wizard", "ctf", "(ctf)" }
},
-- A message relay function temporarily removes the server prefix-- and will restore it to this when the relay is finished:server_prefix="**SAPP**"
}
-- Configuration Ends --
The text was updated successfully, but these errors were encountered:
The bug:
Suppose we have an array of 7 maps but we want to show a maximum of 5 maps when the game ends.
At the end of game 1, the script will display the first 5 maps in the array.
At the end of game 2, the script will display the remaining 2 but not loopback and include the first 3 (for a total of 5) of the first group.
Title: Map Vote System
Description:
This script is a drop-in replacement for SAPP's built-in voting system.
Download Link
CONFIGURATION:
The text was updated successfully, but these errors were encountered: