GithubHelp home page GithubHelp logo

cs2-rockthevote's Introduction

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

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.

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

Votemap

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

Timeleft

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

Nextmap

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

Features

  • Reads from a custom maplist
  • RTV Command
  • Timeleft command
  • Nominate command
  • Nomination chat menu
  • Votemap command
  • Votemap chatmenu
  • Supports workshop maps
  • Configurable
  • Nextmap command

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

Requirements

Latest release of Counter Strike Sharp

Instalation

Config

  • 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).
// This configuration was automatically generated by CounterStrikeSharp for plugin 'RockTheVote', at 2024/02/19 10:46:54
{
  "Version": 9,
  "Rtv": {
    "Enabled": true,
    "EnabledInWarmup": true,
    "NominationEnabled": true,
    "MinPlayers": 0,
    "MinRounds": 0,
    "ChangeMapImmediatly": true,
    "HideHudAfterVote": false,
    "MapsToShow": 6,
    "VoteDuration": 30,
    "VotePercentage": 60,
    "HudMenu": true
  },
  "Votemap": {
    "Enabled": true,
    "VotePercentage": 60,
    "ChangeMapImmediatly": true,
    "EnabledInWarmup": true,
    "MinPlayers": 0,
    "MinRounds": 0
  },
  "EndOfMapVote": {
    "Enabled": true,
    "MapsToShow": 6,
    "HudMenu": true,
    "ChangeMapImmediatly": false,
    "VoteDuration": 30,
    "HideHudAfterVote": false,
    "TriggerSecondsBeforeEnd": 120,
    "TriggerRoundsBeforEnd": 2
  },
  "Timeleft": {
    "ShowToAll": false
  },
  "Nextmap": {
    "ShowToAll": false
  }
}

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.