ok
This commit is contained in:
parent
0f028d9a13
commit
829a8f2bbe
@ -38,8 +38,6 @@ public:
|
||||
void Init();
|
||||
extern std::array<ESPData, 2048> data;
|
||||
|
||||
void Draw();
|
||||
|
||||
// Entity Processing
|
||||
void __attribute__((fastcall)) ProcessEntity(CachedEntity *ent);
|
||||
void __attribute__((fastcall)) ProcessEntityPT(CachedEntity *ent);
|
||||
@ -56,4 +54,4 @@ void AddEntityString(CachedEntity *entity, const std::string &string, const rgba
|
||||
void SetEntityColor(CachedEntity *entity, const rgba_t &color);
|
||||
void ResetEntityStrings();
|
||||
} // namespace hacks::shared::esp
|
||||
#endif
|
||||
#endif
|
||||
|
@ -219,7 +219,7 @@ struct bonelist_s
|
||||
|
||||
std::unordered_map<studiohdr_t *, bonelist_s> bonelist_map{};
|
||||
// Function called on draw
|
||||
void Draw()
|
||||
static void Draw()
|
||||
{
|
||||
if (!enable)
|
||||
return;
|
||||
@ -1445,7 +1445,8 @@ void SetEntityColor(CachedEntity *entity, const rgba_t &color)
|
||||
}
|
||||
|
||||
static InitRoutine init([](){
|
||||
EC::Register<EC::CreateMove>(cm, "cm_walkbot", EC::average);
|
||||
EC::Register<EC::CreateMove>(cm, "cm_esp", EC::average);
|
||||
EC::Register<EC::Draw>(Draw, "draw_esp", EC::average);
|
||||
});
|
||||
|
||||
|
||||
|
@ -62,7 +62,8 @@ static int anti_balance_attempts = 0;
|
||||
static std::string previous_name = "";
|
||||
static Timer reset_it{};
|
||||
static Timer wait_timer{};
|
||||
static HookedFunction Refresh_anti_auto_balance(HookedFunctions_types::HF_Paint, "Autobalance", 3, [](){
|
||||
void Paint()
|
||||
{
|
||||
if (!wait_timer.test_and_set(1000))
|
||||
return;
|
||||
INetChannel *server = (INetChannel *)g_IEngine->GetNetChannelInfo();
|
||||
@ -73,7 +74,9 @@ static HookedFunction Refresh_anti_auto_balance(HookedFunctions_types::HF_Paint,
|
||||
anti_balance_attempts = 0;
|
||||
previous_name = "";
|
||||
}
|
||||
|
||||
}
|
||||
static InitRoutine Autobalance([](){
|
||||
EC::Register<EC::Paint>(Paint, "paint_autobalance", EC::average);
|
||||
});
|
||||
DEFINE_HOOKED_METHOD(DispatchUserMessage, bool, void *this_, int type, bf_read &buf)
|
||||
{
|
||||
|
@ -228,10 +228,6 @@ void DrawCheatVisuals()
|
||||
PROF_SECTION(PT_spyalert);
|
||||
hacks::tf::spyalert::Draw();
|
||||
}
|
||||
{
|
||||
PROF_SECTION(DRAW_esp);
|
||||
hacks::shared::esp::Draw();
|
||||
}
|
||||
IF_GAME(IsTF2())
|
||||
{
|
||||
criticals::draw();
|
||||
|
Reference in New Issue
Block a user