This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
offsets.h
50 lines (33 loc) · 2.38 KB
/
offsets.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include "memory.h"
// Before messing with this, please remember to follow the EXACT format, any mistakes will break everything.
// UWorld* GWorld
#define GWORLD_PATTERN "48 89 05 ? ? ? ? 48 8B B6 ? ? ? ?" // (+ 0x3)
// FUObjectArray
#define GOBJECT_PATTERN "49 63 C8 48 8D 14 40 48 8B 05 ? ? ? ? 48 8B 0C C8 48 8D 04 D1" // (+ 0xA)
// FMemory::Free
#define FMEMORYFREE_PATTERN "48 85 C9 74 2E 53"
// UKismetSystemLibrary::GetObjectName
#define GETOBJNAME_PATTERN "40 53 48 83 EC 20 48 8B D9 48 85 D2 75 45 33 C0 48 89 01 48 89 41 08 8D 50 05 E8 ? ? ? ? 8B 53 08 8D 42 05 89 43 08 3B 43 0C 7E 08 48 8B CB E8 ? ? ? ? 48 8B 0B 48 8D 15 ? ? ? ? 41 B8 ? ? ? ? E8 ? ? ? ? 48 8B C3 48 83 C4 20 5B C3 48 8B 42 18"
// UWorld::GetFirstPlayerController
#define GETFIRSTPLAYERCONTROLLER_PATTERN "83 B9 ? ? ? ? ? 7E ? 48 8B 89 ? ? ? ? E9"
// UObject::ProcessEvent
#define PROCESSEVENT_PATTERN "40 55 56 57 41 54 41 55 41 56 41 57 48 81 EC ? ? ? ? 48 8D 6C 24 ? 48 89 9D ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C5 48 89 85 ? ? ? ? 8B 41 0C 45 33 F6 3B 05 ? ? ? ? 4D 8B F8 48 8B F2 4C 8B E1 41 B8 ? ? ? ? 7D 2A"
// StaticConstructObject_Internal
#define STATICCONSTRUCTOBJECTINTERNAL_PATTERN "4C 89 44 24 18 55 53 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4"
// FName::ToString
#define GETNAMEBYINDEX_PATTERN "48 89 5C 24 ? 55 56 57 48 8B EC 48 83 EC 30 8B" // replace with 90 90 90 90 90 90 48 85 DB 0F 84
// UWorld::SpawnActor
#define SPAWNACTOR_PATTERN "53 56 57 48 83 EC 70 48 8B 05 ? ? ? ? 48 33 C4 48 89 44 24 60 0F 28 1D ? ? ? ? 0F 57 D2 48 8B B4 24 B0"
// StaticLoadObject
#define STATICLOADOBJECT_PATTERN "40 55 53 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 8B 85 ? ? ? ? ? 8B FA"
// mov [rcx + Offsets::CurrentMovementStyleOffset], dl
// test rbx, rbx
// je
#define SPRINTPATCH_PATTERN "88 91 ? ? ? ? 48 85 DB 0F 84"
// Weapon patch, required.
#define WEAPONPATCH_PATTERN "0F 84 ? ? ? ? 0F 2F F7 0F 86 ? ? ? ? 48 8B 00" // replace with 0F 85 ? ? ? ? 0F 2F F7 0F 8D ? ? ? ? 48 8B 00
//we hook this for emoting
#define PLAYEMOTEITEM_PATTERN "48 85 D2 0F 84 ? ? ? ? 48 89 74 24 20 57 48 83 EC 50"
#define CROUCH_PATTERN "40 53 48 83 EC 20 48 83 B9 ? ? ? ? 00 48 8B D9 74 ? 48 8B 01 FF 90 ? ? ? ? 84 C0 74 ? 48 8B 83"
#define ATHENA_GAMEMODE_CRASH_PATTERN "48 8B 05 ? ? ? ? 48 8B DA 48 8B F9 48 85 C0 0F 84"