iw4x / iw4x-client

GNU General Public License v3.0
120 stars 40 forks source link

Add sv_votesrequired #116

Closed mxve closed 4 months ago

mxve commented 5 months ago

What does this PR do?

Adds the sv_votesrequired dvar which allows setting the amount of votes required for a voting (g_allowvote) to pass. The default value of 0 will result in the value being calculated from player count (players / 2 +1).

How does this PR change IW4x's behaviour?

The default votes required will deviate. Previously a fixed amount of votes was required, with this change a majority is required by default (players / 2 +1). It should behave the same as before by setting sv_votesrequired to 3.