-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddresses.cpp
22 lines (19 loc) · 980 Bytes
/
addresses.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "framework.h"
#include "addresses.h"
#include "proc.h"
#include "offsets.h"
#include "mem.h"
void Address::calcAddresses()
{
localPlayer = unityPlayer + 0x017AB300;
walkSpeed = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->walkSpeed);
jumpPower = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->jumpPower);
airAcceleration = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->airAcceleration);
wallJumpPower = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->wallJumpPower);
timeBetweenSteps = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->timeBetweenSteps);
currWallJumps = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->currWallJumps);
hp = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->hp);
walking = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->walking);
boostCharge = mem->FindDMAAddyEx(proc->hProcess, localPlayer, offset->boostCharge);
}
Address* addr = new Address();