Guest User

sounds.lua

a guest
Apr 6th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.30 KB | None | 0 0
  1.  
  2. local Sounds = {
  3.    SoundItems = {
  4.      
  5.      default = {
  6.       gain=0.17,
  7.       gainmod = 0.05,
  8.       pitchmod = 0.021,
  9.       pitch = 1,
  10.       rolloff=1.5,
  11.       in3d = false,
  12.     },
  13.    
  14.    },
  15. }
  16.  
  17. local files = VFS.DirList("sounds/voice/")
  18. local t = Sounds.SoundItems
  19. for i=1,#files do
  20.    local fileName = files[i]
  21.    t[fileName] = {
  22.       file     = fileName;
  23.        in3d = false,
  24.    }
  25.     end
  26.    
  27. local wpncrush = VFS.DirList("sounds/Weapons/Crush/")
  28. local wpnenergy = VFS.DirList("sounds/Weapons/Energy/")
  29. local wpnexplosion = VFS.DirList("sounds/Weapons/Explosion/")
  30. local wpnflames = VFS.DirList("sounds/Weapons/Flames/")
  31. local wpngrenade = VFS.DirList("sounds/Weapons/Grenade/")
  32. local wpnmine = VFS.DirList("sounds/Weapons/Mine/")
  33. local wpnmisc = VFS.DirList("sounds/Weapons/Misc/")
  34. local wpnrockets = VFS.DirList("sounds/Weapons/Rockets/")
  35. local wpnwater = VFS.DirList("sounds/Weapons/Water/")
  36. local wpncannon = VFS.DirList("sounds/Weapons/Cannon/")
  37. local mg = VFS.DirList("sounds/Weapons/MG/")
  38. local mg1 = VFS.DirList("sounds/MG/")
  39. local t = Sounds.SoundItems
  40. for i=1,#wpncrush do
  41.    local fileName = wpncrush[i]
  42.    t[fileName] = {
  43.       file     = fileName;
  44.       gain = 1,
  45.       gainmod = 0.2,
  46.       pitch = 0.8,
  47.       pitchmod = 0.1,
  48.       dopplerscale = 0.1,
  49.       priority = 0,
  50.       maxconcurrent = 16,
  51.       maxdist = 2000,
  52.       rolloff = 0.4,
  53.       in3d = true,
  54.       looptime = 0,
  55.    }
  56. end
  57. for i=1,#wpnenergy do
  58.    local fileName = wpnenergy[i]
  59.    t[fileName] = {
  60.       file     = fileName;
  61.       gain = 1,
  62.       gainmod = 0.2,
  63.       pitch = 0.8,
  64.       pitchmod = 0.1,
  65.       dopplerscale = 0.1,
  66.       priority = 0,
  67.       maxconcurrent = 16,
  68.       maxdist = 2000,
  69.       rolloff = 0.4,
  70.       in3d = true,
  71.       looptime = 0,
  72.    }
  73. end
  74. for i=1,#wpnexplosion do
  75.    local fileName = wpnexplosion[i]
  76.    t[fileName] = {
  77.       file     = fileName;
  78.       gain = 1,
  79.       gainmod = 0.2,
  80.       pitch = 0.8,
  81.       pitchmod = 0.1,
  82.       dopplerscale = 0.1,
  83.       priority = 0,
  84.       maxconcurrent = 16,
  85.       maxdist = 2000,
  86.       rolloff = 0.4,
  87.       in3d = true,
  88.       looptime = 0,
  89.    }
  90. end
  91. for i=1,#wpnflames do
  92.    local fileName = wpnflames[i]
  93.    t[fileName] = {
  94.       file     = fileName;
  95.       gain = 1,
  96.       gainmod = 0.2,
  97.       pitch = 0.8,
  98.       pitchmod = 0.1,
  99.       dopplerscale = 0.1,
  100.       priority = 0,
  101.       maxconcurrent = 16,
  102.       maxdist = 2000,
  103.       rolloff = 0.4,
  104.       in3d = true,
  105.       looptime = 0,
  106.    }
  107. end
  108. for i=1,#wpngrenade do
  109.    local fileName = wpngrenade[i]
  110.    t[fileName] = {
  111.       file     = fileName;
  112.       gain = 1,
  113.       gainmod = 0.2,
  114.       pitch = 0.8,
  115.       pitchmod = 0.1,
  116.       dopplerscale = 0.1,
  117.       priority = 0,
  118.       maxconcurrent = 16,
  119.       maxdist = 2000,
  120.       rolloff = 0.4,
  121.       in3d = true,
  122.       looptime = 0,
  123.    }
  124. end
  125. for i=1,#wpnmine do
  126.    local fileName = wpnmine[i]
  127.    t[fileName] = {
  128.       file     = fileName;
  129.       gain = 1,
  130.       gainmod = 0.2,
  131.       pitch = 0.8,
  132.       pitchmod = 0.1,
  133.       dopplerscale = 0.1,
  134.       priority = 0,
  135.       maxconcurrent = 16,
  136.       maxdist = 2000,
  137.       rolloff = 0.4,
  138.       in3d = true,
  139.       looptime = 0,
  140.    }
  141. end
  142. for i=1,#wpnmisc do
  143.    local fileName = wpnmisc[i]
  144.    t[fileName] = {
  145.       file     = fileName;
  146.       gain = 1,
  147.       gainmod = 0.2,
  148.       pitch = 0.8,
  149.       pitchmod = 0.1,
  150.       dopplerscale = 0.1,
  151.       priority = 0,
  152.       maxconcurrent = 16,
  153.       maxdist = 2000,
  154.       rolloff = 0.4,
  155.       in3d = true,
  156.       looptime = 0,
  157.    }
  158. end
  159. for i=1,#wpnrockets do
  160.    local fileName = wpnrockets[i]
  161.    t[fileName] = {
  162.       file     = fileName;
  163.       gain = 1,
  164.       gainmod = 0.2,
  165.       pitch = 0.8,
  166.       pitchmod = 0.1,
  167.       dopplerscale = 0.1,
  168.       priority = 0,
  169.       maxconcurrent = 16,
  170.       maxdist = 2000,
  171.       rolloff = 0.4,
  172.       in3d = true,
  173.       looptime = 0,
  174.    }
  175. end
  176. for i=1,#wpnwater do
  177.    local fileName = wpnwater[i]
  178.    t[fileName] = {
  179.       file     = fileName;
  180.       gain = 1,
  181.       gainmod = 0.2,
  182.       pitch = 0.8,
  183.       pitchmod = 0.1,
  184.       dopplerscale = 0.1,
  185.       priority = 0,
  186.       maxconcurrent = 16,
  187.       maxdist = 2000,
  188.       rolloff = 0.4,
  189.       in3d = true,
  190.       looptime = 0,
  191.    }
  192. end
  193. for i=1,#wpncannon do
  194.    local fileName = wpncannon[i]
  195.    t[fileName] = {
  196.       file     = fileName;
  197.       gain = 1,
  198.       gainmod = 0.2,
  199.       pitch = 0.8,
  200.       pitchmod = 0.1,
  201.       dopplerscale = 0.1,
  202.       priority = 0,
  203.       maxconcurrent = 16,
  204.       maxdist = 2000,
  205.       rolloff = 0.4,
  206.       in3d = true,
  207.       looptime = 0,
  208.    }
  209. end
  210. for i=1,#mg do
  211.    local fileName = mg[i]
  212.    t[fileName] = {
  213.       file     = fileName;
  214.       gain = 1,
  215.       gainmod = 0.2,
  216.       pitch = 0.8,
  217.       pitchmod = 0.1,
  218.       dopplerscale = 0.1,
  219.       priority = 0,
  220.       maxconcurrent = 8,
  221.       maxdist = 2000,
  222.       rolloff = 0.4,
  223.       in3d = false,
  224.       looptime = 0,
  225.    }
  226. end  
  227. for i=1,#mg1 do
  228.    local fileName = mg1[i]
  229.    t[fileName] = {
  230.       file     = fileName;
  231.       gain = 1,
  232.       gainmod = 0.2,
  233.       pitch = 0.8,
  234.       pitchmod = 0.1,
  235.       dopplerscale = 0.1,
  236.       priority = 0,
  237.       maxconcurrent = 8,
  238.       maxdist = 2000,
  239.       rolloff = 0.4,
  240.       in3d = false,
  241.       looptime = 0,
  242.    }  
  243. end
  244.  
  245.  
  246. return Sounds
Add Comment
Please, Sign In to add comment