MantisBT - Zandronum
View Issue Details
0000700Zandronum[All Projects] Suggestionpublic2012-03-05 23:562013-07-21 00:59
Watermelon 
 
normalfeatureN/A
closedno change required 
MicrosoftWindowsXP/Vista/7
98d 
 
0000700: Random Captains function (callvote randomcaptains)
Zdaemon has a randomcaptains function that chooses two available players to be captains.

By typing 'callvote randcapts' or something like that, you will be prompted with a vote, whereby two random people will be chosen if it passes.

This function is really useful in CTF and there is currently no way to do it via ACS since ACS doesn't allow detection of spectating players... plus as far as I know, it can't tell when there are player gaps (like if player 4 leaves and then you have player 0, 1, 2, 3, 5, 6, 7...etc)

This would help bring more people to testing 98e as well.
No tags attached.
related to 0001420needs testing Dusk Custom vote definitions, aka VOTEINFO 
Issue History
2012-03-05 23:56WatermelonNew Issue
2012-03-06 19:19WatermelonNote Added: 0002761
2012-03-06 19:51TIHanNote Added: 0002762
2012-03-07 03:10bluewizardNote Added: 0002765
2012-03-11 01:37Torr SamahoNote Added: 0002776
2012-03-11 01:37Torr SamahoStatusnew => feedback
2012-03-11 01:52DuskNote Added: 0002778
2012-03-11 19:25Torr SamahoNote Added: 0002792
2012-03-11 20:20DuskNote Added: 0002794
2012-03-11 21:24Torr SamahoNote Added: 0002798
2012-10-02 18:51WatermelonNote Added: 0004917
2012-10-02 18:51WatermelonStatusfeedback => new
2012-10-03 12:10DuskNote Added: 0004924
2012-10-03 12:10DuskStatusnew => closed
2012-10-03 12:10DuskResolutionopen => no change required
2013-07-21 00:59DuskRelationship addedrelated to 0001420

Notes
(0002761)
Watermelon   
2012-03-06 19:19   
As a note: when you use 'randcaps', it just prints to the screen two available players in game. Sorry for not attaching this piece of info
(0002762)
TIHan   
2012-03-06 19:51   
> This would help bring more people to testing 98e as well.

That's quite a statement. Perhaps you need to get more people in here to support this request.
(0002765)
bluewizard   
2012-03-07 03:10   
Needs to be added to priv CTF, if there is a way, there should be an option for it to filter out names that end with a * (Because in priv CTF if you end your name with a star, it means you're afk or cannot play).
(0002776)
Torr Samaho   
2012-03-11 01:37   
So you just want this function to print the names of two randomly chosen players (taking into account spectators)?
(0002778)
Dusk   
2012-03-11 01:52   
I feel that having a generic system for defining vote types (VOTEDEFS, anybody?) instead of a bunch of very specific ones like this. The actual cointoss is easily doable in ACS, it's just the voting part that ACS cannot do.
(0002792)
Torr Samaho   
2012-03-11 19:25   
> The actual cointoss is easily doable in ACS

From the top of my head I don't know a way to select a random, connected client with ACS. Selecting a random in game player is easy, but I don't see how to include spectators in the selection.

>I feel that having a generic system for defining vote types (VOTEDEFS, anybody?)

Do you have a good and easily implementable idea on how to extend ACS to handle voting? BTW: For voting it is absolutely crucial to rigorously check the voting command and its arguments.
(0002794)
Dusk   
2012-03-11 20:20   
> > The actual cointoss is easily doable in ACS

> From the top of my head I don't know a way to select a random, connected client with ACS. Selecting a random in game player is easy, but I don't see how to include spectators in the selection.
Actually scratch that. ACS can't differentiate between spectators and non-existing clients.

> Do you have a good and easily implementable idea on how to extend ACS to handle voting? BTW: For voting it is absolutely crucial to rigorously check the voting command and its arguments.
I was thinking about going in the other direction - make voting more generic. Say:
alias "randcaps" "puke 600"
votetype "randcaps" <details go here, including disable-cvars and stuff like that>

I might look into this in the future on my end. :)
(0002798)
Torr Samaho   
2012-03-11 21:24   
> Actually scratch that. ACS can't differentiate between spectators and non-existing clients.

And that is something that is actually missing, but also something I can easily add a new ACS function for.

> I might look into this in the future on my end. :)

Feel free to do that :).
(0004917)
Watermelon   
2012-10-02 18:51   
I think this can be closed, since so far we have a working randcaps function that everyone seems to like.

As now there is more support for checking if players are spectators and I can access names to check for *'s (AFK players) with strparam, I don't think anything like this needs to be made.
Now if it forked off into a custom voting system, that'd be neat.
(0004924)
Dusk   
2012-10-03 12:10   
If I ever make such a voting system, I'll make a new ticket for that.

Closing this, then.