Hi, recently I made an ambient music script based on SOG PF soundtrack. It's dynamic which means music is played based on combat\non-combat environment. The script itself is really simple but I've been using it quite a lot (originally ver.1 was made on vanilla 6 months ago) and it really helps to bring more immersion and fun into the game.
Capabilities:
If there is an enemy presence within 650 (changeable) meters and enemies know about the player action music kicks in (both rock and ambient, random pick), else calm music will play.
Additionally, if daytime > 19:00 rock compositions (both calm and action) will be excluded from the "playlist".
Suitable for SP as well as MP (slightly different install, tho).
Small performance impact.
Installation of the script in your own missions:
SP:
Create init.sqf in your mission folder
Paste https://pastebin.com/raw/4qvFQExk in init.sqf
Create a folder called Scripts in your mission folder
Create in your script folder DynamicAmbient.sqf (Scripts\DynamicAmbient.sqf)
Paste https://pastebin.com/raw/4KkvMGq7 in DynamicAmbient.sqf
Create in your script folder onLoadEH.sqf (Scripts\onLoadEH.sqf)
Paste https://pastebin.com/raw/50ktvUpD in onLoadEH.sqf
Music begins playing automatically after the mission start
MP:
Create initPlayerLocal.sqf in your mission folder
Paste https://pastebin.com/raw/DT0Btx4S in initPlayerLocal.sqf
Create a folder called Scripts in your mission folder
Create in your script folder DynamicAmbient.sqf (Scripts\DynamicAmbient.sqf)
Paste https://pastebin.com/raw/4KkvMGq7 in DynamicAmbient.sqf
Music will start playing automatically after the mission start (different players will hear different tracks tho, but it still will be combat/calm appropriate. This is the easiest way I found to implement the script in MP w/out huge performance consumption)
I have a really simple mission set up to demonstrate the script. Available here: https://steamcommunity.com/sharedfiles/filedetails/?id=2545469773
I also have a video of a walkthrough of this mission, you can briefly check how the script works there:
Feel free to use it in your missions, tinker, and modify as much as you want, all I'm asking is the credit to the original author (me 😉)