Check out Half-Life Re-imagined competition results!
Check out Skewing textures in Hammer, our newest tutorial!
Say hello to torekk, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

13

Cobalt

30

Turquoise

8

Cyan

10

Royal

6

Teal

3

Onliners

8 mins

Spreen

9 mins

Dimbeak

15 mins

Penguinboy

16 mins

Solokiller

21 mins

Archie

21 mins

The Mad Carrot

21 mins

Suparsonik

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

Looping custom ambient_generic sounds Half-Life

By Veli-Pekka Lehtonen

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, which can make "cue points" for your wav and save in the required format. Here are other audio editors if you didn't like Cool Edit 2000.

    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.