PDA

View Full Version : health esp



sp0rky
02-08-2005, 12:18 AM
pDebugOverlay->AddEntityTextOverlay(iCurrentEnt,-1,0,0,0,255,255,"%i";pBasePlayer->GetHealth();


Done by P47R!CK, credit him for this.

This may not appear elsewhere without permission, but may be linked to.

Jordon
02-08-2005, 06:14 AM
Just an idea of how to make it nice, this is snippet from my hack as you can see by code every health that is taken it fades in a little more, looks nice ingame

http://jordon.game-deception.com/css/testnewesp2.gif <-- image of it



if(health.GetInt())
{
int iHealth = pBasePlayer->GetHealth();
int iRed = 0;
int iGreen = 255;
int iSub = 255;

char szHealth[10] = {0};
sprintf(szHealth, "%i",iHealth);

if(iHealth != 100)
{
iSub -= iHealth * 2.55;
iGreen -= iSub;
iRed += iSub;

iGreen %= 255;
iRed %= 255;
BaseInfo.pText->DrawTextOutlined(xPos,vecScreen[1],iRed,iGreen,0,255,szHealth,NULL);
}
else
{
BaseInfo.pText->DrawTextOutlined(xPos,vecScreen[1],0,255,0,255,szHealth,NULL);
}
}


<3 to jLn and P47R!CK

ant_man
02-08-2005, 08:15 AM
Wow. For cs1.6 it was impossible, am i right?

osGb`
02-08-2005, 10:21 AM
m i rite?

o rly?

needs more waha!

u r rite.