Guest User

Untitled

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