VERC: Looping custom ambient_generic sounds Half-Life Last edited 20 years ago2004-01-18 12:16:00 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.

This article was recovered from an archive and needs to be reviewed

  1. The formatting may be incorrect as it was automatically converted to WikiCode from HTML, it needs to be revised and reformatted
  2. Some information may be out of date as it was written before Half-Life was available on Steam
  3. After the article is re-formatted and updated for Steam HL, remove this notice
  4. Please do not remove the archive notice from the bottom of the article.
  5. Some archive articles are no longer useful, or they duplicate information from other tutorials and entity guides. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.

The Basics

The hard part of this is finding a good sound file, as the beginning and the end of the file have to transition smoothly. Once you have, you need to make it conform with the following parameters to make it loop in Half-Life:

Sound files must be in "wav" format.
Sound files must be 22 040 Hz, 8bit and mono
Waves need two "cue points" - at the start and end - in order to loop.
Sounds should be in folder #: sierra half-life valve sound. To keep things tidy, I prefer using the ambience folder for ambient sounds.

To do all this, you need a sound editing program like Cool Edit 2000 (Link: 3001-2170-2408470.html?legacy=cnet) , which can make "cue points" for your wav and save in the required format. Here (Link: 3150-2170-0.html?tag=stbc.gp) are other audio editors if you didn't like Cool Edit 2000 (Link: 3001-2170-2408470.html?legacy=cnet) .

Example - using Cool Edit 2000

Open your wav file in Cool Edit.
Click "cue list" from the view -> scrolldown menu.
Click once at the start of your wave and click add in the cue listing menu.
click once at the end of your wave and click add in the cue listing menu.
Click done and save your sound to #: sierra half-life valve sound ambience folder.

Then, in your map editor, create an ambient_generic using your new sound. By default it will now loop, playing it over and over and over... which is why the hard part is choosing a good sound.
This article was originally published on the Valve Editing Resource Collective (VERC).
TWHL only archives articles from defunct websites. For more information on TWHL's archiving efforts, please visit the TWHL Archiving Project page.

Comments

You must log in to post a comment. You can login or register a new account.