diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-31 12:49:45 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-31 12:49:45 -0400 |
| commit | 0149932be8a6fedbe26a21420c195b797b579edc (patch) | |
| tree | 6cd20677500986bd8e49d3bcc6dac465d406bede /gamemode/init.lua | |
| parent | 8b533ec75d5e1a6b593fe2edc11af297f9389864 (diff) | |
| download | redead-0149932be8a6fedbe26a21420c195b797b579edc.tar.gz redead-0149932be8a6fedbe26a21420c195b797b579edc.tar.bz2 redead-0149932be8a6fedbe26a21420c195b797b579edc.zip | |
Attempts to start map vote
Diffstat (limited to 'gamemode/init.lua')
| -rw-r--r-- | gamemode/init.lua | 14 |
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 |
