From 715ef731307499969f6e25b0b24120c0b6576e1d Mon Sep 17 00:00:00 2001 From: Caner Karaca Date: Wed, 7 Oct 2026 23:05:51 +0300 Subject: [PATCH] feat(defaults): update default values for gauges, exhaustfx, and roof --- src/features/exhaust.cpp | 2 +- src/features/exhausts.h | 6 +++--- src/features/gauge.cpp | 4 ++-- src/features/gauge.h | 6 +++--- src/features/roof.h | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/features/exhaust.cpp b/src/features/exhaust.cpp index 3f2916c4..7ee75fe5 100755 --- a/src/features/exhaust.cpp +++ b/src/features/exhaust.cpp @@ -345,7 +345,7 @@ void ExhaustFx::RenderSmokeFx(CVehicle *pVeh, const ExhaustData &info) FxPrtMult_c fxPrt(info.Color.r / 255.0f, info.Color.g / 255.0f, info.Color.b / 255.0f, alpha, 0.2f * info.fSizeMul, 1.0f, life); - for (int i = 0; i < 2; i++) + for (int i = 0; i < 1; i++) { FxSystem_c *fxSystem = isExhaustSubmerged ? g_fx.m_pPrtBubble : g_fx.m_pPrtSmokeII3expand; diff --git a/src/features/exhausts.h b/src/features/exhausts.h index 14f7abec..733e4d79 100755 --- a/src/features/exhausts.h +++ b/src/features/exhausts.h @@ -20,10 +20,10 @@ struct ExhaustData { std::string sName; RwFrame *pFrame = nullptr; - CRGBA Color = {150, 150, 150, 200}; // Dark grey default - float fLifeTime = 0.4f; // Default smoke lifetime (shortened to prevent excessive rising) + CRGBA Color = {190, 190, 190, 75}; // Soft light grey vanilla-friendly smoke + float fLifeTime = 0.25f; // Vanilla-friendly smoke lifetime float fSpeedMul = 1.0f; // Speed multiplier - float fSizeMul = 1.0f; + float fSizeMul = 0.85f; // Vanilla-friendly size multiplier bool bNitroEffect = true; FxSystem_c *pFxSysem = nullptr; }; diff --git a/src/features/gauge.cpp b/src/features/gauge.cpp index 4d7d9688..4960ee92 100755 --- a/src/features/gauge.cpp +++ b/src/features/gauge.cpp @@ -297,8 +297,8 @@ void FixedGauge::Init() if (nodeName.starts_with("x_gauge_fixed") || nodeName == "x_gasmeter" || nodeName == "x_gm" || nodeName == "petrolok") { auto &jsonData = DataMgr::Get(pVeh->m_nModelIndex); - float minAngle = 20.0f; - float maxAngle = 70.0f; + float minAngle = 30.0f; + float maxAngle = 120.0f; std::string name(nodeName); if (jsonData.contains("gauges") && jsonData["gauges"].contains(name)) { minAngle = jsonData["gauges"][name].value("minangle", minAngle); diff --git a/src/features/gauge.h b/src/features/gauge.h index 8b7b4ac2..9cc1b462 100755 --- a/src/features/gauge.h +++ b/src/features/gauge.h @@ -57,7 +57,7 @@ class MileageIndicator : public CVehFeature struct RPMGaugeData { RwFrame *pFrame = nullptr; - int iMaxRPM = 5000; + int iMaxRPM = 8000; int iPrevGear = -1; float fCurRotation = 0.0f; float fMaxRotation = 260.0f; @@ -83,10 +83,10 @@ class RPMGauge : public CVehFeature struct SpeedGaugeData { RwFrame *pFrame = nullptr; - int iMaxSpeed = 100; + int iMaxSpeed = 240; float fMul = 160.9f; float fCurRotation = 0.0f; - float fMaxRotation = 100.0f; + float fMaxRotation = 260.0f; }; struct VehSpeedData diff --git a/src/features/roof.h b/src/features/roof.h index e8a6e15d..195a60ee 100755 --- a/src/features/roof.h +++ b/src/features/roof.h @@ -5,10 +5,10 @@ struct RoofConfig { RwFrame* pFrame = nullptr; - float speed = 1.0f; + float speed = 1.5f; float currentRot = 0.0f; float prevRot = 0.0f; - float targetRot = 30.0f; + float targetRot = 60.0f; }; enum class AnimPhase {