-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathEnvironment.h
33 lines (33 loc) · 1.33 KB
/
Environment.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
#pragma once
#include "WorldEntity.h"
class Environment
{
private:
uint64_t SystemGlobalEnvironment = 0x5EF2FA0; // This is the only thing that should need updating // https://www.unknowncheats.me/forum/other-fps-games/350352-hunt-showdown-27.html Someone would post it here
uint64_t EntitySystem = 0xA8;
uint64_t pSystem = 0xC0;
uint16_t ObjectCount = 0x0;
uint64_t EntityList = 0x0;
uint16_t ObjectCountOffset = 0x4006A;
uint64_t EntityListOffset = 0x40078;
std::vector<std::shared_ptr<WorldEntity>> PlayerList;
std::vector<std::shared_ptr<WorldEntity>> ZombieList;
std::vector<std::shared_ptr<WorldEntity>> StaticList;
public:
uint64_t GetSystemGlobalEnvironment() { return SystemGlobalEnvironment; }
uint64_t GetEntitySystem() { return EntitySystem; }
uint64_t GetpSystem() { return pSystem; }
uint16_t GetObjectCount() { return ObjectCount; }
uint64_t GetEntityList() { return EntityList; }
void GetEntitys();
void UpdatePlayerList();
void UpdateZombieList();
void CacheEntities();
Environment();
std::mutex PlayerListMutex;
std::mutex ZombieListMutex;
std::mutex StaticListMutex;
std::vector<std::shared_ptr<WorldEntity>> GetPlayerList() { return PlayerList; }
std::vector<std::shared_ptr<WorldEntity>> GetZombieList() { return ZombieList; }
std::vector<std::shared_ptr<WorldEntity>> GetStaticList() { return StaticList; }
};