MYTHARP-Merlin

zrush_config.lua

Aug 5th, 2018
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.72 KB | None | 0 0
  1. zrush = zrush || {}
  2. zrush.config = zrush.config || {}
  3. zrush.f = zrush.f || {}
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6.  
  7. // Bought by 76561198139998728
  8. // Version 1.0.7b
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Developed by ZeroChain:
  12. // http://steamcommunity.com/id/zerochain/
  13. // https://www.gmodstore.com/users/view/76561198013322242
  14.  
  15. // If you wish to contact me:
  16. // clemensproduction@gmail.com
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. //////////////BEFORE YOU START BE SURE TO READ THE README.TXT//////////////
  20. /////////////////////////////////////////////////////////////////////////////
  21.  
  22.  
  23. // General
  24. ///////////////////////
  25. // This switches between fast download and workshop
  26. zrush.config.EnableResourceAddfile = false
  27.  
  28. // Do we want do use the HD pack (100MB) or the Normal Pack (40MB)
  29. zrush.config.WorkshopHDPack = false
  30.  
  31. // What language do we want? en,de,hu,fr,es,pl,cn
  32. zrush.config.selectedLanguage = "en"
  33.  
  34. // What gamemode are we using
  35. zrush.config.selectedGamemode = "DarkRP"
  36. // DarkRP
  37. // BaseWars
  38. // NutScript
  39.  
  40. // The Currency
  41. zrush.config.Currency = "$"
  42.  
  43. // The Unit of Measurement
  44. zrush.config.UoM = "l" // liter
  45.  
  46. // These Ranks are allowed do use the save command  !savezrush
  47. zrush.config.allowedRanks = {"owner"}
  48.  
  49. // This disables the owner checks and allows every player do use each others entitys
  50. zrush.config.EquipmentSharing = false
  51.  
  52. // Should the machines be all NoCollide with the players do make sure the players dont get stuck by mistake?
  53. zrush.config.machine_NoCollide = true
  54.  
  55. // Player data
  56. zrush.config.player = {
  57.     DropFuelOnDeath = true, // Should the player drop all of the Fuel Barrels he has in his Zrush inventory when he dies?
  58.     MaxActiveDrillHoles = 2,// How many acitve drillholes is the player allowed do have?
  59. }
  60.  
  61. // The Interval of the EventManager
  62. zrush.config.EventManager_Interval = 30 // seconds
  63.  
  64. // The money you get when you sell your machines or modules again
  65. zrush.config.SellValue = 0.5 // You get 50% of the original price
  66.  
  67. // Do we have VCMod installed? (This enables the user do extract VCMod Jerry Cans from Fuel Barrels)
  68. zrush.config.VCMod = true
  69.  
  70. // The system which is used do place machines
  71. zrush.config.MachineBuilder = {
  72.     AcceptKey = MOUSE_LEFT, // The Button which complets the action
  73.     CancelKey = MOUSE_RIGHT, // The Button which cancels the action
  74.     // See http://wiki.garrysmod.com/page/Enums/BUTTON_CODE
  75. }
  76.  
  77. // How should the drilling work?
  78. // 0 = The DrillTower dont needs a oilspots and can be placed everywhere
  79. // 1 = The DrillTower can only be placed on OilSpots and OilSpots Refresh after use (OilSpots need do be placed by an Admin)
  80. // 2 = The DrillTower can only be placed on OilSpots which get created at random by a OilSpot Generator. (OilSpot Generator need do be placed by an Admin)
  81. zrush.config.Drill_Mode = 2
  82.  
  83. // The Fuel Buyer data
  84. zrush.config.FuelBuyer = {
  85.     Model = "models/masterchief_pack/slow_masterchief_matrix.mdl", // The Model
  86.     NotifyImage = "entities/npc_odessa.png", // The Dialogbox Image
  87.     SellAmount = 50, // The Amount the player can sell at once
  88.     RefreshRate = 300, // How often should the fuel marked change in seconds
  89.     MaxBuyRate = 250, //% The Max Sell Multiplicator you can get (100 is the Base Price, More means + Profit , Less means - Profit)
  90.     MinBuyRate = 50, //% The Min Sell Multiplicator you can get
  91.     anim_idle = {"idle_angry","idle_subtle"}, // The idle animations of the npc
  92.     anim_sell = {"takepackage","cheer1","cheer2"}, // The sell animation of the npc
  93.     names = {"Jeff","Martin","Alex","Henry","Thomas"} // Just do give them a little Charakter :I
  94. }
  95.  
  96. zrush.config.VrondakisLevelSystem = false
  97.  
  98. // Only works if you have Vrondakis LevelSystem installed
  99. zrush.config.Vrondakis = {}
  100. zrush.config.Vrondakis["Selling"] = {XP = 25}       // XP per Sold Unit (5l/gal == 5XP)
  101. zrush.config.Vrondakis["DrillingPipe"] = {XP = 100} // XP per drilled down Pipe
  102. zrush.config.Vrondakis["BurningGas"] = {XP = 25}    // XP per burned gas unit
  103. zrush.config.Vrondakis["ReachingOil"] = {XP = 200}  // XP when reaching Oil
  104. zrush.config.Vrondakis["PumpingOil"] = {XP = 25}    // XP per pumped out Oil (5l/gal == 5XP)
  105. zrush.config.Vrondakis["RefiningOil"] = {XP = 25}   // XP per refined unit of Oil (5l/gal == 5XP)
  106.  
  107. zrush.config.Debug = false
  108. ///////////////////////
  109.  
  110.  
  111.  
  112. // OilSpots
  113. ///////////////////////
  114. zrush.config.OilSpot = {
  115.     Cooldown = 60, // This is the time in seconds a oilspot is gonna wait after it was closed before it can get drilled again or before it gets removed
  116. }
  117.  
  118. zrush.config.OilSpot_Generator = {
  119.     Rate = 3, // The rate in seconds the generator tries do spawn a new OilSpot if possible
  120.     MaxOilSpots = 3, // The Max count of valid oilspots a generator can have
  121.     MaxLifeTime = 1000, // This is the max time in seconds a oilspot is gonna wait before it gets removed again if its not used by a Player
  122.     MaxSearchPosCount = 100, // This is the max search count per interval, meaning the generator trys this often do find a valid space for a oilspot befor it stops
  123. }
  124. ///////////////////////
  125.  
  126.  
  127.  
  128. // Fuel Settings
  129. ///////////////////////
  130. // Fuel Registration
  131. /*
  132.     Values for this are
  133.     Name               : The Name of the Fuel
  134.     FuelColor         : The Color of the Fuel
  135.     VCmodfuel (0||1)   : What VC Mod fuel is it (Petrol or Diesel) (Only usefull if you have VCMod installed!)
  136.     RefineOutput       : How much Fuel do we get from the refined Oil (0.5 = 50%)
  137.     BasePrice         : The Start Sell Price of the Fuel per Unit (Liter,etc..)
  138. */
  139.  
  140. zrush.f.CreateFuelTypes("Regular Petrol",Color(211,190,255),0,0.55,15)
  141. zrush.f.CreateFuelTypes("Premium Petrol",Color(255,236,110),0,0.25,125)
  142. zrush.f.CreateFuelTypes("Premium Ultra Petrol",Color(211,255,149),0,0.10,2400)
  143.  
  144. zrush.f.CreateFuelTypes("Regular Diesel",Color(255,227,190),1,0.55,20)
  145. zrush.f.CreateFuelTypes("Premium Diesel",Color(248,154,53),1,0.25,150)
  146. zrush.f.CreateFuelTypes("Premium Ultra Diesel",Color(255,68,31),1,0.10,2500)
  147. ///////////////////////
  148.  
  149.  
  150.  
  151. // Oil Hole Settings
  152. ///////////////////////
  153. // OilSource Registration
  154. /*
  155.     Values for this are
  156.     Chance (1-100)   : The Chance of getting this Hole
  157.     Depth             : How many pipes it will need
  158.     Burnchance (1-100) : how high the chance is that it needs to be burned after hitting the oil
  159.     gasmin           : how much gas is in the Hole minimum
  160.     gasmax           : how much gas is in the Hole at maximum
  161.     oilmin           : how much oil is in the Hole minimum
  162.     oilmax           : how much oil is in the Hole at maximum
  163.     ChaosEventChance   : The Chance of the Machine do have a OverHeat/Jam -Event when working on this OilSource (This gets added do the Base OverHeat/Jam -Chance of the machine)
  164. */
  165. zrush.f.CreateOilSource(50,25,7,100,500,300,1000,5)
  166. zrush.f.CreateOilSource(25,40,15,500,800,600,2000,10)
  167. zrush.f.CreateOilSource(25,45,75,500,1000,1500,4000,20)
  168. ///////////////////////
  169.  
  170.  
  171.  
  172. // AbilityModules
  173. ///////////////////////
  174. // Here you can creates new Modules
  175. /*
  176. zrush.f.CreateAbilityModule(
  177.     Name,
  178.     Type,
  179.     BoostAmount % or PipeCount,
  180.     Description,
  181.     Price,
  182.     AllowedRanks, Leave Empty do remove check
  183.     AllowedJobs, Leave Empty do remove check
  184.     Color
  185. )
  186. */
  187.  
  188. zrush.f.CreateAbilityModule("Speed Boost","SpeedBoost",0.15,"Increases the Speed of the Machine a bit.",2000, {},{},Color(255,201,71))
  189. zrush.f.CreateAbilityModule("Production Boost","ProductionBoost",0.30,"Increases the production amount of the machine a bit.",2000, {},{},Color(255,201,71))
  190. zrush.f.CreateAbilityModule("AntiJam Boost","AntiJamBoost",0.30,"Reduces the chance of jamming the machine a bit.",2000, {},{},Color(255,201,71))
  191. zrush.f.CreateAbilityModule("Cooling Boost","CoolingBoost",0.30,"Reduces the chance of OverHeating the machine a bit.",2000, {},{},Color(255,201,71))
  192. zrush.f.CreateAbilityModule("Extra Pipes","ExtraPipes",4,"Adds some extra Space for Pipes in the Queue.",2000, {},{},Color(255,201,71))
  193. zrush.f.CreateAbilityModule("Refining Boost","RefineBoost",0.2,"Increases the refined Fuel amount a bit.",2000, {},{},Color(255,201,71))
  194.  
  195. zrush.f.CreateAbilityModule("Donor Speed Boost","SpeedBoost",0.25,"Injects High Quallity Oil in the Machine which increases the Speed.",6000, {"donator","superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,136,71))
  196. zrush.f.CreateAbilityModule("Donor Production Boost","ProductionBoost",0.50,"Integrates a Intel CPU in the Machine which improves the Logistic",6000, {"donator","superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,136,71))
  197. zrush.f.CreateAbilityModule("Donor AntiJam Boost","AntiJamBoost",0.50,"Reduces the chance of jamming the machine.",6000, {"donator","superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,136,71))
  198. zrush.f.CreateAbilityModule("Donor Cooling Boost","CoolingBoost",0.50,"Reduces the chance of OverHeating the machine.",6000, {"donator","superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,136,71))
  199. zrush.f.CreateAbilityModule("Donor Extra Pipes","ExtraPipes",6,"Adds much extra Space for Pipes in the Queue.",6000, {"donator","superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,136,71))
  200. zrush.f.CreateAbilityModule("Donor Refining Boost","RefineBoost",0.4,"Increases the refined Fuel amount a lot.",6000, {"donator","superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,136,71))
  201.  
  202. zrush.f.CreateAbilityModule("S-Donor Speed Boost","SpeedBoost",0.9,"Injects Quantum Oil in the Machine which increases the Speed by a lot.",9000, {"superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,71,71))
  203. zrush.f.CreateAbilityModule("S-Donor Production Boost","ProductionBoost",2,"A special form of AI do improve the Logistic of the Machine by a lot.",9000, {"superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,71,71))
  204. zrush.f.CreateAbilityModule("S-Donor AntiJam Boost","AntiJamBoost",0.90,"Reduces the chance of jamming the machine by a lot.",9000, {"superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,71,71))
  205. zrush.f.CreateAbilityModule("S-Donor Cooling Boost","CoolingBoost",0.90,"Reduces the chance of OverHeating the machine by a lot.",9000, {"superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,71,71))
  206. zrush.f.CreateAbilityModule("S-Donor Extra Pipes","ExtraPipes",12,"Adds really much extra Space for Pipes in the Queue.",9000, {"superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,71,71))
  207. zrush.f.CreateAbilityModule("S-Donor Refining Boost","RefineBoost",2,"Increases the refined Fuel amount xtreme.",9000, {"superdonator","tmod","donormod","moderator","donoradmin","admin","super_admin","superadmin","headofstaff","developer","partner","owner"},{},Color(255,71,71))
  208. ///////////////////////
  209.  
  210.  
  211.  
  212. // Default Machine Settings
  213. ///////////////////////
  214. zrush.config.Machine = zrush.config.Machine  || {}
  215.  
  216. //MachineCrate
  217. zrush.config.Machine["MachineCrate"] = {
  218.     AllowSell = true // Do we allow that other players can sell your machine if its in the crate? (Only works if zrush.config.EquipmentSharing = false)
  219. }
  220.  
  221. //DrillHole
  222. zrush.config.Machine["DrillHole"] = {
  223.     RandomColor = true, // Do we want that the drillhole spawns with a random color?
  224.     CustomColor = Color(200,45,45), // If the above is false then we spawn them with this color
  225.     PostCooldown = 60, // This is the time in seconds before it gets removed after its used(Only used in zrush.config.Drill_Mode = 0)
  226.     Cooldown = 600, // This makes sure unused drillholes get removed (Only used in zrush.config.Drill_Mode = 0) (Set to -1 to Disable it)
  227.     ButanGas_Speed = 1, // Interval in seconds it takes do emit gas and inflict damage
  228.     ButanGas_Damage = 1, // How much damage inflict the Butan Gas from the DrillHole on Players per Second
  229.     ButanGas_DamageRadius = 100, // The radius at which a players get damage from gas
  230. }
  231.  
  232. //Drill
  233. zrush.config.Machine["Drill"] = {
  234.     Module_Sockets = 3 , // (1-3) How many module sockets does the machine have
  235.     Speed = 25, //(seconds) How long does it take do drill one Pipe
  236.     MaxHoldPipes = 3, // How many pipes can the machine hold by default
  237.     JamChance = 60, // % How High is the Chance that the Machine will Jam (There are extra % that get added later depending on the oilsource)
  238.     SearchRadius = 250, // The radius at which the DrillTower searches for a free OilSpot
  239.     NewDrillRadius = 300, // The Distance at which we allow a new drill hole do get created (This should be big enough do make sure the entitys dont glitch in one another)
  240.     Health = 150, // The health of the Entity
  241. }
  242.  
  243. //Burner
  244. zrush.config.Machine["Burner"] = {
  245.     Module_Sockets = 3 , // (1-3) How many module sockets does the machine have
  246.     Speed = 2, // How long does one burn take in seconds
  247.     Amount = 2, // How much gas get removed per Burn
  248.     OverHeat_Chance = 60, // %   How high is the chance for the machine do overheat? (There are extra % that get added later depending on the oilsource)
  249.     OverHeat_Countown = 15, // (seconds) How long until it changes from OverHeating to exploding?
  250.     OverHeat_Radius = 200, //The damage the explosion does do a player
  251.     OverHeat_Damage = 25, //The damage the explosion does do a player
  252.     Health = 100, // The health of the Entity
  253. }
  254.  
  255. //Pump
  256. zrush.config.Machine["Pump"] = {
  257.     Module_Sockets = 3 , // (1-3) How many module sockets does the machine have
  258.     Speed = 10, // seconds  How long is one pump action
  259.     Amount = 3, // units How much oil do we get per pump
  260.     JamChance = 60, // % How High is the Base Chance that the Machine will Jam (There are extra % that get added later depending on the oilsource)
  261.     Health = 150, // The health of the Entity
  262. }
  263.  
  264. //Refinery
  265. zrush.config.Machine["Refinery"] = {
  266.     Module_Sockets = 4 , // (1-4) How many module sockets does the machine have
  267.     Speed = 3, // seconds
  268.     Amount = 1, // How much Oil it takes in
  269.     OverHeat_Chance = 60, // % How high is the base chance for the machine do overheat? (There are extra % that get added later depending on the oilsource)
  270.     OverHeat_Countown = 15, // (seconds) How long until changes from OverHeating to exploding?
  271.     OverHeat_Radius = 200, //The damage the explosion does do a player
  272.     OverHeat_Damage = 25, //The damage the explosion does do a player
  273.     Health = 150, // The health of the Entity
  274. }
  275.  
  276. //Barrel
  277. zrush.config.Machine["Barrel"] = {
  278.     Storage = 160, // How much liquid can a barrel store
  279.     Health = 75, // The health of the Entity
  280. }
  281. ///////////////////////
  282.  
  283.  
  284. // Machine Shop
  285. ///////////////////////
  286. //zrush.f.CreateMachineShopItem(Name,Price,Class,Model,MachineID)
  287. zrush.f.CreateMachineShopItem("Drill Tower",5000,"zrush_drilltower","models/zerochain/props_oilrush/zor_drilltower.mdl","Drill")
  288. zrush.f.CreateMachineShopItem("Burner",5000,"zrush_burner","models/zerochain/props_oilrush/zor_drillburner.mdl","Burner")
  289. zrush.f.CreateMachineShopItem("Pump",5000,"zrush_pump","models/zerochain/props_oilrush/zor_oilpump.mdl","Pump")
  290. zrush.f.CreateMachineShopItem("Refinery",15000,"zrush_refinery","models/zerochain/props_oilrush/zor_refinery.mdl","Refinery")
  291. ///////////////////////
Advertisement
Add Comment
Please, Sign In to add comment