libglez pls
This commit is contained in:
parent
c799294018
commit
6e590dd71d
@ -92,9 +92,9 @@ void DrawSpinner()
|
|||||||
|
|
||||||
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
|
const glez_rgba_t color = glez_rgba(255, 255, 255, 255);
|
||||||
|
|
||||||
draw_api::texture_handle_t text = draw_api::create_texture("/opt/cathook/data/res/atlas.png");
|
draw_api::texture_handle_t text = draw_api::create_texture(DATA_PATH"/res/atlas.png");
|
||||||
while (!text.handle)
|
while (!text.handle)
|
||||||
text = draw_api::create_texture("/opt/cathook/data/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);
|
||||||
|
@ -152,12 +152,16 @@ public:
|
|||||||
else if (!strcmp(name, "player_changeclass")) {
|
else if (!strcmp(name, "player_changeclass")) {
|
||||||
int id = event->GetInt("userid");
|
int id = event->GetInt("userid");
|
||||||
player_info_s info;
|
player_info_s info;
|
||||||
|
g_IEngine->GetPlayerInfo(g_IEngine->GetPlayerForUserID(id), &info);
|
||||||
PrintChat("\x07%06X%s\x01 changed to \x07%06X%s\x01", 0xa06ba0, info.name, 0xa06ba0, classname(event->GetInt("class")));
|
PrintChat("\x07%06X%s\x01 changed to \x07%06X%s\x01", 0xa06ba0, info.name, 0xa06ba0, classname(event->GetInt("class")));
|
||||||
}
|
}
|
||||||
else if (!strcmp(name, "player_builtobject")) {
|
else if (!strcmp(name, "player_builtobject")) {
|
||||||
int obj = event->GetInt("object");
|
int obj = event->GetInt("object");
|
||||||
|
int idx = event->GetInt("index");
|
||||||
logging::Info("%d, %d, %d", obj == ENTITY_BUILDING, obj == CL_CLASS(CObjectSentrygun), obj);
|
CachedEntity* building = ENTITY(idx);
|
||||||
|
if (CE_GOOD(building))
|
||||||
|
logging::Info("%d, %d",building->m_iClassID, CL_CLASS(CObjectSentrygun));
|
||||||
|
logging::Info("%d, %d, %d", obj, ENTITY_BUILDING, CL_CLASS(CObjectSentrygun));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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)
|
while (!textur)
|
||||||
textur = glez_texture_load_png_rgba(
|
textur = glez_texture_load_png_rgba(
|
||||||
"/opt/cathook/data/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(
|
||||||
"/opt/cathook/data/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(
|
||||||
"/opt/cathook/data/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