/
ESP.h
32 lines (28 loc) · 833 Bytes
/
ESP.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
#pragma once
struct player_esp
{
CBaseEntity* pPlayer = nullptr;
bool is_visible = false;
bool render = false;
int screen_x = 0, screen_y = 0, width = 0, height = 0;
DWORD color = D3DCOLOR_RGBA(255, 255, 255, 255);
player_esp()
{
}
};
class CESP
{
public:
player_esp player_draw_array[64];
void DrawPlayer(CBaseEntity* pPlayer, CBaseEntity* pLocalPlayer);
void DrawC4(CBaseEntity* pBomb,bool is_planted, CBaseEntity* pLocalPlayer);
void DrawHostage(CBaseEntity* pHostage);
void DrawThrowable(CBaseEntity* pThrowable);
void DrawDroppedWeapon(CBaseCombatWeapon* pWeapon);
void DrawBones(CBaseEntity* pBaseEntity, int r, int g, int b, int a);
void DrawScope(CBaseEntity* pLocalPlayer);
void PredictNade(CBaseEntity* pPlayer, QAngle vViewAngles);
void Loop();
void Update();
void Draw();
}; extern CESP* g_ESP;