Right formula

This commit is contained in:
Amazed 2020-02-11 01:10:08 +01:00
parent 6327cbf7d0
commit 248ab65268

View File

@ -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)