From a993ad24e28662c6514188e0dacf56fec6571e06 Mon Sep 17 00:00:00 2001 From: Jan Korneffel Date: Sun, 8 Oct 2023 23:50:13 +0200 Subject: [PATCH] Use `mp_pause_match` before loading round backup In CS2 `mp_backup_restore_load_autopause` does not seem to work, but executing `mp_pause_match` before loading the backup pauses the match after the round has been restored. --- backend/src/match.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/match.ts b/backend/src/match.ts index 64fb099..fe30c1b 100644 --- a/backend/src/match.ts +++ b/backend/src/match.ts @@ -351,7 +351,7 @@ export const getRoundBackups = async (match: Match, count: number = 5) => { }; export const loadRoundBackup = async (match: Match, file: string) => { - await execRcon(match, 'mp_backup_restore_load_autopause 1'); + await execRcon(match, 'mp_pause_match'); const response = await execRcon(match, `mp_backup_restore_load_file "${file}"`); if (response.includes('Failed to load file:')) { match.log(`Error loading round backup: ${response}`);