Skip to content

feat(sound): add car door open warning chime sound effect - #331

Draft
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/car-door-open-warning-chime
Draft

CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/car-door-open-warning-chime

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Resolves #190

Summary

Adds a 3D positional car door open warning chime sound effect to ModelExtras.

Key Changes

  • 3D Looping Stream Support: Extended AudioMgr with PlayLoopStream, UpdateLoopStream, and StopLoopStream utilizing BASS 3D positional audio.
  • Door Chime Logic: Integrates door open checks for front left/right vehicle doors in SoundEffects::ProcessVehicle when the engine is active or player is nearby.
  • Audio Asset: Added door_chime.mp3 sound asset to resource/dist/ModelExtras/audio/ (supports .mp3, .wav, .ogg overrides).
  • Curated Whitelist & Customization:
    • [TABLE] DoorChime_VehicleModels: Curated list of 64 modern 80s/90s/2000s passenger cars, sports cars, supercars, SUVs, modern vans, pickups, and emergency vehicles.
    • [SOUND] DoorChimeOnlySelected: Allows toggling whether the chime plays only on whitelisted models or across all automobiles.
    • Per-vehicle JSONC support via "sound": { "door_chime": true/false }.
  • INI & Code Cleanup: Cleaned up sound effect configuration keys in [SOUND] and [TABLE] for consistency and readability.

@CanerKaraca23 CanerKaraca23 added this to the v3.1 milestone Sep 16, 2026
@CanerKaraca23
CanerKaraca23 marked this pull request as draft September 16, 2026 20:01
@CanerKaraca23
CanerKaraca23 force-pushed the feat/car-door-open-warning-chime branch from 9007017 to 82d1473 Compare September 16, 2026 20:17
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.

Open Door Warning System for all vehicles

1 participant