OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

[Suggestion] Behavioral differences in AnnounceAll and last car

Open JunmoreHeavyBox opened this issue 10 months ago • 3 comments

Description

  • Announce with speed

The axle of each car will trigger a sound, and the rear axle of the last car will not be triggered.

  • AnnounceAll with speed

Only the front axle of each car triggers a sound, while both axles of the last car trigger a sound.

Out of the meaning of "all (axle)", I would like to exchange features with Announce.

  • AnnounceAll without speed

The sound triggered sequentially by the front axle of each car, strangely, both axles of the last car triggered the sound, causing repetition.

This is not the sound event I imagined. What I thinking is for all cars to play simultaneously.

I even think it can be used for pitch fixed joint sounds, but it lacks a rear axle and repeatable triggering.

Funny thing, I made a derailment sound event based on the #997 to entertain myself:)

I want to ask about the difference between DopplerAll.

JunmoreHeavyBox avatar Apr 02 '24 16:04 JunmoreHeavyBox

Fixed the AnnounceAll rear axle trigger issue, which was unintentional.

Adding a new event type which triggers on all axles would possibly be do-able, although I'm not sure that your joint idea is going to work in a sensible way in terms of performance.

With regards to DopplerAll, I suspect the difference you're seeing is because the train speed is calculated each time the event occurs. If the train speed is changing as each car passes over the event, you'll inevitably get differing pitch values.

leezer3 avatar Apr 02 '24 19:04 leezer3

My idea of rail joints will be discussed in the next issue. I just want to ask about the difference between DopplerAll and the original Doppler, I'm sorry. AnnounceAll did not trigger any sound in this build.

JunmoreHeavyBox avatar Apr 02 '24 22:04 JunmoreHeavyBox

Apologies, errant return statement that I thought I'd removed....

leezer3 avatar Apr 03 '24 09:04 leezer3