From c01dcffc367ce71192be946bb31c1d7ac3b542e8 Mon Sep 17 00:00:00 2001 From: JensForstmann <19289807+JensForstmann@users.noreply.github.com> Date: Mon, 9 Oct 2023 15:59:44 +0200 Subject: [PATCH] Fix pause after loading round backup --- backend/src/match.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/match.ts b/backend/src/match.ts index 4ec8f5c..51e325e 100644 --- a/backend/src/match.ts +++ b/backend/src/match.ts @@ -354,6 +354,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'); // mp_backup_restore_load_autopause doesn't work currently in CS2 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}`);