fix: decouple vehicle LOD from extended draw, restrict minimap override, hide wanted at zero (playtest round 1)
linux / build (push) Canceled after 10m27s
linux / build (push) Canceled after 10m27s
This commit is contained in:
+10
-8
@@ -497,14 +497,16 @@ enum Config {
|
||||
#endif // VANILLA_DEFINES
|
||||
|
||||
// Extended draw distance (issue #30): peds and vehicles are created and removed
|
||||
// farther from the player and LOD switches happen later, reducing pop-in.
|
||||
// Custom tuning, so off by default.
|
||||
// The generation scale feeds ped/vehicle creation and removal radii, vehicle LOD
|
||||
// cull distances (CVisibilityPlugins ms_vehicleLod0/1Dist, ms_bigVehicleLod0Dist,
|
||||
// wheel-atomic LOD ratio), the car-generator activation band and car path
|
||||
// acceptance. Vehicle LOD fades still overwrite material alpha (see
|
||||
// VEHICLE_LODDIST_MULTIPLIER in VisibilityPlugins.cpp), so enabling this requires
|
||||
// in-game verification that vehicle LOD fades don't visibly break.
|
||||
// farther from the player, reducing pop-in. Custom tuning, so off by default.
|
||||
// The generation scale feeds the ped/vehicle creation and removal radii, the
|
||||
// car-generator activation band and car path acceptance. Vehicle LOD cull
|
||||
// distances (CVisibilityPlugins ms_vehicleLod0/1Dist, ms_bigVehicleLod0Dist,
|
||||
// wheel-atomic LOD ratio) are deliberately NOT scaled: they divide the
|
||||
// generation scale back out so they match vanilla exactly, otherwise low-detail
|
||||
// car bodies stay visible well past vanilla's switch and cull distance. That
|
||||
// also avoids the fade risk the old VEHICLE_LODDIST_MULTIPLIER comment warns
|
||||
// about, because the whole LOD band is left untouched; only the spawn radius is
|
||||
// scaled.
|
||||
// The 1.5 slider default and 1.25 generation scale are a matched pair: their
|
||||
// ratio reproduces vanilla's generation/LOD proportion only at these values, so
|
||||
// tune together. Existing saved settings keep their stored DrawDistance; the new
|
||||
|
||||
+11
-7
@@ -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);
|
||||
|
||||
@@ -229,7 +229,16 @@ CVisibilityPlugins::InsertAtomicIntoSortedList(RpAtomic *a, float dist)
|
||||
|
||||
// can't increase this yet unfortunately...
|
||||
// probably have to fix fading for this so material alpha isn't overwritten
|
||||
#ifdef EXTENDED_DRAW
|
||||
// EXTENDED_DRAW inflates GenerationDistMultiplier to widen the ped/vehicle
|
||||
// creation and removal radius. Vehicle LOD is decoupled from that: dividing the
|
||||
// scale back out keeps the LOD bands (and the wheel-atomic LOD ratio below)
|
||||
// exactly where vanilla puts them, so low-detail car bodies don't stay visible
|
||||
// well past vanilla's switch/cull distance.
|
||||
#define VEHICLE_LODDIST_MULTIPLIER (TheCamera.GenerationDistMultiplier / EXTENDED_DRAW_GENERATION_SCALE)
|
||||
#else
|
||||
#define VEHICLE_LODDIST_MULTIPLIER (TheCamera.GenerationDistMultiplier)
|
||||
#endif
|
||||
|
||||
void
|
||||
CVisibilityPlugins::SetRenderWareCamera(RwCamera *camera)
|
||||
|
||||
Reference in New Issue
Block a user