Skip to content

Commit

Permalink
1.0.0 Add votemap command (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
abnerfs authored Feb 3, 2024
1 parent 72e0a64 commit c4d51de
Show file tree
Hide file tree
Showing 32 changed files with 1,247 additions and 635 deletions.
58 changes: 0 additions & 58 deletions AsyncVoteManager.cs

This file was deleted.

15 changes: 0 additions & 15 deletions Config.cs

This file was deleted.

86 changes: 0 additions & 86 deletions NominationManager.cs

This file was deleted.

55 changes: 41 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
# CS2 Rock The Vote
General purpose map voting plugin, started as a simple RTV and now has more features

## 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.

## Votemap
Players can vote to change to an specific map by using the votemap <mapname> command

# Features
- Reads from a custom maplist
- nominate command
- RTV Command
- Nominate command
- Nomination chat menu
- Votemap command
- Votemap chatmenu
- Supports workshop maps
- Configurable


# Limitations
- I haven't tested this with a server with more than 1 player, so this is a WIP version, I will address all feedback and issues that appear.
- Previous version relied on the official CS2 vote system, I pivoted this idea in favor of adding nominate, I will probably create another plugin with the original idea as soon as I figure out how to do the nominate command that way.
- Plugins is still under development and a lot of functionality is still missing like a proper end of map vote.
- Previous version relied on the official CS2 vote system, I pivoted this idea in favor of adding the nominate command, I will probably create another plugin with the original idea as soon as I figure out how to do the nominate command that way.
- 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

# Requirements
## Requirements
[Latest release of Counter Strike Sharp](https://github.com/roflmuffin/CounterStrikeSharp)

# Instalation
Expand All @@ -23,24 +36,38 @@ Players can type rtv to request the map to be changed, once a number of votes is
- Changes in the config file will require you to reload the plugin or restart the server (change the map won't work).

```json
// This configuration was automatically generated by CounterStrikeSharp for plugin 'RockTheVote', at 2024/02/03 06:02:12
{
"Version": 4,
"RtvVotePercentage": 60,
"RtvMinPlayers": 0,
"DisableVotesInWarmup": false,
"MapsToShowInVote": 5,
"ChangeImmediatly": true,
"MinRounds": 0
"Version": 5,
"Rtv": {
"Enabled": true,
"VotePercentage": 60,
"EnabledInWarmup": true,
"MinPlayers": 0,
"MinRounds": 0,
"MapsToShow": 5,
"ChangeMapImmediatly": true,
"VoteDuration": 30
},
"Votemap": {
"Enabled": true,
"VotePercentage": 60,
"ChangeMapImmediatly": true,
"EnabledInWarmup": true,
"MinPlayers": 0,
"MinRounds": 0
}
}
```

Maps that will be used in RTV are located in addons/counterstrikesharp/configs/plugins/RockTheVote/maplist.txt
Maps that will be used in RTV/nominate/votemap are located in addons/counterstrikesharp/configs/plugins/RockTheVote/maplist.txt

# TODO
- [X] ~~Add minimum rounds to use commands.~~
- [ ] Add votemap.
- [X] Add votemap.
- [x] ~~Translations support~~
- [ ] Add dont change option
- [ ] Add vote extend command
- [x] ~~Nomination menu~~
- [ ] Add end of map vote
- [ ] Add timeleft command
Expand Down
Loading

0 comments on commit c4d51de

Please sign in to comment.