View Full Version : Health - Vehicle and Player
Chaotik
29th June 2005, 04:27
Has anyone done any searching into this yet. I would like to be able to utilize this but have no idea what to search for. Have fiddled for a couple hours and came up with nothing. I was hoping a few pros here could help out. I think since the health bars don't display until there is damage, it wouldn't clutter your sceen all that much.
Anways, does anyone have any ideas to get me started?!?
muhko
29th June 2005, 11:53
Has anyone done any searching into this yet. I would like to be able to utilize this but have no idea what to search for. Have fiddled for a couple hours and came up with nothing. I was hoping a few pros here could help out. I think since the health bars don't display until there is damage, it wouldn't clutter your sceen all that much.
Anways, does anyone have any ideas to get me started?!?
With 1942 what we used to do was find the code section that tells the game you are a medic and NOP the cmp so the game always shows you the % health tags - i would presume this to be the same with BF2.
Essentially the classes are numbered 0-6 (at least they are in 1942), so change your class and search accordingly until you have the class DMA, now you could "freeze" this at what ever value you wish or you could BP the DMA and track back into the game code to find ur NOP.
xollox
29th June 2005, 17:41
Couple things:
I was playing as a medic and was trying to find the addresses for the minimap hack, I stumbled across the health bar display. I believe I just nopped a conditional jump and it made them show up for the enemies as well. Wasn't what I was going for at the time, but still cool (:
I believe the classes aren't laid out the same as bf1942. I tried finding my class value the standard way (0-6) and I couldn't find it. It's possible I was being an incompetant fool, but I tried it a couple times. I think there may be something more to it for the unlockable weapons.
Chaotik
30th June 2005, 06:53
Messed around for bit, tried kit values. seems they go from 0 - 6 on each team in order. but they don't really do anything. Tried doing the 0 or 1 thing for showing health bar and not showing on same player. I would shoot him a but then heal him. Got a big list of addys, tried nopping but only got crashes.
I am thinking it is the RendDX9.dll close to tags like vietnam. Anyone else try this yet?
chilli
30th June 2005, 10:32
xollox did you find a way to disable fading with distance for enemy tags?
muhko
30th June 2005, 14:50
Chaotik:
Once you have found the class DMA you have to freeze it in Tsearch - for best results in the tsearch options set the freeze timer all the way to the left as well as the refresh timer. Anyway what you need to do is find the code that reads this DMA (set a BP) and more importantly icolate the code that is exectuted only when you are a medic - as Xollox says it is a CMP before a JNZ. On a side note there would also be one for an Engineer assuming a similar health bar appears when you are that class (i hate the shotgun so i cant tell you )
Chilli:
If you set the NameTagViewDistance value to larger than the map area you should see all tags without the dimming taking place.
xollox
30th June 2005, 18:44
chilli, no i haven't.
Chaotik, I believe it is in the dx dll file.
PizzaPan
30th June 2005, 19:06
havnt looked at health since the beginning of the beta, but take a look at the loop in the function at: Base+0x170640, if my notes are still correct, however this was for the beta, so it could be differnt :)
Chaotik
1st July 2005, 23:58
Chaotik:
Once you have found the class DMA you have to freeze it in Tsearch - for best results in the tsearch options set the freeze timer all the way to the left as well as the refresh timer. Anyway what you need to do is find the code that reads this DMA (set a BP) and more importantly icolate the code that is exectuted only when you are a medic - as Xollox says it is a CMP before a JNZ. On a side note there would also be one for an Engineer assuming a similar health bar appears when you are that class (i hate the shotgun so i cant tell you )
I do that but all i get are addys in the bf2.exe
i get 5 dma spots that hold the class value, i breakpoint each one, and i just get mov's in the bf2.exe Did you get this as well. should i not get an addy that is in the renddx9,.dll?
Edit: Does anyone have anymore input on this topic????
Chaotik
6th July 2005, 04:15
Alright, I don't wanna double post in this thread, but me and a few others are still working on this. Me and Kosire managed to stumble upon a few other neat 'tricks' but have still yet not been able to find health tags.
Can anyone offer anymore on this topic!?
h4x0rz4lyfe
6th July 2005, 05:01
Isn't Health serverside?
Chaotik
6th July 2005, 06:26
yes my ghetto friend, in the sense that your amount of health is stored server side, but being able to show the amount of the enemy players health above his head like tags can be done on your machine!
Anyone?
h4x0rz4lyfe
6th July 2005, 06:28
OO I see what you mean, I had it backwards. :P.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.