Startup Music: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Goldsource Engine: point to more versatile entity instead)
m (Update some formatting)
Line 1: Line 1:
Source will play '''<code>sound\ui\gamestartup*.mp3</code>''' when it finishes loading the main menu after the application is launched. 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.
Source will play '''{{path|sound\ui\gamestartup*|mp3}}''' when it finishes loading the main menu after the application is launched. 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.
All files must be encoded at 44.1 KHz.


{{tip|Startup music can be disabled by starting with <code>-nostartupsound</code>.}}
{{tip|Startup music can be disabled by starting with <code>-nostartupsound</code>.}}


== {{gldsrc|2}} Engine ==
== {{gldsrc|2}} Engine ==
GoldSrc will play '''<code>media\gamestartup.mp3</code>''' or Redbook CD track 29 when it finishes loading the main menu after the application is launched. The track will loop and continue to play until [[Trigger_cdaudio (GoldSource Engine)|another track is called]] or a mulitplayer server is loaded.
GoldSrc will play '''{{path|media\gamestartup|mp3}}''' or Redbook CD track 29 when it finishes loading the main menu after the application is launched. The track will loop and continue to play until [[Trigger_cdaudio (GoldSource Engine)|another track is called]] or a mulitplayer server is loaded.


[[Category:Modding]] [[Category:Tutorials]]
[[Category:Modding]] [[Category:Tutorials]]

Revision as of 13:20, 17 May 2023

Source will play 🖿sound\ui\gamestartup*.mp3 when it finishes loading the main menu after the application is launched. 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 44.1 KHz.

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

GoldSrc GoldSrc Engine

GoldSrc will play 🖿media\gamestartup.mp3 or Redbook CD track 29 when it finishes loading the main menu after the application is launched. The track will loop and continue to play until another track is called or a mulitplayer server is loaded.