Left 4 Dead 2

Left 4 Dead 2

Level Background Music Support
 Ez a téma ki van emelve, tehát valószínűleg fontos.
ChimiChamo  [Fejlesztő] 2024. ápr. 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.
Legutóbb szerkesztette: ChimiChamo; 2024. ápr. 14., 12:37
< >
11/1 megjegyzés mutatása
Can I have a shuffle option to have music play in all maps, but in random?
< >
11/1 megjegyzés mutatása
Laponként: 1530 50