diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 22:06:33 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 22:06:33 +0200 |
commit | b587d835e8d31c1e61b3eadbced099326c156644 (patch) | |
tree | 816f2c3f5a435a18a233de931518bca257a12a31 /src/core/Pad.cpp | |
parent | gangs, script and replay fixes (diff) | |
download | re3-b587d835e8d31c1e61b3eadbced099326c156644.tar re3-b587d835e8d31c1e61b3eadbced099326c156644.tar.gz re3-b587d835e8d31c1e61b3eadbced099326c156644.tar.bz2 re3-b587d835e8d31c1e61b3eadbced099326c156644.tar.lz re3-b587d835e8d31c1e61b3eadbced099326c156644.tar.xz re3-b587d835e8d31c1e61b3eadbced099326c156644.tar.zst re3-b587d835e8d31c1e61b3eadbced099326c156644.zip |
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r-- | src/core/Pad.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index a40366ad..ae7fcdb4 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -100,7 +100,7 @@ void WeaponCheat() void HealthCheat() { CHud::SetHelpMessage(TheText.Get("CHEAT3"), true); - FindPlayerPed()->m_fHealth = 100.0f; + FindPlayerPed()->m_fHealth = CWorld::Players[0].m_nMaxHealth; if (FindPlayerVehicle()) { FindPlayerVehicle()->m_fHealth = 1000.0f; if (FindPlayerVehicle()->m_vehType == VEHICLE_TYPE_CAR) @@ -224,7 +224,7 @@ void MoneyCheat() void ArmourCheat() { CHud::SetHelpMessage(TheText.Get("CHEAT4"), true); - FindPlayerPed()->m_fArmour = 100.0f; + FindPlayerPed()->m_fArmour = CWorld::Players[0].m_nMaxArmour; } void WantedLevelUpCheat() |