Posted December 11, 2015 This script has a function 'NextGameNow' and command 'next_game' which forces the next game to begin in just a few seconds, almost entirely bypassing the score screen, as long as sv_mapcycle_timeout is set to any value that is GREATER than 0. For example, you can add the lines: next_game "lua_call next_game NextGameNow" 4 sv_map_fast #1 #2 "map #1 #2; next_game" 4 to your commands.txt file. Now try entering a command like 'sv_map_fast bloodgulch CTF' and see how fast the game changed to the CTF gametype on Blood Gulch. This is useful, because players may get impatient and leave during the score screen. If game intermissions only take a couple seconds, then players are less likely to leave. You can also use 'next_game' if you want to quickly reload the map for whatever reason, but not risk crashing Halo with 'sv_map_reset' if the game is unstable. To show you how fast this works, here is a video of the above sv_map_fast command in action: You don't need to edit commands.txt to use next_game as a player. Download (SAPP): next_game.lua HAN-105, Takka, swamp and 1 other like this Share this post Link to post Share on other sites
Posted December 11, 2015 this really need for testing command/event/script. thanks for release it Share this post Link to post Share on other sites
Posted December 11, 2015 I released version 1.1 just now so it uses sv_map_next whenever it ends the game. Now it properly ends the game so EVENT_GAME_END is called, but makes no difference otherwise. Share this post Link to post Share on other sites
Posted December 13, 2015 Corrected a syntax error. Oops! Share this post Link to post Share on other sites
Posted January 25, 2016 since the zombie game i made is a 3 minute survival + little bit hard to kill zombies, the game ends quickly, so, now i use this script to run "quickly ending" games in a row automatically if its selected from vote. such as, [3 minute zombie survival]x4 mapsets. and a [12 score short gungame]x3 mapsets. example: https://www.youtube.com/watch?v=dS-vLg7cjB4 example code: event_end $map:carousel $mode:Zombie $pn>10 'w8 3;map putput Zombie;next_game' event_end $map:putput $mode:Zombie $pn>10 'w8 3;map longest Zombie;next_game' event_end $map:longest $mode:Zombie $pn>10 'w8 3;map damnation Zombie;next_game' event_end $mode:Zombie $pn<11 $map!:damnation 'w8 2;say * "not enough players, zombie cycle cancelled!!!!" ' good script! and ofc thanks for releasing it.... Share this post Link to post Share on other sites
Posted April 4, 2016 do you not recommend this script to use for a quick restart a game before even players join? like, restart a game after the 1st 300 milliseconds after the game's 1st start..... like this; event_start $mode:the_specific_game $1st_start=0 'lua_load a_lua_script;wait 100;var_set 1st_start 1;wait 200;map a b;next_game;w8 5;var_set 1st_start 0'event_end $mode:the_specific_game $1st_start=0 'lua_unload a_lua_script' i mean can it effect/lag the server after sometimes this happens in some games, like 3 games in 60 vote option cycle server? Share this post Link to post Share on other sites
Posted April 4, 2016 do you not recommend this script to use for a quick restart a game before even players join? like, restart a game after the 1st 300 milliseconds after the game's 1st start..... like this; event_start $mode:the_specific_game $1st_start=0 'lua_load a_lua_script;wait 100;var_set 1st_start 1;wait 200;map a b;next_game;w8 5;var_set 1st_start 0' event_end $mode:the_specific_game $1st_start=0 'lua_unload a_lua_script' i mean can it effect/lag the server after sometimes this happens in some games, like 3 games in 60 vote option cycle server? I tend to use sv_map_reset if I just want to reset the map quickly, though it has been known to crash certain maps in very specific cases. If you really need to end the game, then I suppose this would work. I don't see why any issues would occur. Share this post Link to post Share on other sites
Posted April 5, 2016 (edited) I tend to use sv_map_reset if I just want to reset the map quickly, yes but its about lua scripts that want the game to restart if its not always on. like your this example script,: http://halo.isimaginary.com/forum/thread-197-post-841.html#pid841 so, i have to restart.... Edited April 5, 2016 by no offence Share this post Link to post Share on other sites
Posted April 5, 2016 yes but its about lua scripts that want the game to restart if its not always on. like your this example script,: http://halo.isimaginary.com/forum/thread-197-post-841.html#pid841 so, i have to restart.... The upside down avatar looks like a minimalist impression of Rudolph wearing ski goggles Share this post Link to post Share on other sites
Posted April 5, 2016 yes but its about lua scripts that want the game to restart if its not always on. like your this example script,: http://halo.isimaginary.com/forum/thread-197-post-841.html#pid841 so, i have to restart.... It will automatically use sv_map_next if you manually invoke it, which triggers all event_end/EVENT_GAME_END events, if this is what you wanted. Share this post Link to post Share on other sites