Well well this isnt anything big, just a bomb flag that draws a stand and box with printing Bomb or if ist planted
it draws "Planted" and has the stand and shit. This can be improved this is just something i did whilst bored.
Uses entity ESP so obviously credit OGC and shizzit.
Code:
void CESP::BombFlag()
{
if(cvar.bflag)
{
cl_entity_s *me = getyourself();
for(int i=1; i<screeninfo.iHeight; i++)
{
cl_entity_s *ent = getentbyindex(loopme)
if(ent && (ent->curstate.messagenum+10 > me->curstate.messagenum) && ent->model && ent->model->name)
{
float tmp // array of 2
char mdl // array of 64
char *wpn// NULL it
strncpy(mdl, ent->model->name, 64);
wpn = mdl;
if(wpn && CalcScreen(ent->origin, tmp) && strstr(wpn, "backpack"))
{
FillArea((int)tmp[0],(int)tmp[1]-125,5,126,255,255,128,255); // Flag stand
FillArea((int)tmp[0]-45,(int)tmp[1]-135,100,40,0,0,0,140); // Flag box
F_LINKS.Print((int)tmp[0]-10, (int)tmp[1]-122, 255, 255, 255,FL_OUTLINE, "Bomb", wpn); // Printing
ent->render red = 100;
ent->render blue = 255;
ent->render green = 160;
ent->render size = 200;
ent->render type = kRenderFxGlowShell;
}
if(wpn && CalcScreen(ent->origin, tmp) && strstr(wpn, "c4"))
{
FillArea((int)tmp[0],(int)tmp[1]-125,5,126,255,255,128,255); // Flag stand
FillArea((int)tmp[0]-45,(int)tmp[1]-135,100,40,0,0,0,140); // Flag box
F_LINKS.Print((int)tmp[0]-14, (int)tmp[1]-122, 255, 255, 255,FL_OUTLINE, "Planted", wpn); // Printing
ent->render red = 255;
ent->render blue = 0;
ent->render green = 0;
ent->render size = 200;
ent->render type = kRenderFxGlowShell;
}
}
else if(!ent)
break;
}
}
}