How to increase the UWE voting ratio

the_tickthe_tick 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?

Comments

  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited March 2014
    Without modding the lua, not really ;)

    Change Voting.lua (line 164)
    local function GetVotePassed(yesVotes, noVotes)
            return yesVotes > (Server.GetNumPlayers() / 2)
    end
    

    to (for x % in 0.x e.g 65% = 0.65)
    local function GetVotePassed(yesVotes, noVotes)
            return yesVotes > ( Server.GetNumPlayers() * x )
    end
    
  • the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members
    Ahwww UWE :( maybe a good idea to integrate this in shine actually :)
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    the_tick wrote: »
    Ahwww UWE :( maybe a good idea to integrate this in shine actually :)

    Im 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") ) )
    end
    

    as im not being a fan of doing stuff twice ;)
Sign In or Register to comment.