Extended Vehicle Siren Control (Suggested Feature)

Judging on the size of the Role-Play community in Unturned, I’d assume it would be a nice, ‘quality-of-life’ feature to add different siren tones to emergency service vehicles. Instead of making specific sounds adjacent to their designated vehicle model, this feature would share a library of vehicles much like how when a horn.ogg is bundled, any vehicle can point to that said audio clip as long as a specified and valid path is set in the .dat configuration.

Let me explain what exactly I’m talking about below:

Instead of engaging the lights and siren with a single value of ‘true’, the script instead points to a Boolean Value.

If the player engages the Left Control key, the script handling the siren checks for any bundled audio clips with ‘X_Siren.ogg’.

  • If the script finds a clip with any value between 0 and 9, the audio clip will be designated in a queue, much like a playlist. Depending on the value, from 0 to 9, the boolean will increase in value, cycling through the set clips of siren tones, then back to 0, or disengage the lights and siren when no more audio clips are found.

Boolean 0 = Do Nothing/Disengage Siren and Lights
Boolean 1 = Play 0_Siren.ogg (Wail)
Boolean 2 = Play 1_Siren.ogg (Yelp)
Boolean 3 = Play 2_siren.ogg (Priority)
ect, ect…
Boolean 9 = Play 8_siren.ogg (Idk, that’s way too many tones for just one siren amplifier…)

LCtrl is engaged by the player once more, cycle back to 0 and disengage the siren.

Something along the lines of this:


(Ignore the absurd trunk size…)

And for a little funsies, might as well show off how it might function:
Click here to see video.
In the video, the siren are as follows in order:

  • Wail, Yelp, Hilo, and Priority from a Federal Signal Unitrol 80K (1980’s model)

Goosebumps at your example! I’m planning to purchase some audio from https://www.boomlibrary.com during their November sale (thanks to @Dug for recommending them during Escalation’s development), so we’ll hopefully get our hands on some good replacements for emergency vehicle sirens. :slight_smile:

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.