GithubHelp home page GithubHelp logo

neoony / no-commander-extend-vote Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 86 KB

Extend commander vote when nobody opted in and someone voted for him

License: GNU General Public License v3.0

SourcePawn 100.00%

no-commander-extend-vote's Introduction

No-Commander-Extend-Vote

Extend commander vote when nobody opted in and someone voted for him

Project moving to: https://git.empiresmod.com/sourcemod/no_commander_extend_vote
Latest version: http://sourcemod.docs.empiresmod.com/no_commander_extend_vote/NoCommExtendVote.smx
Created by Neoony

THIS IS IN VERY EARLY STATE

--

Commands:

"nc_addvotetime" "def. 20"
"How much to add to the current detected value of commander vote time, when extending vote time. (Seconds)"

"nc_minplayers" "def. 2"
"How many players needed to enable this plugin.(Clients on server..needs fixing to team players)"

"nc_msgtimer" "def. 15"
"How often to display the informational messages. (Seconds)"

"nc_marktime" "def. 60"
"At what time of the commander vote to extend the time. (Seconds)"

--

If the commander vote time is below "nc_marktime" it will add extra time if no team has yet voted for a commander.
It will keep extending the vote time by adding "nc_addvotetime" to the current detected vote time.

--

Issues:
If somebody opts in for a commander and somebody votes for him, and then the commander opts out, it will still count as if the team has a commander.
In other way, its set to "team has commander" if somebody in that team votes for a comm event.
If you can think of another way, Iam all ears. But no event seems to exist for somebody just opting in or opting out or taking his vote back.

--

Planned features
If the game starts without a commander elected, it will start a vote for next map and change the map.

--

Changelog:
v0.1

  • First pre-release

v0.2

  • Added new console commands
  • Added config
  • Better messages handling
  • Few bugfixes

v0.2.1 Quickfix

  • Fixed infantry map spam
  • Added message about plugin on "OnClientPutInServer"
  • Few small message changes

v0.2.2 Quickadd

  • Disabled "comm received vote" and added status of commanders into Timer Info message

v0.3

  • New command
  • Few bugfixes
  • Player cant vote for themselves and be counted as comm ready
  • Some other things ( Gotta write down changes as I do them xD )
  • Plugin starts when at least one team has a player
  • Overall improved plugin handling

v0.4

  • Many bugfixes
  • Quite a lot of polishing

v0.4l

  • License changes

no-commander-extend-vote's People

Contributors

neoony avatar

Stargazers

Max Maton avatar

Watchers

Max Maton avatar  avatar

Forkers

thexa4

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.