From e1b17734cd60f60919fed1c0b76bbed2d8eadc93 Mon Sep 17 00:00:00 2001 From: lipsanen Date: Thu, 21 Nov 2024 22:01:26 +0200 Subject: [PATCH] Fix for 20th anniversary update --- spt/features/playerio.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spt/features/playerio.cpp b/spt/features/playerio.cpp index 20119aefe..aaf25332c 100644 --- a/spt/features/playerio.cpp +++ b/spt/features/playerio.cpp @@ -136,8 +136,13 @@ void PlayerIOFeature::PreHook() int index = GetPatternIndex((void**)&ORIG_CreateMove); CreateMoveSignal.Works = true; - // New steampipe hl2/portal have a different offset - if (!utils::DoesGameLookLikeHLS() && utils::GetBuildNumber() >= 7122284) + // 20th Anniversary update + if (!utils::DoesGameLookLikeHLS() && !utils::DoesGameLookLikePortal() && utils::GetBuildNumber() >= 9353166) + { + offM_pCommands = 228; + } + // New steampipe hl2/portal + else if (!utils::DoesGameLookLikeHLS() && utils::GetBuildNumber() >= 7122284) { offM_pCommands = 224; }