MantisBT - Zandronum
View Issue Details
0002590Zandronum[All Projects] Suggestionpublic2016-01-24 14:152018-09-30 21:47
Ivan 
 
normalminorN/A
closedfixed 
2.0 
3.03.0 
0002590: A little addition to vote success/fail condition
Some servers require spectators to join the game. How about making votes to take into account only those that are eligible to vote? For example, in a duel server in GV -> Voters can only be two people. The vote will unnecessarily wait even though both voters vote yes, no, or 1 yes 1 no. It should consider only these two voters and not the rest of the server. This would speed up vote successes. Same thing applies in ctf servers where voters have to be in game as well. What do you think?
No tags attached.
related to 0002801closed  Votekicks can be avoided by disconnecting, thus resulting in not getting banned. 
related to 0002802closed  prevent newly connected clients from voting too soon 
related to 0002838closed Torr Samaho sv_maxclientsperip and Votes . 
Issue History
2016-01-24 14:15IvanNew Issue
2016-08-18 13:39IvanNote Added: 0015484
2016-08-18 13:56DuskNote Added: 0015486
2016-08-18 13:58Edward-sanNote Added: 0015488
2016-08-18 15:55IvanNote Added: 0015491
2016-09-21 02:08Ru5tK1ngRelationship addedrelated to 0002802
2016-09-21 02:08Ru5tK1ngRelationship addedrelated to 0002838
2016-09-21 02:16Ru5tK1ngRelationship addedrelated to 0002801
2016-09-27 22:21Ru5tK1ngNote Added: 0015715
2016-09-27 22:21Ru5tK1ngStatusnew => needs review
2016-09-27 22:23Ru5tK1ngStatusneeds review => new
2016-09-27 22:23Ru5tK1ngNote Edited: 0015715bug_revision_view_page.php?rev_id=9562
2016-09-27 22:25Ru5tK1ngNote Deleted: 0015715
2016-09-27 22:29Ru5tK1ngNote Added: 0015716
2016-09-27 22:29Ru5tK1ngStatusnew => feedback
2016-09-27 22:29Ru5tK1ngStatusfeedback => needs review
2016-10-03 10:50Torr SamahoNote Added: 0015743
2016-10-03 10:50Torr SamahoStatusneeds review => feedback
2016-10-03 10:51Torr SamahoTarget Version => 3.0
2016-10-03 20:23Ru5tK1ngNote Added: 0015745
2016-10-03 20:23Ru5tK1ngStatusfeedback => needs review
2016-10-08 20:39Ru5tK1ngNote Added: 0015814
2016-10-08 20:39Ru5tK1ngStatusneeds review => needs testing
2017-04-16 22:34CombinebobntNote Added: 0017163
2017-04-17 14:35Ru5tK1ngStatusneeds testing => resolved
2017-04-17 14:35Ru5tK1ngResolutionopen => fixed
2017-04-17 14:35Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:47Blzut3Statusresolved => closed

Notes
(0015484)
Ivan   
2016-08-18 13:39   
I find this ticket a reasonable request that would help improve the votes. Why was there no feedback on this?
(0015486)
Dusk   
2016-08-18 13:56   
It just got overlooked, I guess. This is the first time I see this. I'll take a look.
(0015488)
Edward-san   
2016-08-18 13:58   
Are you sure'http://wiki.zandronum.com/Server_Variables#sv_nocallvote [^]' isn't what you need?
(0015491)
Ivan   
2016-08-18 15:55   
That's not the problem, Edward-San. What I mean is, even with spectators having no word the vote countdown doesn't take into account the eligible players properly, but rather the entire player count. (Those who can't vote are included). So, in a server of 15 people where only 2 can vote, even if that two have finished voting the countdown will wait regardless.
(0015716)
Ru5tK1ng   
2016-09-27 22:29   
Ignore lines 85 and below. VS was just trolling me or something.

'https://bitbucket.org/Ru5tK1ng/zandronum/commits/d367098c7e22d6fba38bc3c87741bf5ad9b197f1?at=default [^]'
(0015743)
Torr Samaho   
2016-10-03 10:50   
The patch goes in the right direction, but can be further simplified. Please see my comments on bitbucket.
(0015745)
Ru5tK1ng   
2016-10-03 20:23   
Revised based on your comments.

'https://bitbucket.org/Torr_Samaho/zandronum/pull-requests/144/when-sv_nocallvote-is-2-only-consider/diff [^]'
(0015814)
Ru5tK1ng   
2016-10-08 20:39   
Code was merged:'https://bitbucket.org/Torr_Samaho/zandronum/commits/0579047ebc77628c1f8d8637de2205d540a52d17 [^]'
(0017163)
Combinebobnt   
2017-04-16 22:34   
tested in r170416-0710

it worked