MantisBT - Zandronum
View Issue Details
0000138Zandronum[All Projects] Suggestionpublic2010-10-25 10:472016-05-13 00:51
Ten 
 
normalfeatureN/A
closedno change required 
 
 
0000138: Two new voting values: randomcaps and coinflip
This is pretty simple: In ZD, they have voting just like ST, and have two voting values that would be very useful in ST; randomcaps which upon the vote passing, picks two players at random and displays their names in the HUD. My guess this would be pretty easy to accomplish by using their player IDs. This is used for private CTF games for a fair and easy way to pick team captains. The second is coinflip, which is probably pretty obvious; upon the vote passing, it does a heads/tails coinflip and displays the result in the HUD.

I know this might be a bit too specific, however this would be extremely useful for the private CTF scene, and theoretically should only be a couple lines of code, although I'm not a coder so I obviously don't know for sure.
No tags attached.
Issue History
2010-10-25 10:47TenNew Issue
2010-10-28 10:50EruannaNote Added: 0000476
2010-10-28 10:50EruannaAssigned To => Eruanna
2010-10-28 10:50EruannaStatusnew => feedback
2010-10-28 10:51EruannaNote Edited: 0000476bug_revision_view_page.php?bugnote_id=476#r211
2010-10-28 10:52EruannaAssigned ToEruanna =>
2010-10-28 20:47AnonymousNote Added: 0000481
2010-10-28 21:34TwisterNote Added: 0000482
2010-11-12 18:50AnonymousNote Deleted: 0000481
2011-05-08 15:33HeX9109Note Added: 0001565
2011-05-08 15:45HeX9109Note Added: 0001566
2011-05-08 15:49HeX9109Note Deleted: 0001566
2011-05-08 15:53HeX9109Note Edited: 0001565bug_revision_view_page.php?bugnote_id=1565#r822
2011-05-08 15:59HeX9109Note Edited: 0001565bug_revision_view_page.php?bugnote_id=1565#r823
2011-05-08 18:25Torr SamahoNote Added: 0001572
2013-03-11 04:39WatermelonNote Added: 0006105
2016-05-13 00:51Ru5tK1ngNote Added: 0014889
2016-05-13 00:51Ru5tK1ngStatusfeedback => closed
2016-05-13 00:51Ru5tK1ngResolutionopen => no change required

Notes
(0000476)
Eruanna   
2010-10-28 10:50   
(edited on: 2010-10-28 10:51)
As you said this is fairly specific. However, that being said, it *MAYBE* might be better done with ACS. Although I don't really know. After it's done in ACS we'll see if Torr really wants to hardcode this into Skulltag.

I'll see if I can whip something up in ACS later - as far as the "coinflip" thing goes though you're not very specific on what it does or what it's used for, so I can't help with that until you elaborate a little bit on it.

(0000482)
Twister   
2010-10-28 21:34   
What if someone does not want to be captain? If they spectate, the script should be able to compensate for it by choosing another player ID. Same should go for disconnecting and stuff like that. Also, there should be a script that asks the player if they want to be captain. Like, YOU HAVE BEEN CHOSEN TO BE TEAM CAPTAIN. Response time could be about 5 seconds. If they don't respond, they are automatically chosen.
(0001565)
HeX9109   
2011-05-08 15:33   
(edited on: 2011-05-08 15:59)
sv_enablecaptains
when set true, team captains will be picked when called for by voting (callvote randomcaps)
Players can set themselves available/unavailable via the console command "rp," which stands for "ready player" to keep it short and quick to type. It will print "you are ready to play" and "you are not ready to play" when used.
"callvote coinflip," when called, will determine who calls a player first, then captains take turns selecting their team members. When the captain picks a player via a menu, they are automatically placed on that captain's team.
The game will start when all captains agree to start.

Example of the menu a captain will see:
============================================
Pick your player:
Player1
Player2
Player3

Ready to start!
=============================================

I would really like to see this added soon for IDL compatibility.

(0001572)
Torr Samaho   
2011-05-08 18:25   
Can't this be done with ACS? Although you would have to recreate Skulltag's voting system in ACS to do so.
(0006105)
Watermelon   
2013-03-11 04:39   
I have made one for ACS, though I'd be much nicer to do a vote. Since every other port has this I started one in the wbuild fork (which is now dedicated to Zandronum fixes). I have a functioning randcaps which is similar to other ports. Coinflip (I chose randnum instead for extention to more than two values) will be coming. This is very useful for people who want to pick a random map


Two new things:

callvote randcaps
callvote randnum [max number inclusive] // Random num from 0 - maxNumInclusive
callvote randnum [minInclusive] [maxInclusive]
(0014889)
Ru5tK1ng   
2016-05-13 00:51   
This will be resolved with VOTEDEF.

'https://zandronum.com/forum/viewtopic.php?t=6193 [^]'