Call of Duty 5: Sounds with Line Emitter: Difference between revisions
m (Protected "Call of Duty 5: Sounds with Line Emitter" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
Arachnofang (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Adding sound using a line emitter == | |||
Line emitters play a continuous looping sound. Good for rivers, rain, waterfalls etc | |||
== Adding the script structs == | |||
1. Right click in the 2d screen, scroll down and select script struct. | |||
2. Place the first script struct where you want the line to start. | |||
3. Right click in the 2d screen again and select script struct. | |||
4. Now place the second one where you want the line to end. | |||
5. Now deselect everything by pressing Esc. | |||
Now you need to join them together. | |||
1. High light the first script struct. | |||
2. Now high light the second script struct. | |||
3. With both of them high lighted press 'w'. | |||
You should now see a red line appear with little arrows on it linking the two script structs together, that | |||
is your line emitter now created. | |||
4. Press esc to deselect everything and save your map. | |||
Now you need to decide what sound effect you want to use, for this example we are going to use 'brook_00.wav' | |||
we also need to add a label to point to the sound effect, so if you look at 'targetname' & 'script_sound' you | |||
will see that I have used the label 'brookrun' its better to use a label associated with the SFX sample you | |||
are going to use, because its a small stream I have labeled it 'brookrun'. | |||
The next thing to do is to add the key/values to the first script struct which will play a specified sound | |||
effect from your 'soundalias' file High light the first script struct, the one with the red arrows pointing away from it and press the 'n' key to bring up the entity window. | |||
These are the four you need to add | |||
<pre> | |||
KEY VALUE | |||
script_label line_emitter | |||
targetname brookrun | |||
script_sound brookrun | |||
script_looping 1 | |||
</pre> | |||
These four are generated automatically | |||
<pre> | |||
classname script_struct | |||
target auto113 | |||
angles 0 2.50448e-006 0 | |||
struct -1651 1204.7 24 | |||
</pre> | |||
With the second script_struct these four are generated automatically so there is no need to do anything to this one. | |||
<pre> | |||
KEY VALUE | |||
angles 0 2.50448e-006 0 | |||
classname script_struct | |||
targetname auto113 | |||
struct -1651 1910 24 | |||
</pre> |
Revision as of 13:42, 4 July 2010
Adding sound using a line emitter
Line emitters play a continuous looping sound. Good for rivers, rain, waterfalls etc
Adding the script structs
1. Right click in the 2d screen, scroll down and select script struct.
2. Place the first script struct where you want the line to start.
3. Right click in the 2d screen again and select script struct.
4. Now place the second one where you want the line to end.
5. Now deselect everything by pressing Esc.
Now you need to join them together.
1. High light the first script struct.
2. Now high light the second script struct.
3. With both of them high lighted press 'w'.
You should now see a red line appear with little arrows on it linking the two script structs together, that is your line emitter now created.
4. Press esc to deselect everything and save your map.
Now you need to decide what sound effect you want to use, for this example we are going to use 'brook_00.wav' we also need to add a label to point to the sound effect, so if you look at 'targetname' & 'script_sound' you will see that I have used the label 'brookrun' its better to use a label associated with the SFX sample you are going to use, because its a small stream I have labeled it 'brookrun'.
The next thing to do is to add the key/values to the first script struct which will play a specified sound effect from your 'soundalias' file High light the first script struct, the one with the red arrows pointing away from it and press the 'n' key to bring up the entity window.
These are the four you need to add
KEY VALUE script_label line_emitter targetname brookrun script_sound brookrun script_looping 1
These four are generated automatically
classname script_struct target auto113 angles 0 2.50448e-006 0 struct -1651 1204.7 24
With the second script_struct these four are generated automatically so there is no need to do anything to this one.
KEY VALUE angles 0 2.50448e-006 0 classname script_struct targetname auto113 struct -1651 1910 24