Right formula
This commit is contained in:
parent
6327cbf7d0
commit
248ab65268
@ -65,7 +65,7 @@ namespace ShowGiantsForm
|
|||||||
float damage = readFloatPointer(0x161D00, 0x278);
|
float damage = readFloatPointer(0x161D00, 0x278);
|
||||||
float currentHp = maxHp - damage;
|
float currentHp = maxHp - damage;
|
||||||
|
|
||||||
float speed = Math.Abs(speedx) + Math.Abs(speedy) + Math.Abs(speedz);
|
double speed = Math.Sqrt(Math.Pow(speedx, 2) + Math.Pow(speedy, 2) + Math.Pow(speedz, 2));
|
||||||
SpeedLbl.Text = "Speed: " + speed;
|
SpeedLbl.Text = "Speed: " + speed;
|
||||||
hpLbl.Text = "HP: " + currentHp;
|
hpLbl.Text = "HP: " + currentHp;
|
||||||
} catch (Exception ex)
|
} catch (Exception ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user