Open Paril opened 1 week ago
notes on implementation:
.restart.game.ssv
, .restart.server.ssv
and .restart.sv2
, respectively. They are copied from game.ssv
, server.ssv
and <sv.save_name>.sv2
before WriteGame/WriteLevel is run, and if they already exist they are not overridden.restart_level
.restart_level
will initiate a "soft reload"; it first checks if the .restart
files exist in the slot. If not, it will use the slot itself (because the only way this would happen is if you started a map and didn't do any saves yet, so 'restarting' the level is the same as just loading the slot directly).SpawnEntities
svc_level_restart
message via multicast, which informs the clients that a soft restart has happened and that they should clear all state as if they had just entered the game for the first time. This message in Kex also includes a naive list of configstrings that differ from the current server configstrings.
Support for restart_level is required for modern co-op to work properly