Repository navigation
Expand file tree
/
Copy pathHook.h
More file actions
82 lines (60 loc) · 1.6 KB
/
Copy pathHook.h
File metadata and controls
82 lines (60 loc) · 1.6 KB
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
#pragma once
#include <Windows.h>
#include "CDOTA_PlayerController.h"
#include "vector.h"
#include "defentions.h"
#include "CBaseEntity.h"
#include "Logger.h"
#include "Memory.h"
#include <stdio.h>
#include "Signatures.h"
#include <MinHook.h>
#include "MemoryScan.h"
#include "Govno.h"
#include "Interfaces.h"
#include "Hacks.h"
#include <future>
#include "asyncinfo.h"
#include <mutex>
inline class Hooks {
public:
class DXData {
public:
WNDPROC oWndProc;
HWND window;
} DXData;
} Hooks;
class Guard {
public:
Guard()
{
//std::lock_guard<std::mutex> lock(shit.mtx);
g_GameData.InComboPhase = true;
shit.activeThreads += 1;
std::cout << "Thread start, active: " << shit.activeThreads << std::endl;
shit.isThreadRunning = true;
shit.isThreadRunningFlag.test_and_set(std::memory_order_acquire);
}
~Guard()
{
//std::lock_guard<std::mutex> lock(shit.mtx);
g_GameData.InComboPhase = false;
shit.activeThreads -= 1;
std::cout << "Thread finished, active: " << shit.activeThreads << std::endl;
shit.isThreadRunning = false;
shit.isThreadRunningFlag.clear(std::memory_order_release);
}
};
bool HookPrepareUnitOrders();
void MyPrepareUnitOrders(CDOTAPlayerController* pPlayer, dotaunitorder_t Order,
int TargetIndex, Vector* pMovePos, int AbilityIndex, PlayerOrderIssuer_t orderIssuer,
CBaseEntity* pIssuer, bool bQueue, bool bShowEffects);
bool HookPause();
bool HookMainThreadIter();
bool HookFindEnts();
CBaseEntity* FindTarger();
CDOTAPlayerController* GetLocalPlayer();
void skywrath_mage();
CBaseEntity* GetLocalHero();
void UpdateAllEnts();
void GetAllItems(uintptr_t maxEntIndex);