Guest User

Untitled

a guest
May 14th, 2021
1,082
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.28 KB | None | 0 0
  1. zmlab2 = zmlab2 or {}
  2. zmlab2.config = zmlab2.config or {}
  3. zmlab2.config.MethTypes = {}
  4. local function AddMeth(data) return table.insert(zmlab2.config.MethTypes,data) end
  5.  
  6. AddMeth({
  7.     name = zmlab2.language["meth_title"],
  8.  
  9.     // Currently the description only gets displayed inside inventories like Itemstore or Xenin
  10.     desc = zmlab2.language["meth_desc"],
  11.  
  12.     // The money value per gram if the quality is perfect (100%)
  13.     price = 1,
  14.  
  15.     // Color of the meth
  16.     color = Color(187, 230, 210, 255),
  17.  
  18.     // The crystall model which gets used in the Filter Interface
  19.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall02.mdl",
  20.  
  21.     // Can be used to overwrite the material
  22.     material = {
  23.         diff = "zerochain/props_methlab/meth/zmlab2_meth_type02_diff",
  24.         nrm = "zerochain/props_methlab/meth/zmlab2_meth_type02_nrm",
  25.     },
  26.  
  27.     // Defines how hard the minigame for this methtype is (1-10)
  28.     // 1 = Easy , 10 = Expert
  29.     difficulty = 1,
  30.  
  31.     // Defines how much meth this type produces
  32.     batch_size = 5000,
  33.  
  34.     // How many Methylamin Barrels and Aluminium are needed
  35.     recipe_barrel = 1,
  36.     recipe_alu = 2,
  37.  
  38.  
  39.     // How long is one mix cycle in the mixer machine for this meth type (seconds)
  40.     mix_time = 15,
  41.  
  42.     // How long does it take to vent this meth type in the mixer machine (seconds)
  43.     vent_time = 25,
  44.  
  45.     // How long does the Filter Machine need to compose / produce the meth (seconds)
  46.     filter_time = 60,
  47.  
  48.  
  49.     // Can be used to call some custom code when the player consums this type of meth (Gets called once per "E - Press" on a meth bag)
  50.     OnConsumption = function(ply,meth_entity,meth_quality)
  51.  
  52.         /*
  53.             //Here are some modificators you can use (All of them are the Max Value and if applied will scale themself depending on Meth Quality)
  54.  
  55.             // A movement speed multiplier
  56.             ply.zmlab2_Effect_Speed = 3
  57.  
  58.             // A damage multiplier for any damage inflicted on the player
  59.             ply.zmlab2_Effect_DMG = 0.5
  60.  
  61.             //Same damage multiplier can be used as a table instead to only modify certain damage types
  62.             ply.zmlab2_Effect_DMG = {
  63.                 [DMG_FALL] = 0
  64.             }
  65.         */
  66.  
  67.         ply.zmlab2_Effect_Speed = 1.5
  68.         ply.zmlab2_Effect_DMG = 0.5
  69.     end,
  70.  
  71.     // Called once the effect has ended or before another effect replaced this effect
  72.     OnEffectEnd = function(ply) end,
  73.  
  74.     // Some values for the screeneffect
  75.     visuals = {
  76.         // The music to play while high (audio file needs loop points in order to loop)
  77.         //music = "path/to/file.wav",
  78.  
  79.         // The particle effect which gets created when the player is high
  80.         effect = "zmlab2_high_effect01",
  81.  
  82.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  83.         MotionBlur = true,
  84.         Bloom = true,
  85.  
  86.         // Particle effects which get created when the meth gets moved/ made
  87.         effect_breaking = "zmlab2_meth_breaking",
  88.         effect_filling = "zmlab2_meth_filling",
  89.         effect_exploding = "zmlab2_meth_explo",
  90.         effect_mixer_liquid = "zmlab2_mixer_liquid",
  91.         effect_mixer_exhaust = "zmlab2_mixer_exhaust",
  92.     },
  93.  
  94.     // Which rank is allowed to make this methtype?
  95.     /*
  96.     rank = {
  97.         ["vip"] = true,
  98.     },
  99.     */
  100.  
  101.     // Which job is allowed to make this methtype?
  102.     /*
  103.     job = {
  104.         [TEAM_ZMLAB2_COOK] = true
  105.     },
  106.     */
  107.  
  108.     // You can use this to restrict this methtype for any other reason
  109.     /*
  110.     customcheck = function(ply)
  111.         if ply:Nick() ~= "Walter White" then return false end
  112.     end,
  113.     */
  114. })
  115.  
  116. AddMeth({
  117.     name = zmlab2.language["bluemeth_title"],
  118.     desc = zmlab2.language["bluemeth_desc"],
  119.     price = 5,
  120.     color = Color(40, 201, 230, 255),
  121.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall02.mdl",
  122.     material = {
  123.         diff = "zerochain/props_methlab/meth/zmlab2_meth_type02_diff",
  124.         nrm = "zerochain/props_methlab/meth/zmlab2_meth_type02_nrm",
  125.     },
  126.     difficulty = 7,
  127.     batch_size = 2500,
  128.     recipe_barrel = 2,
  129.     recipe_alu = 1,
  130.     mix_time = 60,
  131.     vent_time = 120,
  132.     filter_time = 120,
  133.     OnConsumption = function(ply,meth_entity,meth_quality)
  134.         ply.zmlab2_Effect_DMG = 0.5
  135.         ply.zmlab2_Effect_Speed = 3
  136.     end,
  137.     visuals = {
  138.         music = "zmlab2/meth_music_blue.wav",
  139.         effect = "zmlab2_high_effect01",
  140.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  141.         MotionBlur = true,
  142.         Bloom = true,
  143.         effect_breaking = "zmlab2_meth_breaking_blue",
  144.         effect_filling = "zmlab2_meth_filling_blue",
  145.         effect_exploding = "zmlab2_meth_explo_blue",
  146.         effect_mixer_liquid = "zmlab2_mixer_liquid_blue",
  147.         effect_mixer_exhaust = "zmlab2_mixer_exhaust_blue",
  148.     }
  149. })
  150.  
  151. AddMeth({
  152.     name = zmlab2.language["kalaxi_title"],
  153.     desc = zmlab2.language["kalaxi_desc"],
  154.     price = 9,
  155.     color = Color(230, 12, 104, 255),
  156.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall03.mdl",
  157.     difficulty = 10,
  158.     batch_size = 2500,
  159.     recipe_barrel = 2,
  160.     recipe_alu = 2,
  161.     mix_time = 30,
  162.     vent_time = 10,
  163.     filter_time = 200,
  164.     OnConsumption = function(ply,meth_entity,meth_quality)
  165.         ply.zmlab2_Effect_DMG = 0.5
  166.         ply.zmlab2_Effect_Speed = 3
  167.  
  168.         ply:SetJumpPower( 200 + ((300 / 100) * meth_quality) )
  169.     end,
  170.     OnEffectEnd = function(ply)
  171.         ply:SetJumpPower( 200 )
  172.     end,
  173.     visuals = {
  174.         music = "zmlab2/meth_music_kalaxian.wav",
  175.         effect = "zmlab2_high_effect02",
  176.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  177.         MotionBlur = true,
  178.         Bloom = true,
  179.         effect_breaking = "zmlab2_meth_breaking_pink",
  180.         effect_filling = "zmlab2_meth_filling_pink",
  181.         effect_exploding = "zmlab2_meth_explo_pink",
  182.         effect_mixer_liquid = "zmlab2_mixer_liquid_pink",
  183.         effect_mixer_exhaust = "zmlab2_mixer_exhaust_pink",
  184.     }
  185. })
  186.  
  187. AddMeth({
  188.     name = zmlab2.language["glitter_title"],
  189.     desc = zmlab2.language["glitter_desc"],
  190.     price = 1,
  191.     color = Color(230, 168, 18, 255),
  192.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall01.mdl",
  193.     material = {
  194.         diff = "zerochain/props_methlab/meth/zmlab2_meth_type03_diff",
  195.         nrm = "zerochain/props_methlab/meth/zmlab2_meth_type03_nrm",
  196.     },
  197.     difficulty = 1,
  198.     batch_size = 5000,
  199.     recipe_barrel = 1,
  200.     recipe_alu = 5,
  201.     mix_time = 25,
  202.     vent_time = 25,
  203.     filter_time = 25,
  204.     OnConsumption = function(ply,meth_entity,meth_quality)
  205.         ply.zmlab2_Effect_DMG = {
  206.             [DMG_FALL] = 0
  207.         }
  208.         ply.zmlab2_Effect_Speed = 3
  209.     end,
  210.     visuals = {
  211.         music = "zmlab2/meth_music_glitter.wav",
  212.         effect = "zmlab2_high_effect03",
  213.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  214.         MotionBlur = true,
  215.         Bloom = true,
  216.         effect_breaking = "zmlab2_meth_breaking_yellow",
  217.         effect_filling = "zmlab2_meth_filling_yellow",
  218.         effect_exploding = "zmlab2_meth_explo_yellow",
  219.         effect_mixer_liquid = "zmlab2_mixer_liquid_yellow",
  220.         effect_mixer_exhaust = "zmlab2_mixer_exhaust_yellow",
  221.     }
  222. })
  223.  
  224. AddMeth({
  225.     name = zmlab2.language["kronole_title"],
  226.     desc = zmlab2.language["kronole_desc"],
  227.     price = 9,
  228.     color = Color(89, 106, 136, 255),
  229.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall01.mdl",
  230.     material = {
  231.         diff = "zerochain/props_methlab/meth/zmlab2_meth_type01_diff",
  232.         nrm = "zerochain/props_methlab/meth/zmlab2_meth_type01_nrm",
  233.     },
  234.     difficulty = 10,
  235.     batch_size = 2500,
  236.     recipe_barrel = 1,
  237.     recipe_alu = 1,
  238.     mix_time = 10,
  239.     vent_time = 100,
  240.     filter_time = 215,
  241.     OnConsumption = function(ply,meth_entity,meth_quality)
  242.         ply.zmlab2_Effect_DMG = 0
  243.         ply.zmlab2_Effect_Speed = 1.1
  244.     end,
  245.     visuals = {
  246.         music = "zmlab2/meth_music_kronole.wav",
  247.         effect = "zmlab2_high_effect04",
  248.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  249.         MotionBlur = true,
  250.         Bloom = true,
  251.         effect_breaking = "zmlab2_meth_breaking_darkblue",
  252.         effect_filling = "zmlab2_meth_filling_darkblue",
  253.         effect_exploding = "zmlab2_meth_explo_darkblue",
  254.         effect_mixer_liquid = "zmlab2_mixer_liquid_blue",
  255.         effect_mixer_exhaust = "zmlab2_mixer_exhaust_blue",
  256.     },
  257. })
  258.  
  259. AddMeth({
  260.     name = zmlab2.language["melange_title"],
  261.     desc = zmlab2.language["melange_desc"],
  262.     price = 4,
  263.     color = Color(157, 78, 78, 255),
  264.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall04.mdl",
  265.     difficulty = 5,
  266.     batch_size = 2500,
  267.     recipe_barrel = 2,
  268.     recipe_alu = 2,
  269.     mix_time = 25,
  270.     vent_time = 50,
  271.     filter_time = 100,
  272.     OnConsumption = function(ply,meth_entity,meth_quality)
  273.         ply.zmlab2_Effect_DMG = 0.5
  274.         ply.zmlab2_Effect_Speed = 2
  275.     end,
  276.     /*
  277.     rank = {
  278.         ["vip"] = true,
  279.     },
  280.     */
  281.     visuals = {
  282.         music = "zmlab2/meth_music_spice.wav",
  283.         effect = "zmlab2_high_effect05",
  284.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  285.         MotionBlur = true,
  286.         Bloom = true,
  287.         effect_breaking = "zmlab2_meth_breaking_brown",
  288.         effect_filling = "zmlab2_meth_filling_brown",
  289.         effect_exploding = "zmlab2_meth_explo_brown",
  290.         effect_mixer_liquid = "zmlab2_mixer_liquid_brown",
  291.         effect_mixer_exhaust = "zmlab2_mixer_exhaust_brown",
  292.     },
  293. })
  294.  
  295. AddMeth({
  296.     name = zmlab2.language["mdma_title"],
  297.     desc = zmlab2.language["mdma_desc"],
  298.     price = 6,
  299.     color = Color(239, 57, 106, 255),
  300.     crystal_mdl = "models/zerochain/props_methlab/zmlab2_crystall01.mdl",
  301.     difficulty = 10,
  302.     batch_size = 2500,
  303.     recipe_barrel = 1,
  304.     recipe_alu = 5,
  305.     mix_time = 60,
  306.     vent_time = 100,
  307.     filter_time = 150,
  308.     OnConsumption = function(ply,meth_entity,meth_quality)
  309.         ply.zmlab2_Effect_Speed = 3
  310.     end,
  311.     visuals = {
  312.         music = "zmlab2/meth_music_mdma.wav",
  313.         effect = "zmlab2_high_effect04",
  314.         MaterialOverlay = "effects/tp_eyefx/tpeye3",
  315.         MotionBlur = true,
  316.         Bloom = true,
  317.         effect_breaking = "zmlab2_meth_breaking_pink",
  318.         effect_filling = "zmlab2_meth_filling_pink",
  319.         effect_exploding = "zmlab2_meth_explo_pink",
  320.         effect_mixer_liquid = "zmlab2_mixer_liquid_pink",
  321.         effect_mixer_exhaust = "zmlab2_mixer_exhaust_pink",
  322.     },
  323. })
  324.  
Add Comment
Please, Sign In to add comment