Left 4 Dead 2

Left 4 Dead 2

Level Background Music Support
 此主題已被置頂,因此它可能很重要
ChimiChamo  [開發人員] 2024 年 4 月 14 日 上午 5:18
Further Utility Functions
This is for utility functions that allow more control over when the music plays + more.

You can switch which tracks to play through the script with:
getroottable().ChCh_SwitchMusicTracks(calm,angry)

This isn't recommended for long music tracks due to some Source Engine ♥♥♥♥♥♥♥ that breaks the sound system.
I don't need to explain what "calm" and "angry" correspond to here if you've read the other discussion, if you're using a single track then you only need to change the "angry" section and can leave the "calm" as null. Do note that it will immediately switch to the "calm" track with no fade in.

You can also force one of the tracks to play indefinitely with:
getroottable().ChCh_ForceCalmTrack()
&
getroottable().ChCh_ForceAngryTrack()

This will force the corresponding track to play, ingoring all the checks to switch it to calm or battle versions dynamically.
To return the track back to dynamically changing just do:
getroottable().ChCh_ClearForcedTrack()

You can also change the amount of common infected needed to trigger the battle music to play with:
getroottable().ChCh_SetCommonsToTriggerAngry(num)
Replace "num" with the number of common infected that should trigger the music. The default is 9.

If you have more ideas or requests for utility functions, do write them here.
最後修改者:ChimiChamo; 2024 年 4 月 14 日 下午 12:37
< >
目前顯示第 1-1 則留言,共 1
TrueKringe 6 月 6 日 上午 4:24 
Can I have a shuffle option to have music play in all maps, but in random?
< >
目前顯示第 1-1 則留言,共 1
每頁顯示: 1530 50