MantisBT - Zandronum
View Issue Details
0003979Zandronum[All Projects] Suggestionpublic2022-02-22 14:492022-09-06 18:44
Kaminsky 
Kaminsky 
normalfeatureN/A
resolvedfixed 
3.2 
3.23.2 
0003979: "resetmap" CCMD and associated vote type
The following commit:'http://hg.osdn.net/view/zandronum/zandronum-stable/rev/7e1f112cea14 [^]' adds the "resetmap" CCMD to 3.2, which behaves exactly like the "ResetMap" ACS function:'https://wiki.zandronum.com/ResetMap [^]'

This also includes a new corresponding vote type that can be disabled with the "sv_noresetmapvote" CVar.
No tags attached.
patch 10804.patch (1,088) 2022-02-24 08:56
https://zandronum.com/tracker/file_download.php?file_id=2721&type=bug
Issue History
2022-02-22 14:49KaminskyNew Issue
2022-02-22 14:50KaminskyStatusnew => needs testing
2022-02-23 06:33DrinkyBirdNote Added: 0022144
2022-02-23 18:21KaminskyNote Added: 0022146
2022-02-24 08:56DrinkyBirdFile Added: 10804.patch
2022-02-24 08:56DrinkyBirdNote Added: 0022148
2022-09-06 16:30WaTaKiDNote Added: 0022360
2022-09-06 18:44KaminskyStatusneeds testing => resolved
2022-09-06 18:44KaminskyFixed in Version => 3.2
2022-09-06 18:44KaminskyResolutionopen => fixed
2022-09-06 18:44KaminskyAssigned To => Kaminsky

Notes
(0022144)
DrinkyBird   
2022-02-23 06:33   
Excerpt from Discord a few days ago:
Quote

[04:53] DrinkyBird: not sure whether to default sv_noresetmapvote to true or false
[04:55] Kaminsky: Nice, feel free to share it during next meeting. Personally, I'd default the CVar to false like the rest.
[04:56] Kaminsky: Unless there's a reason why you think it should default to true.


I accidentally left it as true in the patch, should maybe change it to false?
(0022146)
Kaminsky   
2022-02-23 18:21   
I'd go ahead and create a mini patch that changes the default value to false, since it doesn't seem like it'd be risky to allow "resetmap" votes by default.

For "sv_noflagvote", the only other vote type disabled by default, I did this because most server hosts probably aren't okay with players changing gameplay settings with a vote, especially when they aren't aware of its existence. But if they're okay with this, they can disable the CVar at anytime.
(0022148)
DrinkyBird   
2022-02-24 08:56   
In that case - super simple patch attached.

I tested the rest of the functionality, and it seems work correctly.
(0022360)
WaTaKiD   
2022-09-06 16:30   
tested using ZandroDev3.2-220904-2011windows-x86_64 on windows offline, online, and a tspg linux server

resetmap and callvote resetmap seemed to work just fine