Skip to content

Commit 175beaa

Browse files
committedNov 1, 2024·
MHWilds: Fix freecam
1 parent 272c810 commit 175beaa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎src/mods/Hooks.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,18 @@ std::optional<std::string> Hooks::hook_update_transform() {
168168
uint32_t offset;
169169
};
170170

171+
/*
172+
these instructions are near the UpdateTransform call
173+
mov eax, 1
174+
lock xadd [rsi+318h], eax
175+
cdqe
176+
*/
171177
std::vector<TransformPattern> pats {
172178
{ "E8 ? ? ? ? 48 8B 5B ? 48 85 DB 75 ? 48 8B 4D 40 48 ? ?", 1 }, // RE2 - MHRise v1.0
173179
{ "33 D2 E8 ? ? ? ? B8 01 00 00 00 F0 0F", 3 }, // RE7/RE2/RE3 update to TDB v70/newer games?
174180
{ "0F B6 D1 48 8B CB E8 ? ? ? ? 48 8B 9B ? ? ? ?", 7 }, // RE7
175-
{ "0F B6 D0 48 8B CB E8 ? ? ? ? 48 8B 9B ? ? ? ?", 7 } // RE7 Demo
181+
{ "0F B6 D0 48 8B CB E8 ? ? ? ? 48 8B 9B ? ? ? ?", 7 }, // RE7 Demo
182+
{ "31 D2 41 ? F8 E8 ? ? ? ? EB", 6}, // MHWILDS/TDB74+
176183
};
177184

178185
uintptr_t update_transform = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.