google-code-export / p-g-qvm

Automatically exported from code.google.com/p/p-g-qvm
Other
1 stars 0 forks source link

Team votes pass too easily #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently team votes can pass too easily, proposed changes:

> add CVAR g_teamVotesPercent, percent needed for a team vote to pass
> for a vote to pass, half the team must have participated in the vote
> of those that voted, g_teamVotesPercent is applied.

This is coded up, but needs some testing before I post the patch.
Patch will also contain:

> poll votes start out 0 yes 0 no, caller can vote in poll
> 0/0 votes do not crash server (guards against div. by zero)

Original issue reported on code.google.com by Rez...@gmail.com on 22 Jan 2008 at 3:59

GoogleCodeExporter commented 9 years ago
Patch ready, there were several changes from above:

> add g_adminDefeatVotePercent sets percent needed for admitdefeat
  (0 will disable defeat votes)

> for a vote to pass, half the team must have participated in the vote
> of those that voted, the percent needed is applied
  (requirement is 50% for all but admitdefeat)

also in patch:

> poll votes start out 0 yes 0 no, caller can vote in poll
> 0/0 votes do not crash server (guards against div. by zero)
> vote results printing streamlined to less code
> vote results printing added to teamvote (vote type stays private)

Original comment by Rez...@gmail.com on 22 Jan 2008 at 6:10

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot, g_teamVotesPercent was dumped in favor of g_adminDefeatVotePercent and
everything else 50%.

Original comment by Rez...@gmail.com on 22 Jan 2008 at 6:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by Paradox460 on 24 Jan 2008 at 1:05