ambient_generic Last edited 10 months ago2023-12-25 13:16:40 UTC

ambient_generic - Point Entity

The ambient_generic entity allows you to play a specific sound. It is a flexible entity that can be used for both looping ambient sounds and one-off sound effects triggered on cue.

Attributes

Flags

Notes

From the VERC Archive

LFO - Low Frequency Oscillator

LFO is a sound synthesis acronym that means "Low frequency oscillator". MOD means modulation. Rate is the frequency (how often the effect repeats itself).

So lfomodpitch means that the low frequency oscillator is affecting the pitch of the sound. This effect is commonly called "vibrato". You're probably familiar with the difference between a singer singing with and without vibrato... That's what you would do if you set lfomodpitch. Higher numbers mean more change in the pitch -- singers use very little, whereas a police siren uses a lot.

lfomodvol means that the LFO is affecting the volume of the sound. This is sometimes referred to as "tremolo" although in some musical contexts tremolo and vibrato are synonymous. This is more of a "pulse" through the sound than a wavering of pitch as above. Hopefully you get the idea.

lfotype is the shape of the waveform that is used. I assume that sqr is a square wave, tri is a triangle (or maybe sawtooth) and rnd is random. All of these have different characteristics as to how they affect the sound. sqr will jump back and forth between low and high, tri has sharp transitions, and rnd has smooth transitions. It's difficult to explain in text, but easy to hear, just experiment with it.

Radius sizes

Roughly speaking, the maximum distance that a sound could be heard from at a particular radius is (provided it is playing at maximum volume)
  • Small is 800
  • Medium is 1250
  • Large is 2000
Most sounds aren't being played at maximum volume, and they aren't recorded in the full dynamic range of the sample either, so the actual distance for hearing them is lower. There is no way to alter the attenuation values without writing code. You will be able to set the radius more precisely by writing entity code, but its not an exact science because of the variations in sound / sample volumes.

Preset values

The following are the values used by the presets (source):
# pitch pitchstart spinup spindown volume volstart fadein fadeout lfotype lforate lfomodpitch lfomodvol cspinup
1 255 75 95 95 10 1 50 95
2 255 85 70 88 10 1 20 88
3 255 100 50 75 10 1 10 75
4 100 100 10 1 90 90
5 100 100 10 1 80 80
6 100 100 10 1 50 70
7 100 100 5 1 40 50 1 50 10
8 100 100 5 1 40 50 1 150 10
9 100 100 5 1 40 50 1 750 10
10 128 100 50 75 10 1 30 40 2 8 20
11 128 100 50 75 10 1 30 40 2 25 20
12 128 100 50 75 10 1 30 40 2 70 20
13 50 50 10 1 20 50
14 70 70 10 1 20 50
15 90 90 10 1 20 50
16 120 120 10 1 20 50
17 180 180 10 1 20 50
18 255 255 10 1 20 50
19 200 75 90 90 10 1 50 90 2 100 20
20 255 75 97 90 10 1 50 90 1 40 50
21 100 100 10 1 30 50 3 15 20
22 160 160 10 1 50 50 3 500 25
23 255 75 88 10 1 40 5
24 200 20 95 70 10 1 70 70 3 20 50
25 180 100 50 60 10 1 40 60 2 90 100 100
26 60 60 10 1 40 70 3 80 20 50
27 128 90 10 10 10 1 20 40 1 5 10 20

Example maps

Some example maps that show the ambient_generic in action:
Loading embedded content: Vault Item #5708
Loading embedded content: Vault Item #5723

Comments

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