Left 4 Dead 2
Level Background Music Support
 Αυτό το θέμα έχει επισημανθεί, οπότε πιθανώς είναι σημαντικό
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:37
< >
Εμφάνιση 1-1 από 1 σχόλια
Can I have a shuffle option to have music play in all maps, but in random?
< >
Εμφάνιση 1-1 από 1 σχόλια
Ανά σελίδα: 1530 50