Skip to content

Commit

Permalink
Add ClientPatterns::transformTranslate3dVMT()
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Oct 14, 2023
1 parent ae5418f commit 767762c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/MemoryPatterns/ClientPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ struct ClientPatterns {
[[nodiscard]] static cs2::ClientModeCSNormal* clientMode() noexcept;
[[nodiscard]] static ReturnAddress getWorldSessionInClientMode() noexcept;
[[nodiscard]] static cs2::C_CSGameRules** gameRules() noexcept;
[[nodiscard]] static const void* transformTranslate3dVMT() noexcept;
};
5 changes: 5 additions & 0 deletions Source/MemoryPatterns/Linux/ClientPatternsLinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ inline cs2::C_CSGameRules** ClientPatterns::gameRules() noexcept
{
return GlobalContext::instance().clientPatternFinder("4C 8D 35 ? ? ? ? 49 8B 3E 48 85 FF 0F 84 ? ? ? ? 41 80 BC 24"_pat).add(3).abs().as<cs2::C_CSGameRules**>();
}

inline const void* ClientPatterns::transformTranslate3dVMT() noexcept
{
return GlobalContext::instance().clientPatternFinder("48 8D 0D ? ? ? ? 48 89 08 48 89 50 08 48 8B 53 10"_pat).add(3).abs().as<const void*>();
}
5 changes: 5 additions & 0 deletions Source/MemoryPatterns/Windows/ClientPatternsWindows.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ inline cs2::C_CSGameRules** ClientPatterns::gameRules() noexcept
{
return GlobalContext::instance().clientPatternFinder("48 8B 0D ? ? ? ? 48 85 C9 0F 84 ? ? ? ? 80 BE"_pat).add(3).abs().as<cs2::C_CSGameRules**>();
}

inline const void* ClientPatterns::transformTranslate3dVMT() noexcept
{
return GlobalContext::instance().clientPatternFinder("48 8D 05 ? ? ? ? 48 C7 42 ? 00"_pat).add(3).abs().as<const void*>();
}

0 comments on commit 767762c

Please sign in to comment.