MantisBT - Zandronum
View Issue Details
0001869Zandronum[All Projects] Suggestionpublic2014-07-03 01:512018-09-30 21:46
Ru5tK1ng 
 
normalminorN/A
closedfixed 
MicrosoftWindowsXP/Vista/7
1.2 
3.03.0 
0001869: Cool down time for sv_limitnumvotes
Being able to adjust the time need before a vote can be recalled would be a nice middle ground between no limit and the default 10 min limit. With the ability to change the cool down time will help server admins to fine tune their voting systems according to the severity of vote spam in each of their servers.
No tags attached.
Issue History
2014-07-03 01:51Ru5tK1ngNew Issue
2016-09-04 21:45Ru5tK1ngNote Added: 0015585
2016-09-04 21:46Ru5tK1ngStatusnew => feedback
2016-09-04 23:32DuskStatusfeedback => needs review
2016-09-11 15:47Torr SamahoNote Added: 0015616
2016-09-11 15:48Torr SamahoStatusneeds review => feedback
2016-09-11 17:32CatastropheNote Added: 0015618
2016-09-13 15:33Ru5tK1ngNote Added: 0015627
2016-09-13 15:33Ru5tK1ngStatusfeedback => new
2016-09-13 18:15Edward-sanNote Added: 0015629
2016-09-13 18:22Ru5tK1ngNote Added: 0015630
2016-09-13 18:22Ru5tK1ngStatusnew => needs review
2016-09-13 18:22Ru5tK1ngTarget Version => 3.0
2016-09-19 01:54Ru5tK1ngNote Added: 0015664
2016-09-19 01:54Ru5tK1ngStatusneeds review => needs testing
2017-02-13 18:15StrikerMan780Note Added: 0016860
2017-02-13 23:42Ru5tK1ngNote Added: 0016862
2017-04-18 00:43CombinebobntNote Added: 0017186
2017-04-23 23:45Ru5tK1ngNote Added: 0017302
2017-04-23 23:45Ru5tK1ngNote Edited: 0017302bug_revision_view_page.php?bugnote_id=17302#r10389
2017-04-23 23:47CombinebobntNote Added: 0017303
2017-04-23 23:47Ru5tK1ngStatusneeds testing => resolved
2017-04-23 23:47Ru5tK1ngResolutionopen => fixed
2017-04-23 23:47Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:46Blzut3Statusresolved => closed

Notes
(0015585)
Ru5tK1ng   
2016-09-04 21:45   
I decided to take a shot at this. Current voting times can preserved while scaling down (or up) with sv_limitnumvotes.

'https://bitbucket.org/Ru5tK1ng/zandronum/commits/715211916403881a48fcd3e3156db6f7a82cf2c3?at=default [^]'
(0015616)
Torr Samaho   
2016-09-11 15:47   
The patch looks fine except that the CVAR name sv_limitnumvotes IMO doesn't make sense anymore. We should rename it to something more appropriate to what it does, e.g. sv_newvoteinterval.
(0015618)
Catastrophe   
2016-09-11 17:32   
Perhaps sv_votecooldown? Names should be intuitive enough to be easily guessed without looking it up imo.
(0015627)
Ru5tK1ng   
2016-09-13 15:33   
I agree and a couple of people I asked also agreed it is intuitive.
(0015629)
Edward-san   
2016-09-13 18:15   
I'd say sv_votecooldowntime , to give it more meaning.
(0015630)
Ru5tK1ng   
2016-09-13 18:22   
'https://bitbucket.org/Torr_Samaho/zandronum/pull-requests/142 [^]'
(0015664)
Ru5tK1ng   
2016-09-19 01:54   
'https://bitbucket.org/Torr_Samaho/zandronum/commits/5af2dac3c0891267d9b30bf05be34762ed61abee?at=default [^]'

Code was committed, needs testing.
(0016860)
StrikerMan780   
2017-02-13 18:15   
Why are the times doubled? 1 ends up 2 minutes, 4 ends up being 8 minutes?
(0016862)
Ru5tK1ng   
2017-02-13 23:42   
Because of the way the voting is coded. The constant values are basically 5 and 10 for the flood protections. That's why I left the default value at 5 so that people won't notice any difference from the current behavior. Setting a low value like 1 or still has some sort of wait. If you set the cvar to 2, you have to wait 4 minutes to recall that specific vote, but you can call any other type of vote after 2 minutes.
(0017186)
Combinebobnt   
2017-04-18 00:43   
The svar works EXCEPT that sv_limitnumvotes 0 does not override the time. So if I set sv_votecooldown to > 0 and sv_limitnumvotes 0, I still have to wait. sv_limitcommands 0 still works

That scaling system is not user friendly and I agree with Strikerman that it should just be set to minutes like timelimit and stuff are. However you told me that requires work and effort so so be it I guess.
(0017302)
Ru5tK1ng   
2017-04-23 23:45   
sv_limitnumvotes is renamed to sv_votecooldown, so Zan is reading your ini when you are trying to use the former.

(0017303)
Combinebobnt   
2017-04-23 23:47   
thanks zdoom for pretending that fake svars in my ini are real. no way to even tell. everything worked then on this ticket