Posted: Mon Mar 12, 2012 8:44 am Post subject: little bit of maths
OK, so there's this double health address.
max hp val = 32 ____ db 00 00 00 00 00 00 40 40
min hp val = 32.0000076591969 ____ db 00 00 40 40 00 00 40 40
I'm trying to make a code that will show the % of health
so 100% would be 32
an 0% __ 32.0000076591969
with what algorithm i could calculate that ?
just need the maths, no assembly. thanks. _________________
thank you
you were wright, about the address being a float, even thought i don't know why changing the next address value affects the players health ...
anyways i figured the right algorithm:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum