fix: decouple vehicle LOD from extended draw, restrict minimap override, hide wanted at zero (playtest round 1)
linux / build (push) Canceled after 10m27s

This commit is contained in:
2026-12-01 16:38:16 +00:00
parent 8cecb622c6
commit fa09f4bfb4
3 changed files with 30 additions and 15 deletions
+11 -7
View File
@@ -177,9 +177,11 @@ HUD_TrackMoney(int32 money)
}
// The minimap is a driving aid: it only shows while the player is in a vehicle,
// and F10 toggles that in-vehicle display on or off. A waypoint or any visible
// blip (mission marker, mission target) forces it on regardless, so navigation
// is never hidden.
// and F10 toggles that in-vehicle display on or off. It is forced on only while
// a waypoint (BLIP_COORD) or a mission contact marker (BLIP_CONTACT_POINT) is
// set, so navigation is never hidden. Entity blips (BLIP_CAR/CHAR/OBJECT) don't
// force it on: scripts leave persistent ones behind (mission targets, parked
// mission vehicles), which kept the minimap on permanently.
static bool
HUD_RadarShouldBeVisible()
{
@@ -190,10 +192,7 @@ HUD_RadarShouldBeVisible()
pTrace = &CRadar::ms_RadarTrace[i];
if (pTrace->m_bInUse
&& pTrace->m_eBlipDisplay != BLIP_DISPLAY_NEITHER
&& (pTrace->m_eBlipType == BLIP_CAR
|| pTrace->m_eBlipType == BLIP_CHAR
|| pTrace->m_eBlipType == BLIP_OBJECT
|| pTrace->m_eBlipType == BLIP_COORD
&& (pTrace->m_eBlipType == BLIP_COORD
|| pTrace->m_eBlipType == BLIP_CONTACT_POINT))
return true;
}
@@ -821,6 +820,11 @@ void CHud::Draw()
float fStarsX = SCREEN_SCALE_FROM_RIGHT(STARS_X);
#ifdef HUD_REWORK
// Not wanted, no stars: vanilla keeps the black star outlines on screen
// forever, which reads as "still wanted" once the HUD is this sparse.
if (FindPlayerPed()->m_pWanted->GetWantedLevel() > 0)
#endif
for (int i = 0; i < 6; i++) {
CFont::SetColor(CRGBA(0, 0, 0, 255));
CFont::PrintString(fStarsX + SCREEN_SCALE_X_FIX(2.0f), SCREEN_SCALE_Y(87.0f) + SCREEN_SCALE_Y_FIX(2.0f), sPrintIcon);