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 2025년 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