forked from M-r-J-o-h-n/Rust-External-Cheat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GOM.cpp
38 lines (31 loc) · 1.46 KB
/
GOM.cpp
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
#include "GOM.h"
#include "Globals.h"
using Rust::Globals;
uint64_t Rust::GOM::GetTaggedObject()
{
uint64_t GameObjectManager = Globals::hack_data.RustMemory->Read<DWORD64>(Globals::hack_data.RustMemory->GetBaseAddress() + (uintptr_t)0x144FE40);
return Globals::hack_data.RustMemory->Read<uint64_t>(GameObjectManager + 0x8);
}
uint64_t Rust::GOM::GetLastTaggedObject()
{
uint64_t GameObjectManager = Globals::hack_data.RustMemory->Read<DWORD64>(Globals::hack_data.RustMemory->GetBaseAddress() + (uintptr_t)0x144FE40);
return Globals::hack_data.RustMemory->Read<uint64_t>(GameObjectManager);
}
uint64_t Rust::GOM::GetNextTaggedObject(uint64_t CurrentTaggedObejct)
{
return Globals::hack_data.RustMemory->Read<uint64_t>(CurrentTaggedObejct + 0x8);
}
uint64_t Rust::GOM::GetActiveObject()
{
uint64_t GameObjectManager = Globals::hack_data.RustMemory->Read<DWORD64>(Globals::hack_data.RustMemory->GetBaseAddress() + (uintptr_t)0x144FE40);
return Globals::hack_data.RustMemory->Read<uint64_t>(GameObjectManager + 0x18);
}
uint64_t Rust::GOM::GetLastActiveObject()
{
uint64_t GameObjectManager = Globals::hack_data.RustMemory->Read<DWORD64>(Globals::hack_data.RustMemory->GetBaseAddress() + (uintptr_t)0x144FE40);
return Globals::hack_data.RustMemory->Read<uint64_t>(GameObjectManager + 0x10);
}
uint64_t Rust::GOM::GetNextActiveObject(uint64_t CurrentActiveObject)
{
return Globals::hack_data.RustMemory->Read<uint64_t>(CurrentActiveObject + 0x8);
}