woops
This commit is contained in:
parent
bfc40d8fa3
commit
3bebe7f1a4
@ -94,7 +94,7 @@ void DrawSpinner()
|
|||||||
|
|
||||||
draw_api::texture_handle_t text = draw_api::create_texture(DATA_PATH"/res/atlas.png");
|
draw_api::texture_handle_t text = draw_api::create_texture(DATA_PATH"/res/atlas.png");
|
||||||
while (!text.handle || text.handle == 4294967295)
|
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,
|
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,
|
text, 0 + 64 * state, (3 + (v9mode ? 1 : 0)) * 64, 64, 64,
|
||||||
angle);
|
angle);
|
||||||
|
@ -98,14 +98,11 @@ void CreateMove()
|
|||||||
if (!enabled)
|
if (!enabled)
|
||||||
return;
|
return;
|
||||||
spy = ClosestSpy();
|
spy = ClosestSpy();
|
||||||
static float backup;
|
|
||||||
if (spy && CE_GOOD(spy))
|
if (spy && CE_GOOD(spy))
|
||||||
{
|
{
|
||||||
ConVar *var = g_ICvar->FindVar("cl_pitchdown");
|
ConVar *var = g_ICvar->FindVar("cl_pitchdown");
|
||||||
if (!var)
|
if (!var)
|
||||||
return;
|
return;
|
||||||
if (!backup)
|
|
||||||
backup = var->GetFloat();
|
|
||||||
var->SetValue(140.0f);
|
var->SetValue(140.0f);
|
||||||
g_pUserCmd->viewangles.x = 140.0f;
|
g_pUserCmd->viewangles.x = 140.0f;
|
||||||
g_pLocalPlayer->bUseSilentAngles = true;
|
g_pLocalPlayer->bUseSilentAngles = true;
|
||||||
@ -115,7 +112,7 @@ void CreateMove()
|
|||||||
else if (!spy || CE_BAD(spy))
|
else if (!spy || CE_BAD(spy))
|
||||||
{
|
{
|
||||||
ConVar *var = g_ICvar->FindVar("cl_pitchdown");
|
ConVar *var = g_ICvar->FindVar("cl_pitchdown");
|
||||||
var->SetValue(backup);
|
var->SetValue(89);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ void _FASTCALL emoji(CachedEntity *ent)
|
|||||||
if (ent->m_Type == ENTITY_PLAYER)
|
if (ent->m_Type == ENTITY_PLAYER)
|
||||||
{
|
{
|
||||||
static glez_texture_t textur =
|
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;
|
static glez_texture_t idspecific;
|
||||||
if (emoji_ok)
|
if (emoji_ok)
|
||||||
auto hit = hitboxcache[ent->m_IDX][0];
|
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);
|
glez_rgba_t white = glez_rgba(255, 255, 255, 255);
|
||||||
while (!textur || textur == 4294967295)
|
while (!textur || textur == 4294967295)
|
||||||
textur = glez_texture_load_png_rgba(
|
textur = glez_texture_load_png_rgba(
|
||||||
DATA_PATH"res/atlas.png");
|
DATA_PATH"/res/atlas.png");
|
||||||
player_info_s info;
|
player_info_s info;
|
||||||
unsigned int steamID;
|
unsigned int steamID;
|
||||||
unsigned int steamidarray[32]{};
|
unsigned int steamidarray[32]{};
|
||||||
@ -416,7 +416,7 @@ void _FASTCALL emoji(CachedEntity *ent)
|
|||||||
steamID = info.friendsID;
|
steamID = info.friendsID;
|
||||||
if (!idspecific)
|
if (!idspecific)
|
||||||
idspecific = glez_texture_load_png_rgba(
|
idspecific = glez_texture_load_png_rgba(
|
||||||
DATA_PATH"res/idspec.png");
|
DATA_PATH"/res/idspec.png");
|
||||||
if (idspecific &&
|
if (idspecific &&
|
||||||
playerlist::AccessData(steamID).state ==
|
playerlist::AccessData(steamID).state ==
|
||||||
playerlist::k_EState::CAT)
|
playerlist::k_EState::CAT)
|
||||||
@ -429,7 +429,7 @@ void _FASTCALL emoji(CachedEntity *ent)
|
|||||||
{
|
{
|
||||||
while (!idspecific)
|
while (!idspecific)
|
||||||
idspecific = glez_texture_load_png_rgba(
|
idspecific = glez_texture_load_png_rgba(
|
||||||
DATA_PATH"res/idspec.png");
|
DATA_PATH"/res/idspec.png");
|
||||||
if (idspecific)
|
if (idspecific)
|
||||||
glez_rect_textured(head_scr.x - size / 2,
|
glez_rect_textured(head_scr.x - size / 2,
|
||||||
head_scr.y - size / 2, size,
|
head_scr.y - size / 2, size,
|
||||||
|
Reference in New Issue
Block a user