Portal 2
Community maps. For science.
Welcome to Aperture Laboratories, home of the Perpetual Testing Initiative. Easily create, share and play test chambers authored by and for the Portal 2 community. Do your part! Contribute to Science!
MastahFlash 4 Apr 27 @ 7:15pm
Replacing PeTI music with my own in Hammer
So I've made my map in PeTI and have went through the proper methods of exporting into Hammer and what not. What I want to do is replace the music that usually plays during the test chambers with my own song. I have a general idea as to how to add certain sounds in general through Hammer but I'm not certain WHICH entitie or whatever the default music is stored in. I had guessed that it is the ambient_marker @music? Thanks.
Showing 1-4 of 4 comments
< >
MastahFlash 4 Apr 27 @ 8:34pm 
Yep, turns out I was right! In order, to change the music, open your map file in Hammer, click Edit->Entity Report and scroll down until you see a bunch of 'ambient_generic'. Highlight the one that has '@music' in the second column, click Go To and make the changes there. Make sure to make your song an MP3 and not WAV unless your map is going to have a huge file size!

I'd recommend watching these videos.

NOTE: I've noticed that my song seems to have a reverb-y effect and I don't remember setting it like that; The original song has no reverb. I figured it does it by default (because I have a large chamber with empty spaces) but if anyone wants to clarify feel free to do so.
Last edited by MastahFlash; Apr 28 @ 1:50pm
iAndy 8 Apr 28 @ 1:39pm 
Good job on the music, but I think the entity isn't set to looped so it plays through once and then stops.
MastahFlash 4 Apr 28 @ 1:45pm 
Yeah, I noticed that also. Which is strange because I thought I had unchecked "Is NOT Looped".
tuleby (CZ) 8 Apr 30 @ 8:20am 
You can use logic_timer, set max. value = length music in seconds. When the time reaches the maximum, "StopSound". After a delay 0.01 ... again "PlaySound" and logic_timer set to 0. Works well music looping.
Last edited by tuleby (CZ); Apr 30 @ 2:15pm
Showing 1-4 of 4 comments
< >
Per page: 15 30 50