summaryrefslogtreecommitdiff
path: root/gamemode
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-31 12:49:45 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-31 12:49:45 -0400
commit0149932be8a6fedbe26a21420c195b797b579edc (patch)
tree6cd20677500986bd8e49d3bcc6dac465d406bede /gamemode
parent8b533ec75d5e1a6b593fe2edc11af297f9389864 (diff)
downloadredead-0149932be8a6fedbe26a21420c195b797b579edc.tar.gz
redead-0149932be8a6fedbe26a21420c195b797b579edc.tar.bz2
redead-0149932be8a6fedbe26a21420c195b797b579edc.zip
Attempts to start map vote
Diffstat (limited to 'gamemode')
-rw-r--r--gamemode/init.lua14
1 files changed, 13 insertions, 1 deletions
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