Green Rollover Red Rollover Arrow Rollover Focused Userbar Register Button Rollover Red Button Rollover
Remember Me?

Making use of and improving sound effects

Tutorial for Empire at War EAW, Forces of Corruption FOC

Avatar of Drieick

Drieick

Category: Coding
Level: Beginner
Created: Monday February 25, 2008 - 3:00
Updated: Monday February 25, 2008 - 4:20
Views: 110
Summary: A list of SFX tags and what they do

Rating

Staff says

2.0

Members say

-

Average

2.0/5.0

1 vote

All tags:

Use_Preset
Localize
Samples
Min_Volume
Max_Volume
Probability
Volume_Saturation_Distance
Loop_Fade_In_Seconds
Loop_Fade_Out_Seconds
Min_Pitch
Max_Pitch
Overlap_Test

(If I missed any, please let me know - through the comments tung)

What they do:

Use_Preset - Perhaps where it'll be used - Preset_GUI
Localize - Not sure
Samples - The .wav files to be used (Plays them at random)
Min_Volume - The lowest possible volume (Must be higher than zero)
Max_Volume - The highest possible volume (Must be higher than Min_Volume)
Probability - What are the chances of this file playing?
Volume_Saturation_Distance - How long the sound may travel; how far you have to be away from the source to not hear it
Loop_Fade_In_Seconds - Not sure
Loop_Fade_Out_Seconds - Not sure
Min_Pitch - The lowest pitch?
Max_Pitch - The highest pitch?
Overlap_Test - Not sure

Examples:

<Use_Preset> Name of preset </Use_Preset>
<Localize> Yes or No </Localize>
<Samples> List of .wav files (No limit - not sure if you use two or more of the same file) </Samples>
<Min_Volume> Any number above zero </Min_Volume>
<Max_Volume> Any number > Min_Volume </Max_Volume>
<Probability> Chance of playing, chance of not playing </Probability> (Must add up to 100 [Not sure])
<Volume_Saturation_Distance> Any positve number or zero </Volume_Saturation_Distance> (haven't tried zero yet)
<Loop_Fade_In_Seconds> Any positve number or zero </Loop_Fade_In_Seconds>
<Loop_Fade_Out_Seconds> Any positve number or zero </Loop_Fade_Out_Seconds>
<Min_Pitch> Any number above zero </Min_Pitch>
<Max_Pitch> Any number > Min_Pitch </Max_Pitch>
<Overlap_Test> ??? </Overlap_Test> (really don't know...)

Drieick's homebrewed example:

<SFXEvent Name="Unit_Turbo_Fire">
    <Use_Preset>Preset_GUNS</Use_Preset>
    <Samples>GUN_Turbo_1.wav</Samples>
    <Localize>No</Localize>
    <Min_Volume>50</Min_Volume>
    <Max_Volume>50</Max_Volume>
    <Probability>50, 50</Probability>
    <Volume_Saturation_Distance> 700.0 </Volume_Saturation_Distance>
</SFXEvent>

Try it in game and modify it to your liking. I think it sounds better. tung

Credits

DrieickXML Coder and Writter

Add comment

Please enter your message below. Max 10000 characters.