Conflicts:
	simple-ipc
This commit is contained in:
nullifiedcat 2017-08-18 12:31:21 +03:00
commit 56e96af7ad
6 changed files with 643 additions and 541 deletions

View File

@ -156,34 +156,32 @@
"name": "ESP",
"list": [
"esp_enabled",
"esp_bones",
"esp_conds",
"esp_class",
"esp_name",
"esp_distance",
"esp_ubercharge",
"esp_box",
"esp_box_text_position",
"esp_box_nodraw",
"esp_box_expand",
"esp_box_healthbar",
"esp_box_corners",
"esp_box_corner_size",
"esp_legit",
"esp_health_num",
"esp_weapon_spawners",
"esp_model_name",
"esp_weapon",
"esp_vischeck",
"esp_show_tank",
"esp_entity_id",
"esp_followbot_id",
"esp_teammates",
"esp_entity",
"esp_buildings",
"esp_local",
"esp_powerups",
"esp_health",
"esp_expand",
"esp_tracers",
"esp_text_position",
"esp_legit",
"esp_vischeck",
"esp_bones",
"esp_buildings",
"esp_teammates",
"esp_name",
"esp_class",
"esp_distance",
"esp_conds",
"esp_ubercharge",
"esp_weapon",
"esp_powerups",
"esp_show_tank",
"esp_weapon_spawners",
"esp_followbot_id",
"esp_local",
"esp_sightlines",
"esp_entity",
"esp_model_name",
"esp_entity_id",
{
"type": "list",
"name": "Emoji ESP",

File diff suppressed because it is too large Load Diff

View File

@ -22,67 +22,45 @@ class CachedEntity;
namespace hacks { namespace shared { namespace esp {
extern CatVar local_esp;
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;
// Strings
class ESPString {
public:
std::string data { "" };
rgba_t color { colors::empty };
};
// Cached data
class ESPData {
public:
rgba_t color { colors::empty };
int string_count { 0 };
std::array<ESPString, 16> strings {};
Vector esp_origin { 0, 0, 0 };
Vector last_origin { 0, 0, 0 };
rgba_t color { colors::empty };
bool needs_paint { false };
bool has_collide { false };
Vector collide_max { 0, 0, 0 };
Vector collide_min { 0, 0, 0 };
};
//
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 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)) 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_ */

View File

@ -30,8 +30,6 @@
namespace hacks { namespace shared { namespace misc {
//static CatVar remove_conditions(CV_SWITCH, "remove_conditions", "0", "Remove conditions");
static CatVar render_zoomed(CV_SWITCH, "render_zoomed", "0", "Render model when zoomed-in", "Renders player model while being zoomed in as Sniper");
void* C_TFPlayer__ShouldDraw_original = nullptr;

View File

@ -260,7 +260,7 @@ CatVar namesteal(namesteal_enum, "name_stealer", "0", "Name Stealer", "Attemt to
static std::string stolen_name;
// Func to get a new entity to steal name from
// Func to get a new entity to steal name from and returns true if a target has been found
bool StolenName(){
// Array to store potential namestealer targets with a bookkeeper to tell how full it is

View File

@ -150,7 +150,10 @@ void CreateInterfaces() {
g_ppScreenSpaceRegistrationHead = *(CScreenSpaceEffectRegistration***)(gSignatures.GetClientSignature("E8 ? ? ? ? 8B 10 C7 44 24 04 ? ? ? ? 89 04 24 FF 52 28 85 C0 75 4B 8B 35 ? ? ? ? 85 F6 74 31 90 8B 5E 04 85 DB 74 22 8B 03 89 1C 24") + 27);
}
logging::Info("Finding HUD");
{
IF_GAME (IsCSS()) {
logging::Info("FATAL: Signatures not defined for CSS - HUD");
g_CHUD = nullptr;
} else {
uintptr_t hud_sig = gSignatures.GetClientSignature("FF 50 08 D9 9D 24 FE FF FF 89 3C 24 E8 ? ? ? ? C7 44 24 04 ? ? ? ? C7 04 24 ? ? ? ? D9 9D 20 FE FF FF E8 ? ? ? ? 85 C0 74 3B 66 0F 6E C3 C7 44 24 10 00 00 00 00 F3 0F 5C 85 20 FE FF FF") + 28;
g_CHUD = *reinterpret_cast<CHud**>(hud_sig);
logging::Info("HUD 0x%08x 0x%08x", hud_sig, g_CHUD);