Startup Music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Destubification)
(redone, plus how to disable)
Line 1: Line 1:
As of the first engine update for [[DOD:S]], this has been possible.
Source will play '''<code>sound\ui\gamestartup*.mp3</code>''' when it finishes loading the main menu. The asterisk matches anything at all (including nothing), so feel free to give your files descriptive names. If more than one file matches, a choice will be made at random.


Place an [[Wikipedia:MP3|MP3]] file named <code>gamestartup1.mp3</code> in the <code>sound/ui</code> folder for your mod.
All files must be encoded at 44kHz.


If you want more than one startup MP3s, use the name <code>gamestartup2.mp3</code> and so on.
{{tip|Startup music can be disabled by starting with <code>-nostartupsound</code>.}}


If more than one MP3 exists as <code>sound/ui/gamestartup'''*'''.mp3</code>, one will be picked at random.
[[Category:Modding]] [[Category:Tutorials]]
{{warning|An MP3 will not play correctly if it does not have a 44100 [[Wikipedia:Hertz|Hz]] playback rate.}}
[[Category:Modding]]
[[Category:Tutorials]]

Revision as of 06:10, 23 July 2010

Source will play sound\ui\gamestartup*.mp3 when it finishes loading the main menu. The asterisk matches anything at all (including nothing), so feel free to give your files descriptive names. If more than one file matches, a choice will be made at random.

All files must be encoded at 44kHz.

Tip.pngTip:Startup music can be disabled by starting with -nostartupsound.