ESPHealth Bars/String

Posts 16–30 of 32 · Page 2 of 3
hey what are the dependencies for this file? like what to #include, sorry I'm new to D3D.
Quote Originally Posted by Jumboperson View Post
hey what are the dependencies for this file? like what to #include, sorry I'm new to D3D.
Code:
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "d3d9.lib")

#include <d3d9.h>
#include <d3dx9.h>
Quote Originally Posted by Flengo View Post


Code:
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "d3d9.lib")

#include <d3d9.h>
#include <d3dx9.h>
Thanks! This was quite helpful!
So , i should do like that ?

if (EspBar == 1)
{
D3D->DrawHealthBars(TRUE, FALSE, ScreenPosition.x - 10, ScreenPosition.y - 35, Health->nHealth, TRUE, Health->bSpawnSheild, pDevice);
}
Quote Originally Posted by TrollSide View Post
So , i should do like that ?

if (EspBar == 1)
{
D3D->DrawHealthBars(TRUE, FALSE, ScreenPosition.x - 10, ScreenPosition.y - 35, Health->nHealth, TRUE, Health->bSpawnSheild, pDevice);
}
EspBar is your variable which is checked to see if the hack is turned on.

If it is, you are drawing the bar with the health information from the CharacterFX Class.

So yes, you are doing it right
Quote Originally Posted by TrollSide View Post
So , i should do like that ?

if (EspBar == 1)
{
D3D->DrawHealthBars(TRUE, FALSE, ScreenPosition.x - 10, ScreenPosition.y - 35, Health->nHealth, TRUE, Health->bSpawnSheild, pDevice);
}
Quote Originally Posted by Flengo View Post


EspBar is your variable which is checked to see if the hack is turned on.

If it is, you are drawing the bar with the health information from the CharacterFX Class.

So yes, you are doing it right
On another note, the CharacterFX class and struct changed two patches ago (9/19/12) so the ESP health won't work now unless you updated it. Just a heads up
Does this work??????????????
Quote Originally Posted by fatan View Post
Does this work??????????????
You need to update the class for this to work.
@luizimloko

You would put just 1 variable, so we don't have to activate 1 or disable the other one.

But if you want both it wouldn't be possible by the method i said...
Nice work but I see you could improve this, for example it makes no logical sense to have the first 2 parameters, Bars, String.. instead of type integer you could have a boolean, true for bars and false for strings, this will remove 1 parameter and actually make your function smaller, boolean type is 1 byte while an integer is 4 bytes which memory gets allocated for. so from 8 bytes down to 1 byte just by using logic saved you 7 bytes of memory


P.s
I would also take another look at BOOL bCheckSpawnS, BOOL iSpawnCheck... Is it required to have another 2 parameters here also?
Another small thing is "ScreenPosition.x - 10, ScreenPosition.y - 35" can you not include the pixel offset in the actual function as y - 35 seems constant from your example... and using the boolean type to determine if bar/strings are used can also determine if x needs to - 10 pixels ... ofcause this only based on your example. I have have a few other suggestion to do with your actual code but because I don't Code in C++ I will not give my advice as it possibly could be wrong.
im downloading C++ 2012 now and i really wanna learn how to code healthbars for CA, and also maybe chams, but health bars forsure can someone TV me and show me a rough draft on how to do it please?
I will be using this when I start making hacks.
Good job and menu very good!
Posts 16–30 of 32 · Page 2 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?