[Help]Type conversions?
Alright so I have 2 addresses, one is for Total Health, one is for Current Health.. The problem is for some reason or another the Total is type(2Byte) and the Current is type(Float) What I am trying to do is determine when the Current Health gets to a certain % of the total for example..
^ The idea is to "do something" once you reach 60% of your total Health!
The problem is that MaxHP is of type 2BYTE(INT) and CurHP is type FLOAT, anyone have any advice?
Code:
#define MaxHP (*(short*)( 0x030C178E ) )
#define CurHP (*(float*)( 0x0307A66C ) )
if(CurHP < (MaxHP * 0.6))
{
do stuff
}
The problem is that MaxHP is of type 2BYTE(INT) and CurHP is type FLOAT, anyone have any advice?

