Left 4 Dead 2
Level Background Music Support
 กระทู้นี้ถูกปักหมุด เพราะฉะนั้นอาจเป็นกระทู้สำคัญ
ChimiChamo  [ผู้พัฒนา] 14 เม.ย. 2024 @ 5: 18am
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; 14 เม.ย. 2024 @ 12: 37pm
< >
กำลังแสดง 1-1 จาก 1 ความเห็น
Can I have a shuffle option to have music play in all maps, but in random?
< >
กำลังแสดง 1-1 จาก 1 ความเห็น
ต่อหน้า: 1530 50