Skip to content

fix(backfire): prevent backfire effect in reverse gear and backwards motion - #344

Open
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:fix/backfire-reverse-gear
Open

CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:fix/backfire-reverse-gear

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

Fixes an issue where the backfire and anti-lag exhaust flame effect could inadvertently trigger while reversing or when the vehicle is in reverse gear (m_nCurrentGear == 0) or traveling backwards.

Key Changes

  • Adds a check in Backfire::Process (src/features/backfire.cpp) to skip backfire effect processing when pVeh->m_nCurrentGear == 0 or vehicle velocity is in the reverse direction.
  • Ensures backfire flames and audio only trigger during forward driving, acceleration, and gear shifts.

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