feat: Shoot Animals Photography (#427)

* feat: Shoot Animals Photography

* Fix ptr name
This commit is contained in:
Arthur authored and GitHub committed 2025-06-14 18:48:41 +00:00
1 parent 1e62d31001
commit 0e36f887d7
4 files changed
+157 -16

No files matched your search

+5
View File
@@ -395,6 +395,11 @@ namespace YimMenu
GameSkeleton = ptr.Add(0x9).Add(3).Rip().As<rage::gameSkeleton*>();
});
constexpr auto SetExplosiveAmmoOnlinePatchPtrn = Pattern<"48 83 EC 28 80 3D ? ? ? ? 00 0F 85 ? ? ? ? E9 ? ? ? ? 48 8B 45 28">("SetExplosiveAmmoOnlinePatch");
scanner.Add(SetExplosiveAmmoOnlinePatchPtrn, [this](PointerCalculator ptr) {
BytePatches::Add(ptr.Add(0xB).As<std::uint16_t*>(), 0x04EB)->Apply();
});
if (!scanner.Scan())
{
LOG(FATAL) << "Some patterns could not be found, unloading.";