Need to allow for mapvote at end of round for Hide and Seek

Hide and Seek init.lua:

58-96 is where I think it needs to be changed but I’m not sure.

My map vote I use, uses function FC_VOTE.StartVote()

Line 95:

timer.Simple(15,function() game.LoadNextMap() end)

Comment that out so it doesn’t change the map automatically.


		for k,v in pairs(player.GetAll()) do
			v:SendLua([[if not ScoBIsShowing then ScoBShow() end]])

Comment that out so the scoreboard doesn’t cover the map-vote.


	for k,v in pairs(player.GetAll()) do
		v:SendLua([[chat.AddText(Color(255,255,255),"Let's go to the next map: ]]..nxmap..[[")]])

Comment that out so the chat isn’t spammed before the map vote is done.

Alternatively - after seeing line 84 there is an easier way:


local scont = hook.Call("HASGameEnded",GAMEMODE,winner)

Add a hook:

hook.Add( "HASGameEnded", "StartMapVoteAtEndOfGame", function( _winner  )
	// Start the vote
	FC_VOTE.StartVote( );

	// Return true to prevent default map change.
	return true;
end );

The hook would be the better option assuming the map vote system takes care of changing the map for you.

i did exact that but didnt work? i rlly need help with mapvote it only restart the same map all time, i tried to use shout vote doesnt work i tried
but its ttt didnt work. HALP