Latest revision |
Your text |
Line 4: |
Line 4: |
|
| |
|
| === General Sets === | | === General Sets === |
| General Sets are sounds that are played throughout a map. They create a type of ambient environment, for example indoors, outdoors, cave, windy. The General SoundSet can be changed when the player moves between different areas of a map, for example, from an indoor area to an outdoor area. | | General Sets are sounds that are played throughout a map. They create a type of environment, for example indoors, outdoors, cave, windy. The sound set can be changed when the player moves between different areas of a map, for example, from an indoor area to an outdoor area. |
|
| |
|
| More than one [[.wav]] file can be mixed together in a sound set. | | More than one [[.wav]] file can be mixed together in a sound set. |
|
| |
|
| Examples:
| | Example: |
| <nowiki> | | <nowiki> |
| ;*********************
| |
| ;windy
| |
| ;*********************
| |
| generalSet windy
| |
| timeBetweenWaves 5 25
| |
| subWaves ambience/outdoor windy_a windy_b windy_c windy_d
| |
| loopedWave ambience/outdoor/windy1_lp
| |
| volRange 240 255
| |
|
| |
| ;********************* | | ;********************* |
| ;yavin_ext_rain | | ;yavin_ext_rain |
Line 27: |
Line 18: |
| loopedWave ambience/yavin/yavin_ext_rain | | loopedWave ambience/yavin/yavin_ext_rain |
| volRange 240 250 | | volRange 240 250 |
|
| |
| ;*********************
| |
| ;cairn_welding
| |
| ;*********************
| |
| generalSet cairn_welding
| |
| timeBetweenWaves 0 0
| |
| loopedWave ambience/cairn/cairn_weld
| |
| volRange 240 250
| |
| </nowiki>
| |
|
| |
| === Local Sets ===
| |
| Local Sets are played in a local area of a map. They are attached to an entity, often a [[Entity#target_speaker|target_speaker]].
| |
|
| |
| A "radius" property tells the game engine how far away the sounds should be heard from the entity's position.
| |
|
| |
| Examples:
| |
| <nowiki>
| |
| ;*********************
| |
| ;console5
| |
| ;*********************
| |
| localSet console5
| |
| timeBetweenWaves 0 0
| |
| loopedWave ambience/cp_05_lp
| |
| volRange 200 250
| |
| radius 200
| |
|
| |
| ;*********************
| |
| ;traffic
| |
| ;*********************
| |
| localSet traffic
| |
| timeBetweenWaves 10 50
| |
| subWaves movers/objects traffic_by_1 traffic_by_2 traffic_by_3 traffic_by_4 traffic_by_5 traffic_by_6 traffic_by_7
| |
| loopedWave null
| |
| volRange 0 0
| |
| radius 300
| |
|
| |
| ;*********************
| |
| ;barmusic
| |
| ;*********************
| |
| localSet barmusic
| |
| timeBetweenWaves 0 0
| |
| loopedWave ambience/narshaddaa/cantina_1
| |
| volRange 100 255
| |
| radius 400
| |
| </nowiki> | | </nowiki> |
|
| |
|
| === BModel sets ===
| |
| BModel sets define the sounds that play when a mover (eg. a door or elevator) moves. They define the .wav to play when the mover starts moving, while it is moving, and when it stops moving.
| |
|
| |
| Examples:
| |
| <nowiki>
| |
| ;*********************
| |
| ;impdoor2
| |
| ;*********************
| |
| bmodelSet impdoor2
| |
| subWaves movers/doors door2start door2move door2stop door2start door2stop
| |
|
| |
| ;*********************
| |
| ;piston
| |
| ;*********************
| |
| bmodelSet piston
| |
| subWaves movers/platforms piston_start piston_move_lp piston_stop piston_start piston_stop
| |
| </nowiki>
| |
|
| |
| == Modding ==
| |
| [[Modder]]s can add new soundsets by editing the sound.txt file.
| |
|
| |
| == See also ==
| |
| * [[.wav]] file
| |
|
| |
|
| [[Category: General Modding]] | | [[Category: General Modding]] |