Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Sounds = {
- SoundItems = {
- default = {
- gain=0.17,
- gainmod = 0.05,
- pitchmod = 0.021,
- pitch = 1,
- rolloff=1.5,
- in3d = false,
- },
- },
- }
- local files = VFS.DirList("sounds/voice/")
- local t = Sounds.SoundItems
- for i=1,#files do
- local fileName = files[i]
- t[fileName] = {
- file = fileName;
- in3d = false,
- }
- end
- local wpncrush = VFS.DirList("sounds/Weapons/Crush/")
- local wpnenergy = VFS.DirList("sounds/Weapons/Energy/")
- local wpnexplosion = VFS.DirList("sounds/Weapons/Explosion/")
- local wpnflames = VFS.DirList("sounds/Weapons/Flames/")
- local wpngrenade = VFS.DirList("sounds/Weapons/Grenade/")
- local wpnmine = VFS.DirList("sounds/Weapons/Mine/")
- local wpnmisc = VFS.DirList("sounds/Weapons/Misc/")
- local wpnrockets = VFS.DirList("sounds/Weapons/Rockets/")
- local wpnwater = VFS.DirList("sounds/Weapons/Water/")
- local wpncannon = VFS.DirList("sounds/Weapons/Cannon/")
- local mg = VFS.DirList("sounds/Weapons/MG/")
- local mg1 = VFS.DirList("sounds/MG/")
- local t = Sounds.SoundItems
- for i=1,#wpncrush do
- local fileName = wpncrush[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnenergy do
- local fileName = wpnenergy[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnexplosion do
- local fileName = wpnexplosion[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnflames do
- local fileName = wpnflames[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpngrenade do
- local fileName = wpngrenade[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnmine do
- local fileName = wpnmine[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnmisc do
- local fileName = wpnmisc[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnrockets do
- local fileName = wpnrockets[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpnwater do
- local fileName = wpnwater[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#wpncannon do
- local fileName = wpncannon[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 16,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = true,
- looptime = 0,
- }
- end
- for i=1,#mg do
- local fileName = mg[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 8,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = false,
- looptime = 0,
- }
- end
- for i=1,#mg1 do
- local fileName = mg1[i]
- t[fileName] = {
- file = fileName;
- gain = 1,
- gainmod = 0.2,
- pitch = 0.8,
- pitchmod = 0.1,
- dopplerscale = 0.1,
- priority = 0,
- maxconcurrent = 8,
- maxdist = 2000,
- rolloff = 0.4,
- in3d = false,
- looptime = 0,
- }
- end
- return Sounds
Add Comment
Please, Sign In to add comment