Page 1 of 1

sound functions ??? How does it work

PostPosted: Sun Apr 06, 2014 19:13
by mimilus
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-- mods/default/functions.lua

--
-- Sounds
--

function default.node_sound_defaults(table)
    table = table or {}
    table.footstep = table.footstep or
            {name="", gain=1.0}
    table.dug = table.dug or
            {name="default_dug_node", gain=0.25}
    table.place = table.place or
            {name="default_place_node_hard", gain=1.0}
    return table
end


{name="default_dug_node", gain=0.25} What does it mean ?
default_dug_node = default_dug_node.1.ogg and default_dug_node.2.ogg ???

I would like to add echo on default sound with new sounds in a mode

PostPosted: Sun Apr 06, 2014 21:25
by kaeza