Ambient generic: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
==Keyvalues== | ==Keyvalues== | ||
* {{kv targetname}} | * {{kv targetname}} | ||
* '''message''' | * '''message''' | ||
:<sound> Name of the GameSound entry for the sound to play. Also supports direct .wav filenames. | :<sound> Name of the GameSound entry for the sound to play. Also supports direct .wav filenames. | ||
* '''health''' | * '''health''' | ||
:<integer> Sound volume, expressed as a range from 0 to 10, where 10 is the loudest. | :<integer> Sound volume, expressed as a range from 0 to 10, where 10 is the loudest. | ||
* '''preset''' | * '''preset''' | ||
:<choices> Dynamic Preset | :<choices> Dynamic Preset | ||
: | :{| | ||
| '''Literal Value''' || '''Description''' | |||
|- | |||
| 0 || None | |||
|- | |||
| 1 || Huge Machine | |||
|- | |||
| 2 || Big Machine | |||
|- | |||
| 3 || Machine | |||
|- | |||
| 4 || Slow Fade in | |||
|- | |||
| 5 || Fade in | |||
|- | |||
| 6 || Quick Fade in | |||
|- | |||
| 7 || Slow Pulse | |||
|- | |||
| 8 || Pulse | |||
|- | |||
| 9 || Quick pulse | |||
|- | |||
| 10 || Slow Oscillator | |||
|- | |||
| 11 || Oscillator | |||
|- | |||
| 12 || Quick Oscillator | |||
|- | |||
| 13 || Grunge pitch | |||
|- | |||
| 14 || Very low pitch | |||
|- | |||
| 15 || Low pitch | |||
|- | |||
| 16 || High pitch | |||
|- | |||
| 17 || Very high pitch | |||
|- | |||
| 18 || Screaming pitch | |||
|- | |||
| 19 || Oscillate spinup/down | |||
|- | |||
| 20 || Pulse spinup/down | |||
|- | |||
| 21 || Random pitch | |||
|- | |||
| 22 || Random pitch fast | |||
|- | |||
| 23 || Incremental Spinup | |||
|- | |||
| 24 || Alien | |||
|- | |||
| 25 || Bizzare | |||
|- | |||
| 26 || Planet X | |||
|- | |||
| 27 || Haunted | |||
|} | |||
* '''volstart''' | * '''volstart''' | ||
: <integer> Start Volume | : <integer> Start Volume | ||
* '''fadein''' | * '''fadein''' | ||
: <integer> Fade in time (0-100) | : <integer> Fade in time (0-100) | ||
* '''fadeout''' | * '''fadeout''' | ||
: <integer> Fade out time (0-100) | : <integer> Fade out time (0-100) | ||
* '''pitch''' | * '''pitch''' | ||
: <integer> Sound pitch, expressed as a range from 1 to 255, where 100 is the sound's default pitch. | : <integer> Sound pitch, expressed as a range from 1 to 255, where 100 is the sound's default pitch. | ||
* '''pitchstart''' | * '''pitchstart''' | ||
: <integer> Start pitch, expressed as a range from 1 to 255, where 100 is the sound's default pitch. | : <integer> Start pitch, expressed as a range from 1 to 255, where 100 is the sound's default pitch. | ||
* '''spinup''' | * '''spinup''' | ||
: <integer> Spin up time (0-100) | : <integer> Spin up time (0-100) | ||
* '''spindown''' | * '''spindown''' | ||
: <integer> Spin down time (0-100) | : <integer> Spin down time (0-100) | ||
* '''lfotype''' | * '''lfotype''' | ||
: <integer> LFO type 0)off 1)sqr 2)tri 3)rnd | : <integer> LFO type 0)off 1)sqr 2)tri 3)rnd | ||
* '''lforate''' | * '''lforate''' | ||
: <integer> LFO rate (0-1000) | : <integer> LFO rate (0-1000) | ||
* '''lfomodpitch''' | * '''lfomodpitch''' | ||
: <integer> LFO mod pitch (0-100) | : <integer> LFO mod pitch (0-100) | ||
* '''lfomodvol''' | * '''lfomodvol''' | ||
: <integer> LFO mod vol (0-100) | : <integer> LFO mod vol (0-100) | ||
* '''cspinup''' | * '''cspinup''' | ||
: <integer> Incremental Spinup Count | : <integer> Incremental Spinup Count | ||
* '''radius''' | * '''radius''' | ||
: <string> Maximum distance at which this sound is audible. | : <string> Maximum distance at which this sound is audible. | ||
* '''SourceEntityName''' | * '''SourceEntityName''' | ||
: <target_destination> If an entity is specified, sound will come from this named entity instead of the location of ambient_generic. | : <target_destination> If an entity is specified, sound will come from this named entity instead of the location of ambient_generic. | ||
==Flags== | ==Flags== | ||
* Play everywhere | * Play everywhere | ||
* Start Silent | * Start Silent | ||
* Is NOT Looped | * Is NOT Looped | ||
==Inputs== | ==Inputs== | ||
Revision as of 19:02, 11 July 2005
Entity Description
Entity Name: ambient_generic
Universal ambient sound. Use it to play and control a single sound.
Keyvalues
- message
- <sound> Name of the GameSound entry for the sound to play. Also supports direct .wav filenames.
- health
- <integer> Sound volume, expressed as a range from 0 to 10, where 10 is the loudest.
- preset
- <choices> Dynamic Preset
Literal Value Description 0 None 1 Huge Machine 2 Big Machine 3 Machine 4 Slow Fade in 5 Fade in 6 Quick Fade in 7 Slow Pulse 8 Pulse 9 Quick pulse 10 Slow Oscillator 11 Oscillator 12 Quick Oscillator 13 Grunge pitch 14 Very low pitch 15 Low pitch 16 High pitch 17 Very high pitch 18 Screaming pitch 19 Oscillate spinup/down 20 Pulse spinup/down 21 Random pitch 22 Random pitch fast 23 Incremental Spinup 24 Alien 25 Bizzare 26 Planet X 27 Haunted
- volstart
- <integer> Start Volume
- fadein
- <integer> Fade in time (0-100)
- fadeout
- <integer> Fade out time (0-100)
- pitch
- <integer> Sound pitch, expressed as a range from 1 to 255, where 100 is the sound's default pitch.
- pitchstart
- <integer> Start pitch, expressed as a range from 1 to 255, where 100 is the sound's default 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 vol (0-100)
- cspinup
- <integer> Incremental Spinup Count
- radius
- <string> Maximum distance at which this sound is audible.
- SourceEntityName
- <target_destination> If an entity is specified, sound will come from this named entity instead of the location of ambient_generic.
Flags
- Play everywhere
- Start Silent
- Is NOT Looped
Inputs
- Pitch <integer>
- Sets the sound pitch, expressed as a range from 1 to 255, where 100 is the sound's default pitch.
- PlaySound
- Starts the sound.
- StopSound
- Stops the sound if it is playing.
- ToggleSound
- Toggles the sound between playing and stopping.
- Volume <integer>
- Sets the sound volume, expressed as a range from 0 to 10, where 10 is the loudest.
Outputs
See Also
- env_soundscape - used for changing DSP settings and ambient soundscapes.