forked from gir489returns/PalWorld-NetCrack-XBOX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
110 lines (99 loc) · 3.32 KB
/
config.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#pragma once
#include <Windows.h>
#include "libs/utils/memory.h"
#include "database.h"
#include "ItemList.hpp"
typedef bool(*Tick)(SDK::APalPlayerCharacter* m_this, float DeltaSecond);
class config
{
public:
//offsets
DWORD64 ClientBase = 0;
DWORD64 offset_Tick = 0x298F500;//APalPlayerCharacter::Tick
//check
bool IsESP = false;
bool IsFullbright = false;
bool IsForgeMode = false;
bool IsTeleportAllToXhair = false;
bool IsDeathAura = false;
bool IsAimbot = false;
bool IsSpeedHack = false;
bool IsAttackModiler = false;
bool IsDefuseModiler = false;
bool IsInfStamina = false;
bool IsSafe = true;
bool IsInfinAmmo = false;
bool IsGodMode = false;
bool IsToggledFly = false;
bool IsMuteki = false;
bool IsMonster = false;
bool IsQuick = false;
bool matchDbItems = true;
bool isDebugESP = false;
bool bisOpenManager = false;
bool filterPlayer = false;
bool bisRandomName = false;
bool bisTeleporter = false;
float SpeedModiflers = 1.0f;
//def and value
float mDebugESPDistance = 5.0f;
float mDebugEntCapDistance = 10.0f;
float mDeathAuraDistance = 10.f;
int mDeathAuraAmount = 1.f;
int DamageUp = 0;
int DefuseUp = 0;
int EXP = 0;
int Item = 0;
float Pos[3] = { 0,0,0 };
char ItemName[255];
char inputTextBuffer[255] = "";
SDK::UWorld* gWorld = nullptr;
SDK::APalPlayerCharacter* localPlayer = NULL;
SDK::TArray<SDK::APalPlayerCharacter*> AllPlayers = {};
SDK::UPalCharacterImportanceManager* UCIM = NULL;
SDK::UObject* WorldContextObject = NULL;
int AddItemSlot = 0;
int AddItemCount = 2;
enum QuickItemSet
{
basic_items_stackable,
basic_items_single,
pal_unlock_skills,
spheres,
tools
};
//Filtered Items
std::vector<std::string> db_filteredItems;
struct SWaypoint
{
std::string waypointName;
SDK::FVector waypointLocation;
SDK::FRotator waypointRotation;
bool bIsShown = true;
float* mColor[4];
SWaypoint() {};
SWaypoint(std::string wpName, SDK::FVector wpLocation, SDK::FRotator wpRotation) { waypointName = wpName; waypointLocation = wpLocation; waypointRotation = wpRotation; }
};
std::vector<SWaypoint> db_waypoints;
std::vector<std::pair<std::string, SDK::UClass*>> db_filteredEnts;
//static function
static SDK::UWorld* GetUWorld();
static SDK::UPalCharacterImportanceManager* GetCharacterImpManager();
static SDK::ULocalPlayer* GetLocalPlayer();
static SDK::APalPlayerCharacter* GetPalPlayerCharacter();
static SDK::APalPlayerController* GetPalPlayerController();
static SDK::APalPlayerState* GetPalPlayerState();
static SDK::UPalPlayerInventoryData* GetInventoryComponent();
static SDK::APalWeaponBase* GetPlayerEquippedWeapon();
static bool GetTAllPlayers(SDK::TArray<class SDK::APalCharacter*>* outResult);
static bool GetTAllImpNPC(SDK::TArray<class SDK::APalCharacter*>* outResult);
static bool GetTAllNPC(SDK::TArray<class SDK::APalCharacter*>* outResult);
static bool GetTAllPals(SDK::TArray<class SDK::APalCharacter*>* outResult);
static bool GetPartyPals(std::vector<SDK::AActor*>* outResult);
static bool GetPlayerDeathChests(std::vector<SDK::FVector>* outLocations);
static bool GetAllActorsofType(SDK::UClass* mType, std::vector<SDK::AActor*>* outArray, bool bLoopAllLevels = false, bool bSkipLocalPlayer = false);
static void Init();
static void Update(const char* filterText);
static const std::vector<std::string>& GetFilteredItems();
};
extern config Config;