From 0149932be8a6fedbe26a21420c195b797b579edc Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 31 May 2016 12:49:45 -0400 Subject: Attempts to start map vote --- gamemode/init.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gamemode') diff --git a/gamemode/init.lua b/gamemode/init.lua index 55d98eb..1d1c3c0 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -1532,7 +1532,19 @@ function GM:EndGame( winner ) end - timer.Simple( GetConVar( "sv_redead_post_game_time" ):GetInt(), function() game.LoadNextMap() end ) + timer.Simple( GetConVar( "sv_redead_post_game_time" ):GetInt(), function() + if(MapVote && MapVote.Start) then + MapVote.Start(10,false,5,"") + else + print("Mapvote:") + print(MapVote) + if(MapVote != nil) then + print("Mapvote.Start:") + print(MapVote.Start) + end + game.LoadNextMap() + end + end ) end -- cgit v1.2.3-70-g09d2