Skip to content

feat(backfire): complete overhaul with Soundize/VehFuncs integration, realistic ALS and dynamic shift flames - #302

Open
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/backfire-overhaul-soundize-vehfuncs
Open

feat(backfire): complete overhaul with Soundize/VehFuncs integration, realistic ALS and dynamic shift flames#302
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/backfire-overhaul-soundize-vehfuncs

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

This PR performs a comprehensive overhaul of the vehicle Backfire system, replacing the legacy full-intensity CLEO script system with a direct RenderWare particle architecture ported from VehFuncs (g_fxMan.CreateFxSystem), adding authentic Soundize FMOD audio synchronization, restoring high-speed braking/deceleration ALS flames, and expanding the sports vehicle whitelist.


Key Improvements

  1. VehFuncs Direct Particle Architecture & Memory Safety:

    • Replaced script command particle spawns with persistent C++ RenderWare FxSystem_c* instances attached to vehicle exhaust matrices.
    • All particle systems and dynamic matrices are tied to the vehicle's BackfireData lifecycle and safely released via CleanUpSystems() upon vehicle deletion (zero memory leaks, zero dangling pointers).
  2. Dynamic Asymmetric Shift Flames (SetRateMult):

    • Standard Shifts (75% of gear changes): Both exhaust pipes emit crisp, soft crackle puffs with independent random multipliers (0.35f to 0.55f), producing an authentic small-and-medium flame transition without dropping to 0%.
    • Hard Shifts (25% of gear changes): A randomly selected exhaust pipe fires a high-intensity racing blast (0.75f to 0.95f), while the other pipe maintains a subtle pop.
  3. Seamless Soundize FMOD Integration:

    • Dynamically interfaces with Soundize (Ext_IsVehicleUsingAnyBank, Ext_DoesVehicleSupportBackfire, Ext_GetVehicleDoingBackfire, Ext_GetVehicleGear).
    • Automatically synchronizes gear shift flames with Soundize's FMOD RPM shifts.
    • Vehicles with native Soundize backfire audio (e.g. Elegy with Skyline R34 bank) mute ModelExtras's WAV audio to prevent double-sound glitches.
    • Non-Soundize vehicles continue playing ModelExtras's 3D positional WAV audio cleanly.
  4. Realistic Throttle Lift-Off & Braking ALS:

    • Decoupled ALS triggering from audio pitch dropoff, restoring rapid-fire exhaust crackles and flame bursts when letting off the gas or aggressively slamming the brakes at speed (speed > 5.0f).
  5. Expanded Sports Vehicle Whitelist (ModelExtras.ini):

    • Added all missing popular sports cars, tuners, muscle cars, and bikes to BackFireEffect_VehicleModels: Elegy (562), Sultan (560), Stratum (561), Hotknife (434), Stallion (439), Slamvan (535), Bloodring Banger (504), BF Injection (424), Sanchez (468), PCJ-600 (461), FCR-900 (521), NRG-500 (522), and BF-400 (581).

@CanerKaraca23
CanerKaraca23 force-pushed the feat/backfire-overhaul-soundize-vehfuncs branch from 279fad1 to ffec27b Compare September 3, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant