Sounds.lua: Difference between revisions

From Spring
Jump to navigationJump to search
No edit summary
added defaults(not completed)
Line 1: Line 1:
Gamedata/Sounds.lua
Gamedata/Sounds.lua


==Default==
*missing file not crash the engine (=?)
*not mandatory for the game(verified)
*not defaut file loaded by engine (=?)
*missing values have defaut (=?)


'''WARNING : file not verified ! (contain some random errors)'''
'''WARNING : file not verified ! (contain some random errors)'''

Revision as of 12:39, 30 April 2011

Gamedata/Sounds.lua


Default

  • missing file not crash the engine (=?)
  • not mandatory for the game(verified)
  • not defaut file loaded by engine (=?)
  • missing values have defaut (=?)

WARNING : file not verified ! (contain some random errors)



--[[DefaultsForSounds = { -- this are default settings

file = "ThisEntryMustBePresent.wav",

gain = 1.0,

pitch = 1.0,

priority = 0,

maxconcurrent = 16, --- some reasonable limits

--maxdist = FLT_MAX, --- no cutoff at all

},

--- EXAMPLE ONLY!

]]


local Sounds = {

SoundItems = {

--- RESERVED FOR SPRING, DON'T REMOVE

IncomingChat = {

file = "sounds/killyu1.wav",

rolloff = 0.1, 

maxdist = 10000,

priority = 100,

maxconcurrent = 1,

},


MultiSelect = {

file = "sounds/cestpour.wav",

rolloff = 0.1, --- how fast it becomes more quiet in the distance (0 means aleays the same loudness regardless of dist)

maxdist = 10000,--- cutoff distance

priority = 50,--- sounds with lwoer priority are more likely to get cut off > 0 will never be cut of (priorities can be negative)

maxconcurrent = 1,--- this sound will not be played more than at a time

dopplerscale = 0,--- how unit / camera speed affects the sound, to exagerate it, use values > 1, 0 completely disables the effect

in3d = "false",--- non-3d sounds do always came out of the front-speakers (or the center one)

preload = false,

gain = 1.1,--- loudness, > 1 is louder, < 1 is more quiet, you will most likely not set it to 0

pitch = 0.3,--- > 1 -> high pitched, < 1 lowered

looptime = 0,--- you can loop it for X miliseconds

},


MapPoint = {

file = "sounds/imnotgay.wav",

rolloff = 0.1,

maxdist = 10000,

priority = 100,

maxconcurrent = 1,

},

--- END RESERVED

--manu = {

repair = {

},

arrived = {

},

select = {

},

deactivate = {

},

activate = {

},

ok= {

},

cant= {

},

working= {

},

build= {

},

underattack = {

file = "sounds/killyu1.wav",

rolloff = 0.1, 

maxdist = 10000,

priority = 100, --- higher numbers = less chance of cutoff

maxconcurrent = 3, ---how many maximum can we hear?

},

--},

--WEAPONS


},

}


return Sounds