From e640aed9445ebd0351ce02d246bbcb600ca5e491 Mon Sep 17 00:00:00 2001 From: Scott Liu Date: Mon, 22 Jul 2024 05:46:15 +0800 Subject: [PATCH] feat: Add `QuickMatchBomb` mode for Quick Match 2.0 --- dissect/gamemode_string.go | 4 ++++ dissect/header.go | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dissect/gamemode_string.go b/dissect/gamemode_string.go index 6654f94..82e633e 100644 --- a/dissect/gamemode_string.go +++ b/dissect/gamemode_string.go @@ -11,12 +11,14 @@ func _() { _ = x[Bomb-327933806] _ = x[SecureArea-1983085217] _ = x[Hostage-2838806006] + _ = x[QuickMatchBomb-400168582901] } const ( _GameMode_name_0 = "Bomb" _GameMode_name_1 = "SecureArea" _GameMode_name_2 = "Hostage" + _GameMode_name_3 = "QuickMatchBomb" ) func (i GameMode) String() string { @@ -27,6 +29,8 @@ func (i GameMode) String() string { return _GameMode_name_1 case i == 2838806006: return _GameMode_name_2 + case i == 400168582901: + return _GameMode_name_3 default: return "GameMode(" + strconv.FormatInt(int64(i), 10) + ")" } diff --git a/dissect/header.go b/dissect/header.go index 85bd232..b217f31 100644 --- a/dissect/header.go +++ b/dissect/header.go @@ -79,9 +79,10 @@ const ( CustomGameOnline MatchType = 4 Standard MatchType = 8 - Bomb GameMode = 327933806 - SecureArea GameMode = 1983085217 - Hostage GameMode = 2838806006 + Bomb GameMode = 327933806 + SecureArea GameMode = 1983085217 + Hostage GameMode = 2838806006 + QuickMatchBomb GameMode = 400168582901 ClubHouse Map = 837214085 KafeDostoyevsky Map = 1378191338