esp file organization
This commit is contained in:
parent
1ad88b38c7
commit
f1d060c534
1012
src/hacks/ESP.cpp
1012
src/hacks/ESP.cpp
File diff suppressed because it is too large
Load Diff
@ -22,45 +22,14 @@ class CachedEntity;
|
|||||||
|
|
||||||
namespace hacks { namespace shared { namespace esp {
|
namespace hacks { namespace shared { namespace esp {
|
||||||
|
|
||||||
extern CatVar local_esp;
|
// Strings
|
||||||
extern CatVar buildings;
|
|
||||||
extern CatVar enabled;
|
|
||||||
extern CatVar entity_info;
|
|
||||||
extern CatVar show_bot_id;
|
|
||||||
extern CatVar teammates;
|
|
||||||
extern CatVar item_esp;
|
|
||||||
extern CatVar item_dropped_weapons;
|
|
||||||
extern CatVar item_ammo_packs;
|
|
||||||
extern CatVar item_health_packs;
|
|
||||||
extern CatVar item_powerups;
|
|
||||||
extern CatVar item_money;
|
|
||||||
extern CatVar item_money_red;
|
|
||||||
extern CatVar entity_id;
|
|
||||||
extern CatVar tank;
|
|
||||||
extern CatVar box_esp;
|
|
||||||
extern CatVar show_distance;
|
|
||||||
extern CatVar show_name;
|
|
||||||
extern CatVar show_class;
|
|
||||||
extern CatVar show_conditions;
|
|
||||||
extern CatVar vischeck;
|
|
||||||
extern CatVar legit;
|
|
||||||
extern CatVar show_health;
|
|
||||||
extern CatVar proj_rockets;
|
|
||||||
extern CatVar proj_arrows;
|
|
||||||
extern CatVar proj_pipes;
|
|
||||||
extern CatVar proj_stickies;
|
|
||||||
extern CatVar proj_enemy;
|
|
||||||
extern CatVar proj_esp;
|
|
||||||
extern CatVar entity_model;
|
|
||||||
extern CatVar item_weapon_spawners;
|
|
||||||
extern CatVar item_adrenaline;
|
|
||||||
|
|
||||||
class ESPString {
|
class ESPString {
|
||||||
public:
|
public:
|
||||||
std::string data { "" };
|
std::string data { "" };
|
||||||
rgba_t color { colors::empty };
|
rgba_t color { colors::empty };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Cached data
|
||||||
class ESPData {
|
class ESPData {
|
||||||
public:
|
public:
|
||||||
int string_count { 0 };
|
int string_count { 0 };
|
||||||
@ -72,18 +41,26 @@ public:
|
|||||||
Vector collide_min { 0, 0, 0 };
|
Vector collide_min { 0, 0, 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//
|
||||||
extern std::array<ESPData, 2048> data;
|
extern std::array<ESPData, 2048> data;
|
||||||
void ResetEntityStrings();
|
|
||||||
void AddEntityString(CachedEntity* entity, const std::string& string, const rgba_t& color = colors::empty);
|
|
||||||
void SetEntityColor(CachedEntity* entity, const rgba_t& color);
|
|
||||||
|
|
||||||
void CreateMove();
|
void CreateMove();
|
||||||
void Draw();
|
void Draw();
|
||||||
|
|
||||||
void __attribute__((fastcall)) DrawBox(CachedEntity* ent, const rgba_t& clr, bool healthbar, int health, int healthmax);
|
// Entity Processing
|
||||||
void __attribute__((fastcall)) ProcessEntity(CachedEntity* ent);
|
void __attribute__((fastcall)) ProcessEntity(CachedEntity* ent);
|
||||||
void __attribute__((fastcall)) ProcessEntityPT(CachedEntity* ent);
|
void __attribute__((fastcall)) ProcessEntityPT(CachedEntity* ent);
|
||||||
|
|
||||||
|
// helper funcs
|
||||||
|
void __attribute__((fastcall)) DrawBox(CachedEntity* ent, const rgba_t& clr);
|
||||||
|
void BoxCorners(int minx, int miny, int maxx, int maxy, const rgba_t& color, bool transparent);
|
||||||
|
bool GetCollide(CachedEntity* ent);
|
||||||
|
|
||||||
|
// Strings
|
||||||
|
void AddEntityString(CachedEntity* entity, const std::string& string, const rgba_t& color = colors::empty);
|
||||||
|
void SetEntityColor(CachedEntity* entity, const rgba_t& color);
|
||||||
|
void ResetEntityStrings();
|
||||||
|
|
||||||
}}}
|
}}}
|
||||||
|
|
||||||
#endif /* HESP_H_ */
|
#endif /* HESP_H_ */
|
||||||
|
Reference in New Issue
Block a user