[Support] Pausing zombies game
-
On PlutoT6 you can use
notifyOnPlayerCommand
which allows you to define custom commands for the ingame console via gsc. Should in theory also work with say and sayteam.. -
Xerxes are there any docs for gsc online still? I can only find 404 pages -_-
-
For BO2 or GSC in general?
-
Xerxes preferable bo2
-
Well, there is basically none, go take a GSC dump and your favorite search tool to search through the dump.
Most of GSC has not changed since CoD1 anyways..
-
HasjBlok Want to listen for chat commands? Example: if someone says "hi" in chat, you can check it in gsc?
Use this repository here: https://github.com/fedddddd/t6-gsc-utils
(This is meant to be a server plugin. It compiles as a dll, and goes into t6r/data/plugins. Do not inject this clientside)Made by fed, it adds IO functions and chat listeners into GSC with waittills.
-
Xerxes said in [Support] Pausing zombies game:
Have you tried setting sv_paused through gsc?
I can't find anywhere how to set sv_paused through gsc, could you point me in the right direction for figuring that out?
-
HasjBlok It depends how you want to achieve a paused state for how you want to go about doing it. You can try looking in to the functionality of a zombies host migration as that was required to pause the game for online matches to some degree.
-
HasjBlok I think I have a way to pause a zombies game with just setting dvars. After some testing I have good reason to believe this method will work in a multiplayer game. First what you need to do is have each client set "cl_timeout 3600" in the console. Double check to make sure its set to 3600. The method of pausing the game requires you to set "sv_running" to 0 on the server, this will cause all clients to have a connection interrupted to appear on their screen but thats because the server isn't running anymore. The dvar "cl_timeout" is how long the client will wait for the server to come back if its down in seconds. This means you have 3600 seconds to set "sv_running" back to 1 before the clients will disconnect. If you can set "timescale" on the server the length of time you can have is affected so setting "timescale 0.1" would give 10x the time.
I haven't done too much testing so I'm not sure if its a 100% sure fire solution so I recommend testing it a bit before using this method in a real game.
-
JezuzLizard Hi, I hope you notice this reply since I have recently started playing cod2 with a friend and I'm looking for a way to pause the lobby. We are playing on a private server, but the thing is in your reply you said set "sv_running" to 0 and I have been searching for a while now and can't find how to change it nor where to find it.