HIT Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to add your music to Half-Life 2!  (Read 3420 times)

0 Members and 1 Guest are viewing this topic.

Frostbite

  • Today I've molested a...
  • Gonarch
  • ********
  • Offline Offline
  • Posts: 2466
  • Can't shake this feeling.
    • View Profile
    • Frostbite
How to add your music to Half-Life 2!
« on: November 02, 2006, 09:59:10 PM »

Ok first off goto "X:\<Path to Steam>\steamapps\<UserAccount>\Half-Life 2\hl2\sound\music" place all the music you wanna replace in there...(Must be either WAV or MP3!) Once you're done that go back to "hl2/" folder and open the scripts folder. Open up "level_sound_music.txt" (If you can't find it you can download it from here!.)
Scroll down to you see something like this
Code: [Select]
"song0" // -2db
{
"channel" "CHAN_STATIC"
"volume" "0.60000"
"pitch" "100"

"soundlevel" "0"

"wave" "*#music/HL2_song0.mp3"
}

Ok simply replace the "wave" command value to your song.
(For example I'll use She Has a Girlfriend Now.mp3

It should look something like this...
Code: [Select]
"song0" // -2db
{
"channel" "CHAN_STATIC"
"volume" "0.60000"
"pitch" "100"

"soundlevel" "0"

"wave" "*#music/She Has a Girlfriend Now.mp3"
}
and continue doing that for the others...and there ya go the music is replaced!
Logged

Tsunami

  • Gonarch
  • ********
  • Offline Offline
  • Posts: 2062
    • View Profile
Re: How to add your music to Half-Life 2!
« Reply #1 on: November 02, 2006, 10:37:38 PM »

(For example I'll use She Has a Girlfriend Now.mp3

Good choice of music ;D
Logged

Frostbite

  • Today I've molested a...
  • Gonarch
  • ********
  • Offline Offline
  • Posts: 2466
  • Can't shake this feeling.
    • View Profile
    • Frostbite
Re: How to add your music to Half-Life 2!
« Reply #2 on: November 02, 2006, 10:39:21 PM »

Good choice of music ;D
hehe thanks <3 Reel Big Fish
Logged