How to add sound?

Discussion in 'Mapping Questions & Discussion' started by massacre master, Mar 11, 2018.

  1. massacre master

    massacre master L2: Junior Member

    Messages:
    88
    Positive Ratings:
    21
    So I want to add custom sounds to the game, is this possible? Thanks for any advice!

    BTW I am using Microsoft so no GarageBand.
     
  2. massacre master

    massacre master L2: Junior Member

    Messages:
    88
    Positive Ratings:
    21
    sorry add sounds to my map.
     
  3. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    788
    Positive Ratings:
    233
    Well at the most basic level you want to use .wav file and the sample rate has to be 44,100. Hammer/TF2 can use .mp3 files, but you can't preview .mp3 files in Hammer while you can with .wav's.

    Where you get sounds from is kinda up to you. Whether you create them yourself or use other sources, please remember to follow copyright laws. If you find a sound effect someone else has used in their map, ask them for their source or if you can use it as well.

    All sound files need to be either in the the 'tf/sounds/' folder or the 'tf/custom/sounds/' folder. I suggest using the 'tf/custom/sounds/' and creating a folder in there for all files used by a map project, for example 'tf/custom/sounds/koth_madeupmapname/<your .wav files here>'

    Individual sound effects can be placed using the ambient_generic entity. Give it a name and send it the inputs you want. Usually going to be 'PlaySound' and/or 'StopSound'. These are best used to have specific sounds play in relation to specific events.

    Soundscapes are used to give an area background sound effects. Things like birdsong, flowing water, airplanes going overhead, ect. There are plenty of premade soundscapes in TF2 already, or if you wanted to create your own is possible but it's a little advanced, so give it a try if you want.

    Also isn't Garageband for creating music? I'm not a Mac user either but from what I know that's for creating/recording music. What you use to create music or sound files shouldn't matter because Hammer and TF2 only use .wav and .mp3
     
    Last edited: Mar 11, 2018
  4. massacre master

    massacre master L2: Junior Member

    Messages:
    88
    Positive Ratings:
    21
  5. massacre master

    massacre master L2: Junior Member

    Messages:
    88
    Positive Ratings:
    21
    I know this is probably but what is a .wav?
     
  6. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    788
    Positive Ratings:
    233
  7. fl00fCollie

    fl00fCollie L6: Sharp Member

    Messages:
    303
    Positive Ratings:
    221
    Both are audio formats. .wav is lossless compression - no quality is lost, but the filesize is larger. .mp3 is lossy - quite a bit of quality is lost but the filesize is a lot smaller.
     
  8. henke37

    aa henke37

    Messages:
    1,919
    Positive Ratings:
    449
    Actually, *.wav is a mere container format. It's actually possible to put mp3 encoded audio in a * .wav file.
     
    • Respectfully Disagree Respectfully Disagree x 3
  9. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    https://tf2maps.net/posts/436191/