Jump to content

Mission Sounds


Rocky

Recommended Posts

So a typical line of code for sound is like this

<Sound IgorId = "153" File = "a_woodpecker.wav" Volume = "1.00" MinPeriod = "6.000000" MaxPeriod = "8.000000" Height = "7.01" MaxPlays = "-1" DisableProp = "1" Grounded = "1" Pos = "-113.86;-76.20;35.43;">

The variables look like this

IgorID = ??
File =  wav file name, no path
Volume = ??
MinPeriod = ??
MaxPeriod = ??
Height = ??
MaxPlays = ??
DisableProp = ??
Grounded = ??
Pos =   "26.23;-174.15;9.21;" x,y,z

  • Like 1
Link to comment
Share on other sites

You will need to place new sounds through the Igor game editor, otherwise there may arise script ID conflicts when just manually adding them in mission files.

That’s why there are IgorIDs for each entry.

The File name is sufficient here, because sound files also need to be added to e.g. the effects.xml sound database.

Volume allows individual adjustment to how loud the sound is played.

Min an MaxPeriod set min and max pause between repeated playbacks (-1 sets infinite looping).

Height is the physical height (meters) of placement, e.g. to put a bird sound atop a tree, a flyover plane hundreds of meters up, etc.

MaxPlays limits amount of repetitions (usually not necessary or advisable).

DisableProp turns off 3d propagation.

Grounded (0/1) sets whether Height (see above) is in relation to the ground at location of placement or  an absolute value.

Pos defines the 3d coordinates of the sound origin.

All these are generated automatically and easily adjustable in Igor.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...