[Support] Pause endgame for map vote?
-
I know how to how to add map voting after final killcam by utilizing:
level waittill( "final_killcam_done" );
However, that only gives me like 4 seconds before the game ends to vote for a map.
Is there a way to "pause" the endgame sequence so that I can let players vote for the next map and then resume it after a certain time passes?
-
-
Kalitos I've tried changing timescale which kinda works but it's not ideal. I was looking for a more robust solution. Kinda how Matrix does it on the Shakin' servers. I just don't know how. Thanks for the reply though
-
nothings, its mine menu edited the Brad vote menu. Missing credits, i'll wait credits
-
Brad So, if you didnt have a voting system or any GSC, it would normally rotate map from server config or send you back to lobby. I think what Matrix did is make it so it doesn't call the maprotation command from the server config and basically nothing happens. So, without the voting system and (maybe Matrix's changes), the game would be paused like that forever. Adding the voting system might call the maprotate command instead and make it all work. I have no clue.
-
Brad If this helps, you could maybe look here: https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer/blob/master/patch_mp/maps/mp/gametypes/_killcam.gsc
-
I think I managed to pause the game with this command map_restart (false); in init()