Skip to content

Commit

Permalink
Fix for 20th anniversary update
Browse files Browse the repository at this point in the history
  • Loading branch information
lipsanen committed Nov 21, 2024
1 parent 5932b31 commit fbcf3e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spt/features/playerio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() >= 9353150)
{
offM_pCommands = 228;
}
// New steampipe hl2/portal
else if (!utils::DoesGameLookLikeHLS() && utils::GetBuildNumber() >= 7122284)
{
offM_pCommands = 224;
}
Expand Down

0 comments on commit fbcf3e1

Please sign in to comment.