24.01.2014, 13:29
Quote:
I have a scripted health system and I do round down values of HP unless weapons used are not those where the damage is below 1. Just in case, but it's great to know this.
|
pawn Код:
new iHealth = 1.0, iHealthEx, Float: fHealth = 1.4;
iHealthEx = floatround(fHealth, floatround_round);
if(iHealth != iHealthEx) { return false; } // It doesn't match
else if(iHealth == iHealthEx) { return true; } // It does match