private void LowHealthBooster() { float current, max = 500.0f; ulong adr = cmbVersion.Text == "CUSA07708" ? Util.GetPointerAdress("@523E5C8_3_F765C8+7A0+148+0+8F0+10+10+8+64", processID) : Util.GetPointerAdress("@53F0998_3_F7C998+C90+8B8+108+8+25C", processID); if (adr > 0) { current = PS4.ReadSingle(processID, adr); double per = (double)current / max; int _per = Convert.ToInt16(per * 100); if (_per <= 25) { PS4.WriteSingle(processID, adr, max); } } }
private void tmrHealth_Tick(object sender, EventArgs e) { if (attached) { if (tglHealth.Checked == true) { if (PS4.ReadSingle(processID, 0x2298D4CC0) >= 80) { PS4.WriteSingle(processID, 0x2298D4CC0, 100); } } else { } } }