How to increase the UWE voting ratio

the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members Posts: 97
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?
Owner of the tick's battleground servers

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 Posts: 2,831 admin
    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
    
    Developer, Modder and Server Admin of Survival of the Fattest - Ingame Nick: Ghoul
  • the_tickthe_tick Netherlands Join Date: 2014-01-20 Member: 193352Members Posts: 97
    Ahwww UWE :( maybe a good idea to integrate this in shine actually :)
    Owner of the tick's battleground servers
  • 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 Posts: 2,831 admin
    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 ;)
    Developer, Modder and Server Admin of Survival of the Fattest - Ingame Nick: Ghoul
Sign In or Register to comment.