How to increase the UWE voting ratio
the_tick
Netherlands Join Date: 2014-01-20 Member: 193352Members
Netherlands Join Date: 2014-01-20 Member: 193352Members
Might be a simple question, but couldn't find the value for it in the serverconfig.json
Due to abusement of the reset game vote, I want to increase the votes needed to trigger a reset. atm it is around 55 ish percent, want to increase it to 65, is there a way to accomplish this?
Due to abusement of the reset game vote, I want to increase the votes needed to trigger a reset. atm it is around 55 ish percent, want to increase it to 65, is there a way to accomplish this?
Comments
Change Voting.lua (line 164)
local function GetVotePassed(yesVotes, noVotes) return yesVotes > (Server.GetNumPlayers() / 2) endto (for x % in 0.x e.g 65% = 0.65)
local function GetVotePassed(yesVotes, noVotes) return yesVotes > ( Server.GetNumPlayers() * x ) endIm still hoping for uwe to change that line to something like this:
local function GetVotePassed(yesVotes, noVotes) return yesVotes > ( Server.GetNumPlayers() * tonumber( Server.GetConfigSetting( "neededvotes") ) ) endas im not being a fan of doing stuff twice