Advertisement
Guest User

alchemy_mod_cfg.lua

a guest
Nov 26th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.53 KB | None | 0 0
  1. //Glass 1
  2. resource.AddFile( "models/alchemylab/glass1.mdl" );
  3. resource.AddFile( "models/alchemylab/glass1.dx80" );
  4. resource.AddFile( "models/alchemylab/glass1.dx90" );
  5. resource.AddFile( "models/alchemylab/glass1.sw" );
  6. resource.AddFile( "models/alchemylab/glass1.vvd" );
  7. resource.AddFile( "models/alchemylab/glass1.phy" );
  8. //Glass 2
  9. resource.AddFile( "models/alchemylab/glass2.mdl" );
  10. resource.AddFile( "models/alchemylab/glass2.dx80" );
  11. resource.AddFile( "models/alchemylab/glass2.dx90" );
  12. resource.AddFile( "models/alchemylab/glass2.sw" );
  13. resource.AddFile( "models/alchemylab/glass2.vvd" );
  14. resource.AddFile( "models/alchemylab/glass2.phy" );
  15. //Glass 3
  16. resource.AddFile( "models/alchemylab/glass3.mdl" );
  17. resource.AddFile( "models/alchemylab/glass3.dx80" );
  18. resource.AddFile( "models/alchemylab/glass3.dx90" );
  19. resource.AddFile( "models/alchemylab/glass3.sw" );
  20. resource.AddFile( "models/alchemylab/glass3.vvd" );
  21. resource.AddFile( "models/alchemylab/glass3.phy" );
  22. //Glass 4
  23. resource.AddFile( "models/alchemylab/glass4.mdl" );
  24. resource.AddFile( "models/alchemylab/glass4.dx80" );
  25. resource.AddFile( "models/alchemylab/glass4.dx90" );
  26. resource.AddFile( "models/alchemylab/glass4.sw" );
  27. resource.AddFile( "models/alchemylab/glass4.vvd" );
  28. resource.AddFile( "models/alchemylab/glass4.phy" );
  29. //Glass 5
  30. resource.AddFile( "models/alchemylab/glass5.mdl" );
  31. resource.AddFile( "models/alchemylab/glass5.dx80" );
  32. resource.AddFile( "models/alchemylab/glass5.dx90" );
  33. resource.AddFile( "models/alchemylab/glass5.sw" );
  34. resource.AddFile( "models/alchemylab/glass5.vvd" );
  35. resource.AddFile( "models/alchemylab/glass5.phy" );
  36. //Glass 6
  37. resource.AddFile( "models/alchemylab/glass6.mdl" );
  38. resource.AddFile( "models/alchemylab/glass6.dx80" );
  39. resource.AddFile( "models/alchemylab/glass6.dx90" );
  40. resource.AddFile( "models/alchemylab/glass6.sw" );
  41. resource.AddFile( "models/alchemylab/glass6.vvd" );
  42. resource.AddFile( "models/alchemylab/glass6.phy" );
  43. //Glass 7
  44. resource.AddFile( "models/alchemylab/glass7.mdl" );
  45. resource.AddFile( "models/alchemylab/glass7.dx80" );
  46. resource.AddFile( "models/alchemylab/glass7.dx90" );
  47. resource.AddFile( "models/alchemylab/glass7.sw" );
  48. resource.AddFile( "models/alchemylab/glass7.vvd" );
  49. resource.AddFile( "models/alchemylab/glass7.phy" );
  50. //Glass 8
  51. resource.AddFile( "models/alchemylab/glass8.mdl" );
  52. resource.AddFile( "models/alchemylab/glass8.dx80" );
  53. resource.AddFile( "models/alchemylab/glass8.dx90" );
  54. resource.AddFile( "models/alchemylab/glass8.sw" );
  55. resource.AddFile( "models/alchemylab/glass8.vvd" );
  56. resource.AddFile( "models/alchemylab/glass8.phy" );
  57. //Glass 9
  58. resource.AddFile( "models/alchemylab/glass9.mdl" );
  59. resource.AddFile( "models/alchemylab/glass9.dx80" );
  60. resource.AddFile( "models/alchemylab/glass9.dx90" );
  61. resource.AddFile( "models/alchemylab/glass9.sw" );
  62. resource.AddFile( "models/alchemylab/glass9.vvd" );
  63. resource.AddFile( "models/alchemylab/glass9.phy" );
  64. //Glass 10
  65. resource.AddFile( "models/alchemylab/glass10.mdl" );
  66. resource.AddFile( "models/alchemylab/glass10.dx80" );
  67. resource.AddFile( "models/alchemylab/glass10.dx90" );
  68. resource.AddFile( "models/alchemylab/glass10.sw" );
  69. resource.AddFile( "models/alchemylab/glass10.vvd" );
  70. resource.AddFile( "models/alchemylab/glass10.phy" );
  71.  
  72.  
  73. if CLIENT then
  74.     surface.CreateFont( "AlchemyFont48", {
  75.     font = "BEBAS",
  76.     size = 48,
  77.     weight = 500,
  78.     blursize = 0,
  79.     scanlines = 0,
  80.     antialias = true,
  81.     underline = false,
  82.     italic = false,
  83.     strikeout = false,
  84.     symbol = false,
  85.     rotary = false,
  86.     shadow = false,
  87.     additive = false,
  88.     outline = false
  89. } )
  90.     surface.CreateFont( "AlchemyFont64", {
  91.     font = "BEBAS",
  92.     size = 64,
  93.     weight = 500,
  94.     blursize = 0,
  95.     scanlines = 0,
  96.     antialias = true,
  97.     underline = false,
  98.     italic = false,
  99.     strikeout = false,
  100.     symbol = false,
  101.     rotary = false,
  102.     shadow = false,
  103.     additive = false,
  104.     outline = false
  105. } )
  106. end
  107.  
  108. AM = {}
  109. AM.Recipes = {}
  110.  
  111. AM.ModTranslations = {}
  112. AM.ModTranslations["RestoreHealth"]     = {"Restore Health", "HP"}
  113. AM.ModTranslations["RestoreArmor"]      = {"Restore Armor", "AR"}
  114. AM.ModTranslations["RunSpeed"]          = {"Run Speed", "Speed"}
  115. AM.ModTranslations["JumpHeight"]        = {"Jump Height", "Power"}
  116. AM.ModTranslations["Poison"]            = {"Poison", "HP"}
  117. AM.ModTranslations["Invisibility"]      = {"Invisibility", "seconds"}
  118. AM.ModTranslations["CopDisguise"]       = {"Cop Disguisement", "seconds"}
  119. AM.ModTranslations["MaxHealth"]         = {"Max. Health", "HP"}
  120.  
  121. AM.IngredientTranslations = {}
  122. AM.IngredientTranslations["ingredient_cactus"]              = "Cactus"
  123. AM.IngredientTranslations["ingredient_oldbattery"]          = "Old Battery"
  124. AM.IngredientTranslations["ingredient_alcohol"]             = "Alcohol"
  125. AM.IngredientTranslations["ingredient_orange"]              = "Orange"
  126. AM.IngredientTranslations["ingredient_pieceofwood"]         = "Piece of Wood"
  127. AM.IngredientTranslations["ingredient_melonslice"]          = "Melon Slice"
  128. AM.IngredientTranslations["ingredient_slime"]               = "Slime"
  129.  
  130. if CLIENT then
  131.     function AM.ShowPotionInfo()
  132.         if LocalPlayer():GetEyeTrace().Entity then
  133.             local E = LocalPlayer():GetEyeTrace().Entity
  134.             if E:IsValid() and E:GetPos():Distance(LocalPlayer():GetPos()) > 200 then return end
  135.             if E.IsPotion then
  136.                 draw.SimpleTextOutlined( 'Potion', "DermaLarge", ScrW()/2, ScrH()/2, Color(142, 235, 0, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( 0, 0, 0, 255 ) )
  137.                 local i = 1
  138.                 for k, v in pairs (E.Mods) do
  139.                     draw.SimpleTextOutlined( AM.ModTranslations[k][1] .. " ("..v.." "..AM.ModTranslations[k][2]..")", "DermaDefaultBold", ScrW()/2, (ScrH()/2)+(15*i), Color( 255, 190, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color( 0, 0, 0, 255 ) )
  140.                     i=i+1
  141.                 end
  142.             end
  143.         end
  144.     end
  145.     hook.Add("HUDPaint", "ShowPotionInfo", AM.ShowPotionInfo)
  146. end
  147.  
  148. function AM.AddRecipe( recipeTbl )
  149.     AM.Recipes[#AM.Recipes+1] = recipeTbl
  150. end
  151. --
  152. --
  153. --
  154. --
  155. --
  156. --
  157. --
  158. --
  159. --
  160. --
  161. --
  162. --
  163. -- ADD RECIPES BELOW, DON'T MIND WHATS UP THERE
  164. --
  165. --
  166. --
  167. --
  168. --
  169. --
  170. --
  171. --
  172. --
  173. --
  174. --
  175. --
  176. local Recipe = {}
  177. Recipe.name = "Small Healing Potion"
  178. Recipe.model = "models/alchemylab/glass2.mdl"
  179. Recipe.effect = "effect_alchemy_redpotion"
  180. Recipe.ingredients = {"ingredient_cactus", "ingredient_oldbattery"}
  181. Recipe.mods =
  182. {
  183.     RestoreHealth = {Min = 5, Max = 15}
  184. }
  185. AM.AddRecipe( Recipe )
  186.  
  187. local Recipe = {}
  188. Recipe.name = "Small Shell Potion"
  189. Recipe.model = "models/alchemylab/glass1.mdl"
  190. Recipe.effect = "effect_alchemy_yellowpotion"
  191. Recipe.ingredients = {"ingredient_melonslice", "ingredient_pieceofwood"}
  192. Recipe.mods =
  193. {
  194.     RestoreArmor = {Min = 5, Max = 15}
  195. }
  196. AM.AddRecipe( Recipe )
  197.  
  198. local Recipe = {}
  199. Recipe.name = "Small Haste Potion"
  200. Recipe.model = "models/alchemylab/glass3.mdl"
  201. Recipe.effect = "effect_alchemy_purplepotion"
  202. Recipe.ingredients = {"ingredient_slime", "ingredient_orange"}
  203. Recipe.mods =
  204. {
  205.     RunSpeed = {Min = 30, Max = 60}
  206. }
  207. AM.AddRecipe( Recipe )
  208.  
  209. local Recipe = {}
  210. Recipe.name = "Small Feather Potion"
  211. Recipe.model = "models/alchemylab/glass4.mdl"
  212. Recipe.effect = "effect_alchemy_bluepotion"
  213. Recipe.ingredients = {"ingredient_alcohol", "ingredient_pieceofwood"}
  214. Recipe.mods =
  215. {
  216.     JumpHeight = {Min = 60, Max = 120}
  217. }
  218. AM.AddRecipe( Recipe )
  219.  
  220. local Recipe = {}
  221. Recipe.name = "Small Poison"
  222. Recipe.model = "models/alchemylab/glass5.mdl"
  223. Recipe.effect = "effect_alchemy_greenpotion"
  224. Recipe.ingredients = {"ingredient_alcohol", "ingredient_oldbattery"}
  225. Recipe.mods =
  226. {
  227.     Poison = {Min = 25, Max = 50}
  228. }
  229. AM.AddRecipe( Recipe )
  230.  
  231. local Recipe = {}
  232. Recipe.name = "Small Invisibility Potion"
  233. Recipe.model = "models/alchemylab/glass9.mdl"
  234. Recipe.effect = "effect_alchemy_pinkpotion"
  235. Recipe.ingredients = {"ingredient_alcohol", "ingredient_pieceofwood"}
  236. Recipe.mods =
  237. {
  238.     Invisibility = {Min = 25, Max = 50}
  239. }
  240. AM.AddRecipe( Recipe )
  241.  
  242. local Recipe = {}
  243. Recipe.name = "Small Cop Disguise Potion"
  244. Recipe.model = "models/alchemylab/glass7.mdl"
  245. Recipe.effect = "effect_alchemy_orangepotion"
  246. Recipe.ingredients = {"ingredient_slime", "ingredient_pieceofwood"}
  247. Recipe.mods =
  248. {
  249.     CopDisguise = {Min = 15, Max = 30}
  250. }
  251. AM.AddRecipe( Recipe )
  252.  
  253. local Recipe = {}
  254. Recipe.name = "Small Strenght Potion"
  255. Recipe.model = "models/alchemylab/glass10.mdl"
  256. Recipe.effect = "effect_alchemy_whitepotion"
  257. Recipe.ingredients = {"ingredient_slime", "ingredient_oldbattery"}
  258. Recipe.mods =
  259. {
  260.     MaxHealth = {Min = 25, Max = 50}
  261. }
  262. AM.AddRecipe( Recipe )
  263.  
  264. local Recipe = {}
  265. Recipe.name = "Medium Healing Potion"
  266. Recipe.model = "models/alchemylab/glass2.mdl"
  267. Recipe.effect = "effect_alchemy_redpotion"
  268. Recipe.ingredients = {"ingredient_cactus", "ingredient_oldbattery", "ingredient_melonslice"}
  269. Recipe.mods =
  270. {
  271.     RestoreHealth = {Min = 15, Max = 35}
  272. }
  273. AM.AddRecipe( Recipe )
  274.  
  275. local Recipe = {}
  276. Recipe.name = "Medium Shell Potion"
  277. Recipe.model = "models/alchemylab/glass1.mdl"
  278. Recipe.effect = "effect_alchemy_yellowpotion"
  279. Recipe.ingredients = {"ingredient_melonslice", "ingredient_pieceofwood", "ingredient_alcohol"}
  280. Recipe.mods =
  281. {
  282.     RestoreArmor = {Min = 15, Max = 35}
  283. }
  284. AM.AddRecipe( Recipe )
  285.  
  286. local Recipe = {}
  287. Recipe.name = "Medium Haste Potion"
  288. Recipe.model = "models/alchemylab/glass3.mdl"
  289. Recipe.effect = "effect_alchemy_purplepotion"
  290. Recipe.ingredients = {"ingredient_slime", "ingredient_orange", "ingredient_oldbattery"}
  291. Recipe.mods =
  292. {
  293.     RunSpeed = {Min = 60, Max = 100}
  294. }
  295. AM.AddRecipe( Recipe )
  296.  
  297. local Recipe = {}
  298. Recipe.name = "Medium Feather Potion"
  299. Recipe.model = "models/alchemylab/glass4.mdl"
  300. Recipe.effect = "effect_alchemy_bluepotion"
  301. Recipe.ingredients = {"ingredient_alcohol", "ingredient_pieceofwood", "ingredient_melonslice"}
  302. Recipe.mods =
  303. {
  304.     JumpHeight = {Min = 120, Max = 180}
  305. }
  306. AM.AddRecipe( Recipe )
  307.  
  308. local Recipe = {}
  309. Recipe.name = "Medium Poison"
  310. Recipe.model = "models/alchemylab/glass5.mdl"
  311. Recipe.effect = "effect_alchemy_greenpotion"
  312. Recipe.ingredients = {"ingredient_alcohol", "ingredient_oldbattery", "ingredient_orange"}
  313. Recipe.mods =
  314. {
  315.     Poison = {Min = 50, Max = 75}
  316. }
  317. AM.AddRecipe( Recipe )
  318.  
  319. local Recipe = {}
  320. Recipe.name = "Medium Invisibility Potion"
  321. Recipe.model = "models/alchemylab/glass9.mdl"
  322. Recipe.effect = "effect_alchemy_pinkpotion"
  323. Recipe.ingredients = {"ingredient_alcohol", "ingredient_pieceofwood", "ingredient_slime"}
  324. Recipe.mods =
  325. {
  326.     Invisibility = {Min = 50, Max = 75}
  327. }
  328. AM.AddRecipe( Recipe )
  329.  
  330. local Recipe = {}
  331. Recipe.name = "Medium Cop Disguise Potion"
  332. Recipe.model = "models/alchemylab/glass7.mdl"
  333. Recipe.effect = "effect_alchemy_orangepotion"
  334. Recipe.ingredients = {"ingredient_slime", "ingredient_pieceofwood", "ingredient_orange"}
  335. Recipe.mods =
  336. {
  337.     CopDisguise = {Min = 30, Max = 60}
  338. }
  339. AM.AddRecipe( Recipe )
  340.  
  341. local Recipe = {}
  342. Recipe.name = "Medium Strenght Potion"
  343. Recipe.model = "models/alchemylab/glass10.mdl"
  344. Recipe.effect = "effect_alchemy_whitepotion"
  345. Recipe.ingredients = {"ingredient_slime", "ingredient_oldbattery", "ingredient_cactus"}
  346. Recipe.mods =
  347. {
  348.     MaxHealth = {Min = 50, Max = 75}
  349. }
  350. AM.AddRecipe( Recipe )
  351.  
  352. local Recipe = {}
  353. Recipe.name = "Large Healing Potion"
  354. Recipe.model = "models/alchemylab/glass2.mdl"
  355. Recipe.effect = "effect_alchemy_redpotion"
  356. Recipe.ingredients = {"ingredient_cactus", "ingredient_oldbattery", "ingredient_melonslice", "ingredient_slime"}
  357. Recipe.mods =
  358. {
  359.     RestoreHealth = {Min = 35, Max = 70}
  360. }
  361. AM.AddRecipe( Recipe )
  362.  
  363. local Recipe = {}
  364. Recipe.name = "Large Shell Potion"
  365. Recipe.model = "models/alchemylab/glass1.mdl"
  366. Recipe.effect = "effect_alchemy_yellowpotion"
  367. Recipe.ingredients = {"ingredient_melonslice", "ingredient_pieceofwood", "ingredient_alcohol", "ingredient_oldbattery"}
  368. Recipe.mods =
  369. {
  370.     RestoreArmor = {Min = 35, Max = 70}
  371. }
  372. AM.AddRecipe( Recipe )
  373.  
  374. local Recipe = {}
  375. Recipe.name = "Large Haste Potion"
  376. Recipe.model = "models/alchemylab/glass3.mdl"
  377. Recipe.effect = "effect_alchemy_purplepotion"
  378. Recipe.ingredients = {"ingredient_slime", "ingredient_orange", "ingredient_oldbattery", "ingredient_alcohol"}
  379. Recipe.mods =
  380. {
  381.     RunSpeed = {Min = 100, Max = 150}
  382. }
  383. AM.AddRecipe( Recipe )
  384.  
  385. local Recipe = {}
  386. Recipe.name = "Large Feather Potion"
  387. Recipe.model = "models/alchemylab/glass4.mdl"
  388. Recipe.effect = "effect_alchemy_bluepotion"
  389. Recipe.ingredients = {"ingredient_alcohol", "ingredient_pieceofwood", "ingredient_melonslice", "ingredient_cactus"}
  390. Recipe.mods =
  391. {
  392.     JumpHeight = {Min = 180, Max = 240}
  393. }
  394. AM.AddRecipe( Recipe )
  395.  
  396. local Recipe = {}
  397. Recipe.name = "Deadly Poison"
  398. Recipe.model = "models/alchemylab/glass5.mdl"
  399. Recipe.effect = "effect_alchemy_greenpotion"
  400. Recipe.ingredients = {"ingredient_alcohol", "ingredient_oldbattery", "ingredient_orange", "ingredient_slime"}
  401. Recipe.mods =
  402. {
  403.     Poison = {Min = 75, Max = 100}
  404. }
  405. AM.AddRecipe( Recipe )
  406.  
  407. local Recipe = {}
  408. Recipe.name = "Large Invisibility Potion"
  409. Recipe.model = "models/alchemylab/glass9.mdl"
  410. Recipe.effect = "effect_alchemy_pinkpotion"
  411. Recipe.ingredients = {"ingredient_alcohol", "ingredient_pieceofwood", "ingredient_slime", "ingredient_cactus"}
  412. Recipe.mods =
  413. {
  414.     Invisibility = {Min = 75, Max = 100}
  415. }
  416. AM.AddRecipe( Recipe )
  417.  
  418. local Recipe = {}
  419. Recipe.name = "Large Cop Disguise Potion"
  420. Recipe.model = "models/alchemylab/glass7.mdl"
  421. Recipe.effect = "effect_alchemy_orangepotion"
  422. Recipe.ingredients = {"ingredient_slime", "ingredient_pieceofwood", "ingredient_orange", "ingredient_cactus"}
  423. Recipe.mods =
  424. {
  425.     CopDisguise = {Min = 60, Max = 90}
  426. }
  427. AM.AddRecipe( Recipe )
  428.  
  429. local Recipe = {}
  430. Recipe.name = "Large Strenght Potion"
  431. Recipe.model = "models/alchemylab/glass10.mdl"
  432. Recipe.effect = "effect_alchemy_whitepotion"
  433. Recipe.ingredients = {"ingredient_slime", "ingredient_oldbattery", "ingredient_cactus", "ingredient_melonslice"}
  434. Recipe.mods =
  435. {
  436.     MaxHealth = {Min = 75, Max = 100}
  437. }
  438. AM.AddRecipe( Recipe )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement