Difference between revisions of "Documentation/Engine/Units/sound noise data"

From SCS Modding Wiki
Jump to navigation Jump to search
(First draft.)
 
(Attributes)
 
Line 35: Line 35:
 
|volume
 
|volume
 
|float
 
|float
|
+
|1.0
 
|Playback volume relative to recorded level (0.0 is full attenuation, 1.0 is straight through, 2.0 is twice as loud)
 
|Playback volume relative to recorded level (0.0 is full attenuation, 1.0 is straight through, 2.0 is twice as loud)
 
|-
 
|-
 
|pitch_reference
 
|pitch_reference
 
|float
 
|float
|
+
|0.0
 
|The reference vehicle speed of the recording.
 
|The reference vehicle speed of the recording.
 
|-
 
|-
 
|min_rpm
 
|min_rpm
 
|float
 
|float
|
+
|0.0
 
|The lowest vehicle speed the clip will be played at.
 
|The lowest vehicle speed the clip will be played at.
 
|-
 
|-
 
|max_rpm
 
|max_rpm
 
|float
 
|float
|
+
|0.0
 
|The highest vehicle speed the clip will be played at.
 
|The highest vehicle speed the clip will be played at.
 
|}
 
|}

Latest revision as of 13:52, 20 June 2017

The sound_noise_data unit class is used to define speed-dependent sounds. This unit is typically used in an array, with min_speed and max_speed ranges overlapping between members to allow crossfading.

Uses

Attributes

Name Type Default Value Description
name string Path to the sound clip (e.g. name: "/sound/truck/noises/wind_inside_int_1.ogg")
looped bool false When true, the sound clip will be looped while active. When false, it will play once when triggered. Should always be true for noise sounds.
is_2d bool false
volume float 1.0 Playback volume relative to recorded level (0.0 is full attenuation, 1.0 is straight through, 2.0 is twice as loud)
pitch_reference float 0.0 The reference vehicle speed of the recording.
min_rpm float 0.0 The lowest vehicle speed the clip will be played at.
max_rpm float 0.0 The highest vehicle speed the clip will be played at.