mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 07:10:01 +00:00
Ceil health and armor values in hud (fix 99 health)
This commit is contained in:
parent
c62d35fed0
commit
89961325b2
|
@ -336,7 +336,11 @@ void CHud::Draw()
|
||||||
|| FindPlayerPed()->m_fHealth < 10 && CTimer::GetFrameCounter() & 8) {
|
|| FindPlayerPed()->m_fHealth < 10 && CTimer::GetFrameCounter() & 8) {
|
||||||
|
|
||||||
AsciiToUnicode("{", sPrintIcon);
|
AsciiToUnicode("{", sPrintIcon);
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
sprintf(sTemp, "%03d", int32(FindPlayerPed()->m_fHealth + 0.5f));
|
||||||
|
#else
|
||||||
sprintf(sTemp, "%03d", (int32)FindPlayerPed()->m_fHealth);
|
sprintf(sTemp, "%03d", (int32)FindPlayerPed()->m_fHealth);
|
||||||
|
#endif
|
||||||
AsciiToUnicode(sTemp, sPrint);
|
AsciiToUnicode(sTemp, sPrint);
|
||||||
|
|
||||||
CFont::SetColor(CRGBA(0, 0, 0, 255));
|
CFont::SetColor(CRGBA(0, 0, 0, 255));
|
||||||
|
@ -362,7 +366,11 @@ void CHud::Draw()
|
||||||
CFont::SetScale(SCREEN_SCALE_X(0.8f), SCREEN_SCALE_Y(1.35f));
|
CFont::SetScale(SCREEN_SCALE_X(0.8f), SCREEN_SCALE_Y(1.35f));
|
||||||
if (FindPlayerPed()->m_fArmour > 1.0f) {
|
if (FindPlayerPed()->m_fArmour > 1.0f) {
|
||||||
AsciiToUnicode("[", sPrintIcon);
|
AsciiToUnicode("[", sPrintIcon);
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
sprintf(sTemp, "%03d", int32(FindPlayerPed()->m_fArmour + 0.5f));
|
||||||
|
#else
|
||||||
sprintf(sTemp, "%03d", (int32)FindPlayerPed()->m_fArmour);
|
sprintf(sTemp, "%03d", (int32)FindPlayerPed()->m_fArmour);
|
||||||
|
#endif
|
||||||
AsciiToUnicode(sTemp, sPrint);
|
AsciiToUnicode(sTemp, sPrint);
|
||||||
|
|
||||||
CFont::SetColor(CRGBA(0, 0, 0, 255));
|
CFont::SetColor(CRGBA(0, 0, 0, 255));
|
||||||
|
|
Loading…
Reference in a new issue