diff --git a/Source/MemoryPatterns/Linux/ClientPatternsLinux.h b/Source/MemoryPatterns/Linux/ClientPatternsLinux.h index 3b10838fbd4..2ae2f638b22 100644 --- a/Source/MemoryPatterns/Linux/ClientPatternsLinux.h +++ b/Source/MemoryPatterns/Linux/ClientPatternsLinux.h @@ -32,7 +32,7 @@ struct ClientPatterns { [[nodiscard]] cs2::GlobalVars** globalVars() const noexcept { - return patternFinders.clientPatternFinder("48 89 35 ? ? ? ? 48 89 46"_pat).add(3).abs().template as(); + return patternFinders.clientPatternFinder("8D ? ? ? ? ? 48 89 35 ? ? ? ? 48 89 ? ? C3"_pat).add(9).abs().template as(); } [[nodiscard]] cs2::ClientModeCSNormal* clientMode() const noexcept diff --git a/Source/MemoryPatterns/Linux/EntityPatternsLinux.h b/Source/MemoryPatterns/Linux/EntityPatternsLinux.h index 70ae89a46d3..5ae25a46e42 100644 --- a/Source/MemoryPatterns/Linux/EntityPatternsLinux.h +++ b/Source/MemoryPatterns/Linux/EntityPatternsLinux.h @@ -14,7 +14,7 @@ struct EntityPatterns { [[nodiscard]] OffsetToHealth offsetToHealth() const noexcept { - return patternFinders.clientPatternFinder("8B 87 ? ? ? ? 85 C0 7E ? C7"_pat).add(2).template readOffset(); + return patternFinders.clientPatternFinder("C7 87 ? ? ? ? 00 00 00 00 48 8D 35"_pat).add(2).template readOffset(); } [[nodiscard]] OffsetToLifeState offsetToLifeState() const noexcept @@ -39,6 +39,6 @@ struct EntityPatterns { [[nodiscard]] OffsetToOwnerEntity offsetToOwnerEntity() const noexcept { - return patternFinders.clientPatternFinder("BF ? ? ? ? 8B 8F ? ? ? ?"_pat).add(7).template readOffset(); + return patternFinders.clientPatternFinder("8B BF ? ? ? ? 8B 8F ? ? ? ?"_pat).add(8).template readOffset(); } }; diff --git a/Source/MemoryPatterns/Linux/GameRulesPatternsLinux.h b/Source/MemoryPatterns/Linux/GameRulesPatternsLinux.h index 7f772b55dd0..400531a9627 100644 --- a/Source/MemoryPatterns/Linux/GameRulesPatternsLinux.h +++ b/Source/MemoryPatterns/Linux/GameRulesPatternsLinux.h @@ -10,7 +10,7 @@ struct GameRulesPatterns { [[nodiscard]] cs2::C_CSGameRules** gameRules() const noexcept { - return patternFinders.clientPatternFinder("4C 8D ? ? ? ? ? 49 8B ? 48 85 FF 0F 84 ? ? ? ? 41 80 BC 24"_pat).add(3).abs().template as(); + return patternFinders.clientPatternFinder("83 3D ? ? ? ? 00 74 ? 48 83 C4"_pat).add(2).abs(5).template as(); } [[nodiscard]] RoundStartTimeOffset roundStartTimeOffset() const noexcept diff --git a/Source/MemoryPatterns/Linux/HostageServicesPatternsLinux.h b/Source/MemoryPatterns/Linux/HostageServicesPatternsLinux.h index 7bc05599b19..74bf0ffa497 100644 --- a/Source/MemoryPatterns/Linux/HostageServicesPatternsLinux.h +++ b/Source/MemoryPatterns/Linux/HostageServicesPatternsLinux.h @@ -9,6 +9,6 @@ struct HostageServicesPatterns { [[nodiscard]] OffsetToCarriedHostage offsetToCarriedHostage() const noexcept { - return patternFinders.clientPatternFinder("44 8B 4E ? 89 C7"_pat).add(3).template readOffset(); + return patternFinders.clientPatternFinder("07 C7 47 ? FF FF FF FF C3"_pat).add(3).template readOffset(); } }; diff --git a/Source/MemoryPatterns/Linux/PanoramaLabelPatternsLinux.h b/Source/MemoryPatterns/Linux/PanoramaLabelPatternsLinux.h index 06248af8e83..eb1d0346812 100644 --- a/Source/MemoryPatterns/Linux/PanoramaLabelPatternsLinux.h +++ b/Source/MemoryPatterns/Linux/PanoramaLabelPatternsLinux.h @@ -16,7 +16,7 @@ struct PanoramaLabelPatterns { [[nodiscard]] cs2::CLabel::setTextInternal setTextInternal() const noexcept { - return patternFinders.clientPatternFinder("31 C9 E8 ? ? ? ? E9"_pat).add(3).abs().template as(); + return patternFinders.clientPatternFinder("85 ? ? ? ? 31 C9 E8 ? ? ? ?"_pat).add(8).abs().template as(); } [[nodiscard]] std::uint32_t* size() const noexcept diff --git a/Source/MemoryPatterns/Linux/PanoramaUiEnginePatternsLinux.h b/Source/MemoryPatterns/Linux/PanoramaUiEnginePatternsLinux.h index f9b995cddaa..16ad5a3b7a9 100644 --- a/Source/MemoryPatterns/Linux/PanoramaUiEnginePatternsLinux.h +++ b/Source/MemoryPatterns/Linux/PanoramaUiEnginePatternsLinux.h @@ -24,7 +24,7 @@ struct PanoramaUiEnginePatterns { [[nodiscard]] cs2::CUIEngine::runScript runScript() const noexcept { - return patternFinders.panoramaPatternFinder("55 48 89 E5 41 57 41 56 49 89 D6 41 55 49 89 F5 41 54 49"_pat).template as(); + return patternFinders.panoramaPatternFinder("55 48 89 E5 41 57 49 89 CF 41 56 49 89 F6 41 55 41"_pat).template as(); } [[nodiscard]] cs2::CUIEngine::makeSymbol makeSymbol() const noexcept diff --git a/Source/MemoryPatterns/Linux/PlantedC4PatternsLinux.h b/Source/MemoryPatterns/Linux/PlantedC4PatternsLinux.h index 1fde3e8b5c6..e3ecd5dac7a 100644 --- a/Source/MemoryPatterns/Linux/PlantedC4PatternsLinux.h +++ b/Source/MemoryPatterns/Linux/PlantedC4PatternsLinux.h @@ -9,7 +9,7 @@ struct PlantedC4Patterns { [[nodiscard]] cs2::CUtlVector* plantedC4s() const noexcept { - return patternFinders.clientPatternFinder("0F 85 ? ? ? ? 48 8D 05 ? ? ? ? 8B 10"_pat).add(9).abs().template as*>(); + return patternFinders.clientPatternFinder("? ? ? ? 8B 10 85 D2 0F 8F"_pat).abs().template as*>(); } [[nodiscard]] BombSiteOffset m_nBombSite() const noexcept diff --git a/Source/MemoryPatterns/Linux/PlayerPawnPatternsLinux.h b/Source/MemoryPatterns/Linux/PlayerPawnPatternsLinux.h index 9e030a42540..c1a728d6e07 100644 --- a/Source/MemoryPatterns/Linux/PlayerPawnPatternsLinux.h +++ b/Source/MemoryPatterns/Linux/PlayerPawnPatternsLinux.h @@ -9,7 +9,7 @@ struct PlayerPawnPatterns { [[nodiscard]] OffsetToPlayerPawnImmunity offsetToPlayerPawnImmunity() const noexcept { - return patternFinders.clientPatternFinder("75 ? 0F B6 83 ? ? ? ? 5B"_pat).add(5).template readOffset(); + return patternFinders.clientPatternFinder("75 ? 0F B6 83 ? ? ? ? 5B 41"_pat).add(5).template readOffset(); } [[nodiscard]] OffsetToWeaponServices offsetToWeaponServices() const noexcept @@ -29,12 +29,12 @@ struct PlayerPawnPatterns { [[nodiscard]] OffsetToIsPickingUpHostage offsetToIsPickingUpHostage() const noexcept { - return patternFinders.clientPatternFinder("45 0F B6 AE ? ? ? ? 45 84 ED"_pat).add(4).template readOffset(); + return patternFinders.clientPatternFinder("45 0F B6 AE ? ? ? ? 45 84 ED 0F"_pat).add(4).template readOffset(); } [[nodiscard]] OffsetToHostageServices offsetToHostageServices() const noexcept { - return patternFinders.clientPatternFinder("E8 ? ? ? ? 49 8B B5 ? ? ? ? 48 85 F6 0F 84 ? ? ? ? 0F"_pat).add(8).template readOffset(); + return patternFinders.clientPatternFinder("C6 4C 89 C7 E8 ? ? ? ? 49 8B ? ? ? ? ?"_pat).add(12).template readOffset(); } [[nodiscard]] OffsetToFlashBangEndTime offsetToFlashBangEndTime() const noexcept