Ball drop sounds have always been a bit of a challenge and a pain to add to a table. Recently, @cyberpez and I came up with drag and drop code that can quickly be added to any table, much the same way as JP’s ball rolling code is added.
The code is simple. Add the following to the ball rolling sub:
‘***Ball Drop Sounds***
If BOT(b).VelZ < -1 and BOT(b).z < 55 and BOT(b).z > 27 Then ‘height adjust for ball drop sounds
PlaySound “fx_ball_drop” & b, 0, ABS(BOT(b).velz)/17, AudioPan(BOT(b)), 0, Pitch(BOT(b)), 1, 0, AudioFade(BOT(b))
Then add ball drop sounds similar to ball rolling sounds:
Examples can be found in the new Funhouse beta and Pinbot. A sample table is attached.