From 3bebe7f1a425c99f2e4a89da772c80e5379a5839 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 7 Apr 2018 20:20:55 +0200 Subject: [PATCH] woops --- src/fidgetspinner.cpp | 2 +- src/hacks/AntiBackstab.cpp | 5 +---- src/hacks/ESP.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/fidgetspinner.cpp b/src/fidgetspinner.cpp index a9fe8c85..756d119e 100644 --- a/src/fidgetspinner.cpp +++ b/src/fidgetspinner.cpp @@ -94,7 +94,7 @@ void DrawSpinner() draw_api::texture_handle_t text = draw_api::create_texture(DATA_PATH"/res/atlas.png"); while (!text.handle || text.handle == 4294967295) - text = draw_api::create_texture(DATA_PATH"res/atlas.png"); + text = draw_api::create_texture(DATA_PATH"/res/atlas.png"); draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size, colors::white, text, 0 + 64 * state, (3 + (v9mode ? 1 : 0)) * 64, 64, 64, angle); diff --git a/src/hacks/AntiBackstab.cpp b/src/hacks/AntiBackstab.cpp index 2456f7f2..5e76c1f6 100644 --- a/src/hacks/AntiBackstab.cpp +++ b/src/hacks/AntiBackstab.cpp @@ -98,14 +98,11 @@ void CreateMove() if (!enabled) return; spy = ClosestSpy(); - static float backup; if (spy && CE_GOOD(spy)) { ConVar *var = g_ICvar->FindVar("cl_pitchdown"); if (!var) return; - if (!backup) - backup = var->GetFloat(); var->SetValue(140.0f); g_pUserCmd->viewangles.x = 140.0f; g_pLocalPlayer->bUseSilentAngles = true; @@ -115,7 +112,7 @@ void CreateMove() else if (!spy || CE_BAD(spy)) { ConVar *var = g_ICvar->FindVar("cl_pitchdown"); - var->SetValue(backup); + var->SetValue(89); } } } diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index 8db64845..2046db6b 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -378,7 +378,7 @@ void _FASTCALL emoji(CachedEntity *ent) if (ent->m_Type == ENTITY_PLAYER) { static glez_texture_t textur = - glez_texture_load_png_rgba("/opt/cathook/data/res/atlas.png"); + glez_texture_load_png_rgba(DATA_PATH"/res/atlas.png"); static glez_texture_t idspecific; if (emoji_ok) auto hit = hitboxcache[ent->m_IDX][0]; @@ -403,7 +403,7 @@ void _FASTCALL emoji(CachedEntity *ent) glez_rgba_t white = glez_rgba(255, 255, 255, 255); while (!textur || textur == 4294967295) textur = glez_texture_load_png_rgba( - DATA_PATH"res/atlas.png"); + DATA_PATH"/res/atlas.png"); player_info_s info; unsigned int steamID; unsigned int steamidarray[32]{}; @@ -416,7 +416,7 @@ void _FASTCALL emoji(CachedEntity *ent) steamID = info.friendsID; if (!idspecific) idspecific = glez_texture_load_png_rgba( - DATA_PATH"res/idspec.png"); + DATA_PATH"/res/idspec.png"); if (idspecific && playerlist::AccessData(steamID).state == playerlist::k_EState::CAT) @@ -429,7 +429,7 @@ void _FASTCALL emoji(CachedEntity *ent) { while (!idspecific) idspecific = glez_texture_load_png_rgba( - DATA_PATH"res/idspec.png"); + DATA_PATH"/res/idspec.png"); if (idspecific) glez_rect_textured(head_scr.x - size / 2, head_scr.y - size / 2, size,