ambient_generic (Half-Life)
Last edited 16 years ago2008-06-11 08:13:49 UTC
- Wiki
- View Page
-
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 converted from a previous version of TWHL and may need to be reviewed
- The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
- Some information may be out of date
- After the article is re-formatted and updated, remove this notice and the Review Required category.
- Some older articles are no longer useful, or they duplicate information from other pages. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
Point EntityThe ambient_generic allows you to play a specific sound.
Attributes
- Name (targetname) - Property used to identify entities.
- WAV name (message) - This is the path/filename of the .wav file (note the forward-slash).
- Volume (health) - Volume of the sound. Range: 0-10.
- Dynamic Presets (preset) - Various effects that can be applied to the sound:
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
- Start volume (volstart)
- Fade-in time (fadein) - Time taken for the sound to fade in. Range: 0-100
- Fade-out time (fadeout) - Time taken for the sound to fade out, if not looped. Range: 0-100
- Pitch (pitch) - 100 is normal, > 100 higher, < 100 lower.
- Start pitch (pitchstart)
- Spin-up time (spinup) - Range: 0-100
- spin-down time (spindown) - Range: 0-100
- LFO type (lfotype) - Values: 0=off,1=sqr,2=tri,3=rnd
- LFO rate (lforate) - Range: 0-1000
- LFO mod pitch (lfomodpitch) - Range: 0-100
- LFO modvol (lfomodvol) - Range: 0-100
- Incremental spin-up count (cspinup)
Flags
- Play Everywhere (1) - Sound will be heard in the entire level.
- Small Radius (2) - Sound range is about 800 units at max volume.
- Medium Radius (4) - Sound range is about 1250 units at max volume.
- Large Radius (8) - Sound range is about 2000 units at max volume.
- Start Silent (16) - Checking this means the entity must be triggered to work.
- Not Toggled (32) - Older FGDs show this as Not Looped. Specifies that the sound is to be played only once. With this flag checked, each time the entity is triggered it will play once. If it is not checked, triggering it will cause the sound to alternate between on and off.
Notes
- From WorldCraft 2.1 Help: "To play a wav through the streaming code (for very large, one-shot wavs) use * in front of the name. For instance, ambience/*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)."
Comments
You must log in to post a comment.
You can login or register a new account.