Feature: Hotkey to honk a vehicle's horn (#10110)

This commit is contained in:
Artin Alavi
2022-11-10 12:36:18 -08:00
committed by GitHub
parent 27e1d057c5
commit fd4f148c62
10 changed files with 60 additions and 42 deletions

View File

@@ -450,8 +450,9 @@ public:
/**
* Play the sound associated with leaving the station
* @param force Should we play the sound even if sound effects are muted? (horn hotkey)
*/
virtual void PlayLeaveStationSound() const {}
virtual void PlayLeaveStationSound(bool force = false) const {}
/**
* Whether this is the primary vehicle in the chain.