ambient_generic

keyvalues

• targetname (string) - name

• message (string) - path/filename.wav of the WAV file

• health (integer) - volume (10 = loudest)

• preset (integer) - dynamic presets (0 - 27) - a list of presets that cause a variety of pitch and amplitude modulation effects to occur on the wav as it is being played

• volstart (integer) - start volume

• fadein (integer) - fade-in time (0 - 100)

• fadeout (integer) - fade-out time (0 - 100)

• pitch (integer) - pitch (> 100 = higher, 100 = default)

• pitchstart (integer) - starting pitch

• spinup (integer) - spin-up time (0 - 100)

• spindown (integer) - spin-down time (0 - 100)

• lfotype (integer) - LFO type (0 = off, 1 = sqr, 2 = tri, 3 = rnd)

• lforate (integer) - LFO rate (0 - 1000)

• lfomodpitch (integer) - LFO mod pitch (0 - 100)

• lfomodvol (integer) - LFO mod volume (0 - 100)

• cspinup (integer) - incremental spin-up count

flags

• play everywhere (1)

• small radius (2)

• medium radius (4) (default)

• large radius (8)

• start silent (16)

• not looped (32)

notes

• to play a wav through the streaming code (for very large, one-shot wavs) use * in front of the name. for instance, ambienc/*speak2.wav would stream speak2.wav. streaming sounds are loaded in segments from the disk, played, and flushed from memory

• to play any sentence from sentences.txt, replace the path/filename.wav with ! followed by the sentence name. for instance, !NA1 plays the sentence named NA1.

• all the keyvalues from volstart to cspinup are various pitch, volume, and low frequency pitch oscillation settings that are overridden by the dynamic preset setting. in general, don't use these. the incremental spin-up count may be used as follows: each time the ambient is triggered, its pitch will rise from 'start pitch' to 'pitch' by this many increments. so, a setting of '3' means that the pitch of the ambient will rise from 'start pitch' to 'pitch' in three presses (ie: three triggers)

related topics

• none

Overview of Miscellaneous

Entity Guide Overview