Guest User

Hmm

a guest
Feb 4th, 2012
127
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local ClientResources = 0;
  2. local function ProcessFolder (Location )
  3. for k, v in pairs(file.Find(Location .. '*')) do
  4. if file.IsDir(Location .. v) then
  5. ProcessFolder(Location .. v .. '/')
  6. else
  7. local OurLocation = string.gsub(Location .. v, '.. Location', '')
  8.  
  9. if !string.find(Location, '.db') then
  10. ClientResources = ClientResources + 1;
  11. resource.AddFile("garrysmod/materials/bluredges.vmt");
  12. resource.AddFile("garrysmod/materials/bluredges.vtf");
  13. resource.AddFile("garrysmod/materials/dummy_texture.vmt");
  14. resource.AddFile("garrysmod/materials/egon_refract.vtf");
  15. resource.AddFile("garrysmod/materials/egon_middlebeam.vmt");
  16. resource.AddFile("garrysmod/materials/egon_ringbeam.vmt");
  17. resource.AddFile("garrysmod/materials/info.txt");
  18. resource.AddFile("garrysmod/materials/laser.vtf");
  19. resource.AddFile("garrysmod/materials/refract_ring.vtf");
  20. resource.AddFile("garrysmod/materials/refract_ring.vmt");
  21. resource.AddFile("garrysmod/materials/tripmine_laser.vmt");
  22. resource.AddFile("garrysmod/materials/wirelogo.vmt");
  23. resource.AddFile("garrysmod/materials/wirelogo.vtf");
  24. resource.AddFile("garrysmod/models/betam01_soldier.mdl");
  25. resource.AddFile("garrysmod/models/biopolice.mdl");
  26. resource.AddFile("garrysmod/models/boxopencigshib.mdl");
  27. resource.AddFile("garrysmod/models/boxopenshib.mdl");
  28. resource.AddFile("garrysmod/models/C08Cop.mdl");
  29. resource.AddFile("garrysmod/models/closedboxshib.mdl");
  30. resource.AddFile("garrysmod/models/cocn.mdl");
  31. resource.AddFile("garrysmod/models/combine_infantry.mdl");
  32. resource.AddFile("garrysmod/models/combine_opad.mdl");
  33. resource.AddFile("garrysmod/models/combine_pilot.mdl");
  34. resource.AddFile("garrysmod/models/combine_fodder.mdl");
  35. resource.AddFile("garrysmod/models/combine_ranger.mdl");
  36. resource.AddFile("garrysmod/models/combine_urban.mdl");
  37. resource.AddFile("garrysmod/models/combine_urban2.mdl");
  38. resource.AddFile("garrysmod/models/copcar.mdl");
  39. resource.AddFile("garrysmod/models/copcarru.mdl");
  40. resource.AddFile("garrysmod/models/cremator.mdl");
  41. resource.AddFile("garrysmod/models/e3assassin.mdl");
  42. resource.AddFile("garrysmod/models/e3combine_pguard.mdl");
  43. resource.AddFile("garrysmod/models/e3combine_shotgunner.mdl");
  44. resource.AddFile("garrysmod/models/enforcer.mdl");
  45. resource.AddFile("garrysmod/models/gdub.mdl");
  46. resource.AddFile("garrysmod/models/Kass.mdl");
  47. resource.AddFile("garrysmod/models/led.mdl");
  48. resource.AddFile("garrysmod/models/led2.mdl");
  49. resource.AddFile("garrysmod/models/leet_police_bt.mdl");
  50. resource.AddFile("garrysmod/models/leet_police2.mdl");
  51. resource.AddFile("garrysmod/models/metrold.mdl");
  52. resource.AddFile("garrysmod/models/pissedmeoff.mdl");
  53. resource.AddFile("garrysmod/models/police_female.mdl");
  54. resource.AddFile("garrysmod/models/policetrench.mdl");
  55. resource.AddFile("garrysmod/models/Redice.mdl");
  56. resource.AddFile("garrysmod/models/Rolice.mdl");
  57. resource.AddFile("garrysmod/models/segment.mdl");
  58. resource.AddFile("garrysmod/models/segment2.mdl");
  59. resource.AddFile("garrysmod/models/segment3.mdl");
  60. resource.AddFile("garrysmod/models/tribal.mdl");
  61. end
  62. end
  63. end
  64. end
  65.  
  66. if !SinglePlayer() then
  67. ProcessFolder('AddDir("garrysmod/sound/arty");
  68. ProcessFolder('AddDir("garrysmod/sound/instruments");
  69. ProcessFolder('AddDir("garrysmod/sound/player");
  70. ProcessFolder('AddDir("garrysmod/sound/Radio_Mod_Sounds");
  71. ProcessFolder('AddDir("garrysmod/sound/synth");
  72. ProcessFolder('AddDir("garrysmod/sound/vehicles");
  73. ProcessFolder('AddDir("garrysmod/sound/weapons");
  74. ProcessFolder('AddDir("garrysmod/materials/arrowwire");
  75. ProcessFolder('AddDir("garrysmod/materials/beer");
  76. ProcessFolder('AddDir("garrysmod/materials/bull");
  77. ProcessFolder('AddDir("garrysmod/materials/Cable");
  78. ProcessFolder('AddDir("garrysmod/materials/combatmodels");
  79. ProcessFolder('AddDir("garrysmod/materials/cyborgmatt");
  80. ProcessFolder('AddDir("garrysmod/materials/decals");
  81. ProcessFolder('AddDir("garrysmod/materials/engine");
  82. ProcessFolder('AddDir("garrysmod/materials/expression 2");
  83. ProcessFolder('AddDir("garrysmod/materials/gui");
  84. ProcessFolder('AddDir("garrysmod/materials/highs");
  85. ProcessFolder('AddDir("garrysmod/materials/Holograms");
  86. ProcessFolder('AddDir("garrysmod/materials/hudindicator");
  87. ProcessFolder('AddDir("garrysmod/materials/icons");
  88. ProcessFolder('AddDir("garrysmod/materials/ipha");
  89. ProcessFolder('AddDir("garrysmod/materials/jaanus");
  90. ProcessFolder('AddDir("garrysmod/materials/katharsmodels");
  91. ProcessFolder('AddDir("garrysmod/materials/killa-x");
  92. ProcessFolder('AddDir("garrysmod/materials/killicons");
  93. ProcessFolder('AddDir("garrysmod/materials/kobilica");
  94. ProcessFolder('AddDir("garrysmod/materials/maps");
  95. ProcessFolder('AddDir("garrysmod/materials/models");
  96. ProcessFolder('AddDir("garrysmod/materials/sgtsicktextures");
  97. ProcessFolder('AddDir("garrysmod/materials/smile");
  98. ProcessFolder('AddDir("garrysmod/materials/sprites");
  99. ProcessFolder('AddDir("garrysmod/materials/thrusteraddon");
  100. ProcessFolder('AddDir("garrysmod/materials/tile");
  101. ProcessFolder('AddDir("garrysmod/materials/venompapa");
  102. ProcessFolder('AddDir("garrysmod/materials/wingf0x");
  103. ProcessFolder('AddDir("garrysmod/models/baton");
  104. ProcessFolder('AddDir("garrysmod/models/beer");
  105. ProcessFolder('AddDir("garrysmod/models/blacknecro");
  106. ProcessFolder('AddDir("garrysmod/models/bull");
  107. ProcessFolder('AddDir("garrysmod/models/Characters");
  108. ProcessFolder('AddDir("garrysmod/models/cheeze");
  109. ProcessFolder('AddDir("garrysmod/models/Cloud");
  110. ProcessFolder('AddDir("garrysmod/models/combatmodels");
  111. ProcessFolder('AddDir("garrysmod/models/cs_market2");
  112. ProcessFolder('AddDir("garrysmod/models/cyborgmatt");
  113. ProcessFolder('AddDir("garrysmod/models/drug_mod");
  114. ProcessFolder('AddDir("garrysmod/models/env");
  115. ProcessFolder('AddDir("garrysmod/models/expression 2");
  116. ProcessFolder('AddDir("garrysmod/models/hammy");
  117. ProcessFolder('AddDir("garrysmod/models/highrise");
  118. ProcessFolder('AddDir("garrysmod/models/holograms");
  119. ProcessFolder('AddDir("garrysmod/models/humans");
  120. ProcessFolder('AddDir("garrysmod/models/intro");
  121. ProcessFolder('AddDir("garrysmod/models/ipha");
  122. ProcessFolder('AddDir("garrysmod/models/jaanus");
  123. ProcessFolder('AddDir("garrysmod/models/katharsmodels");
  124. ProcessFolder('AddDir("garrysmod/models/killa-x");
  125. ProcessFolder('AddDir("garrysmod/models/kobilica");
  126. ProcessFolder('AddDir("garrysmod/models/madjawa");
  127. ProcessFolder('AddDir("garrysmod/models/marioragdoll");
  128. ProcessFolder('AddDir("garrysmod/models/nypdhat");
  129. ProcessFolder('AddDir("garrysmod/models/player");
  130. ProcessFolder('AddDir("garrysmod/models/props_general");
  131. ProcessFolder('AddDir("garrysmod/models/smile");
  132. ProcessFolder('AddDir("garrysmod/models/tdmcars");
  133. ProcessFolder('AddDir("garrysmod/models/toronto");
  134. ProcessFolder('AddDir("garrysmod/models/u4lab");
  135. ProcessFolder('AddDir("garrysmod/models/vehicles");
  136. ProcessFolder('AddDir("garrysmod/models/venompapa");
  137. ProcessFolder('AddDir("garrysmod/models/weapons");
  138. ProcessFolder('AddDir("garrysmod/models/wingf0x");
  139. ProcessFolder('AddDir("garrysmod/models/yellowlake");
  140. end
RAW Paste Data