Skip to content

General purpose cs2 map voting plugin, made with love from scratch

Notifications You must be signed in to change notification settings

abnerfs/cs2-rockthevote

Repository files navigation

CS2 Rock The Vote

Downloads Last commit Open issues Closed issues Size

image

General purpose map voting plugin, started as a simple RTV and now has more features

Enjoying the plugin?

Please drop a ⭐ star in the repository image

Feeling like paying me a ☕? Go ahead and donate:

Requirements

Latest release of Counter Strike Sharp

Instalation

Features

  • Reads from a custom maplist
  • RTV Command
  • Timeleft command
  • Nominate command
  • Votemap command
  • Supports workshop maps
  • Nextmap command
  • Fully configurable
  • Translated by the community

Translations

Language Contributor
Brazilian Portuguese abnerfs
English abnerfs
Ukrainian panikajo
Turkish brkvlr
Russian Auttend
Latvian rcon420
Hungarian Chickender, lovasatt
Polish D3X
French o3LL
Chinese (zh-Hans) himenekocn

Configs

  • A config file will be created in addons/counterstrikesharp/configs/plugins/RockTheVote the first time you load the plugin.
  • Changes in the config file will require you to reload the plugin or restart the server (change the map won't work).
  • Maps that will be used in RTV/nominate/votemap/end of map vote are located in addons/counterstrikesharp/configs/plugins/RockTheVote/maplist.txt

General config

Config Description Default Value Min Max
MapsInCoolDown Number of maps that can't be used in vote because they have been played recently 3 0

RockTheVote

Players can type rtv to request the map to be changed, once a number of votes is reached (by default 60% of players in the server) a vote will start for the next map, this vote lasts up to 30 seconds (hardcoded for now), in the end server changes to the winner map.

Config Description Default Value Min Max
Enabled Enable/Disable RTV functionality true false true
EnabledInWarmup Enable/Disable RTV during warmup false false true
NominationEnabled Enable/Disable nomination true false true
MinPlayers Minimum amount of players to enable RTV/Nominate 0 0
MinRounds Minimum rounds to enable RTV/Nominate 0 0
ChangeMapImmediatly Whether to change the map immediatly when vote ends or not true false true
HudMenu Whether to use HudMenu or just the chat one, when false the hud only shows which map is winning instead of actual menu true false true
HideHudAfterVote Whether to hide vote status hud after vote or not, only matters when HudMenu is true false false true
MapsToShow Amount of maps to show in vote, 6 1 6 with HudMenu, unlimited without it
VoteDuration Seconds the RTV should can last 30 1
VotePercentage Percentage of players that should type RTV in order to start a vote 60 0 100

End of map vote

Based on mp_timelimit and mp_maxrounds cvar before the map ends a RTV like vote will start to define the next map, it can be configured to change immediatly or only when the map actually ends

Config Description Default Value Min Max
Enabled Enable/Disable end of map vote functionality true false true
ChangeMapImmediatly Whether to change the map immediatly when vote ends or not true false true
HideHudAfterVote Whether to hide vote status hud after vote or not, only matters when HudMenu is true false false true
MapsToShow Amount of maps to show in vote, 6 1 6 with HudMenu, unlimited without it
VoteDuration Seconds the RTV should can last 30 1
HudMenu Whether to use HudMenu or just the chat one, when false the hud only shows which map is winning instead of actual menu true false true
TriggerSecondsBeforeEnd Amount of seconds before end of the map that should trigger the vote, only used when mp_timelimit is greater than 0 120 1
TriggerRoundsBeforEnd Amount of rounds before end of map that should trigger the vote, only used when mp_maxrounds is set 2 1
DelayToChangeInTheEnd Delay in seconds that plugin will take to change the map after the win panel is shown to the players 6 3

Votemap

Players can vote to change to an specific map by using the votemap command

Config Description Default Value Min Max
Enabled Enable/disable votemap funtionality true false tru
VotePercentage Percentage of players that should vote in a map in order to change to it 60 1 100
ChangeMapImmediatly Whether to change the map immediatly when vote ends or not true false true
EnabledInWarmup Enable/Disable votemap during warmup true false true
MinRounds Minimum rounds to enable votemap 0
MinPlayers Minimum amount of players to enable votemap

Timeleft

Players can type timeleft to see how much time is left in the current map

Config Description Default Value Min Max
ShowToAll Whether to show command response to everyone or just the player that executed it false false true

Nextmap

Players can type nextmap to see which map is going to be played next

Config Description Default Value Min Max
ShowToAll Whether to show command response to everyone or just the player that executed it false false true

Adding workshop maps

  • If you are not hosting a collection in order to add workshop maps you need to know it's id and add as following in the maplist.txt file: <mapname>:<workshop-id>.
  • If you are already hosting a collection and can change to workshop maps using the command ds_workshop_changelevel <map-name> you don't need the id, just put the actual map name and it will work.
de_thera:3121217565
de_dust2

Limitations

  • Plugins is still under development and a lot of functionality is still going to be added in the future.
  • I usually test the new versions in an empty server with bots so it is hard to tell if everything is actually working, feel free to post any issues here or in the discord thread so I can fix them https://discord.com/channels/1160907911501991946/1176224458751627514