PDA

View Full Version : Health & Armor bars.



STR
27-08-07, 05:16
int *Health = (int*) ( (DWORD)pBaseEntity + (DWORD)0xDA4 );
int *Armor = (int*) ( (DWORD)pBaseEntity + (DWORD)0x1018 );

//divide a little or the bars are huge.
int hp = *Health / 2.5;
int armor = *Armor / 2.5;


if(cvars.esp_health==1)
{
HalFLife2.m_pNeeded->FillRGBA( vScreen.x-10, vScreen.y+16 ,100 / 2.5, 5, CHEAT_BLACK);
HalFLife2.m_pNeeded->FillRGBA( vScreen.x-10, vScreen.y+16 ,hp, 5, dwGetTeamColor);}

if(cvars.esp_armor==1)
{
HalFLife2.m_pNeeded->FillRGBA( vScreen.x-10, vScreen.y+24 ,100 / 2.5, 5, CHEAT_BLACK);
HalFLife2.m_pNeeded->FillRGBA( vScreen.x-10, vScreen.y+24 ,armor, 5, CHEAT_ARMOR);
}
credits: holz (armor address)

Skelletor
27-08-07, 08:44
nice work m8 keep up the good work

Jianwei
06-09-07, 11:34
why i cannot work it.. im in vista.. and i couldn't compile it nor run it..

it's says " There's doesn't seems to be GNU Make file in PATH or in Dev-C++'s Bin path. "

i don't know what they mean.. but im kinda interested in C++ coding.. im currently still re-read the book to understand more clearly..

STR
07-09-07, 03:19
you need a base hook with an esp class, also i suggest using microsoft visual c++ 2003.net

Jianwei
18-09-07, 09:54
do you mean visual studio .net 2003? or something else?

JAvEX
18-09-07, 09:45
Yes, that's the same thing. This is made to work with RH Pub base, but it can easily be modified to work with any other basehook..