Skip to content

feat(lights, sirens): add LightsRequireEngine and SirensRequireEngine configuration options - #355

Open
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/require-engine-options
Open

CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/require-engine-options

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

Adds LightsRequireEngine and SirensRequireEngine INI settings under [LIGHTS] to configure whether vehicle lights and emergency siren light patterns/rotators require the vehicle's engine to be turned on.

Details

  • LightsRequireEngine (default 0):
    • When enabled (1), vehicle headlights, tail lights, high beams, daytime lights, spotlights, light beams, pointlights, and license plate illumination remain turned off while the engine is stopped (Util::IsEngineOff(pVeh)), matching realistic vehicle battery/ignition behavior.
    • Emergency hazard flashers and vehicle alarms are intentionally exempted from engine requirement.
    • Adds CarUtil::AreLightsOn(pVeh) helper for consistent light status evaluation across features (plate, lights, etc.).
  • SirensRequireEngine (default 0):
    • When enabled (1), siren light bars, strobes, and rotators stop cycling when the engine is shut off.
  • Fully backwards compatible with existing INI configurations (defaults to 0).

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