hey what are the dependencies for this file? like what to #include, sorry I'm new to D3D.
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
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);
}
I Read All Of My PM's & VM'sIf you need help with anything, just let me know.
Staff Administrator Since 10.13.2019
Publicist Since 04.04.2015
Middleman Since 04.14.2014
Global Moderator Since 08.01.2013
Premium Since 05.29.2013
Minion+ Since 04.18.2013
Combat Arms Minion Since 12.26.2012
Contributor Since 11.16.2012
Member Since 05.11.2010
@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...
~NOOBISSES ÉPICAS DO PESSOAL~
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.
Last edited by Departure; 09-28-2012 at 02:23 AM.
luizimloko (09-28-2012)
Testando no br ...... Bom trabalho @luizimloko
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.