Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zrush = zrush || {}
- zrush.config = zrush.config || {}
- zrush.f = zrush.f || {}
- /////////////////////////////////////////////////////////////////////////////
- // Owned by 76561198118780053
- // Version 1.0.8e
- /////////////////////////////////////////////////////////////////////////////
- // Developed by ZeroChain:
- // http://steamcommunity.com/id/zerochain/
- // https://www.gmodstore.com/users/view/76561198013322242
- // If you wish to contact me:
- // clemensproduction@gmail.com
- /////////////////////////////////////////////////////////////////////////////
- //////////////BEFORE YOU START BE SURE TO READ THE README.TXT//////////////
- /////////////////////////////////////////////////////////////////////////////
- // General
- ///////////////////////
- // This switches between fast download and workshop
- zrush.config.EnableResourceAddfile = false
- // Do we want do use the HD pack (100MB) or the Normal Pack (40MB)
- zrush.config.WorkshopHDPack = true
- // What language do we want? en,de,hu,fr,es,pl,cn,ru
- zrush.config.selectedLanguage = "fr"
- // What gamemode are we using
- zrush.config.selectedGamemode = "DarkRP"
- // DarkRP
- // BaseWars
- // NutScript
- // The Currency
- zrush.config.Currency = "$"
- // The Unit of Measurement
- zrush.config.UoM = "l" // liter
- // These Ranks are allowed do use the save command !savezrush
- zrush.config.allowedRanks = {
- "superadmin"
- }
- // If this is true then we use Inheritance in the RankCheck function
- zrush.config.RankInheritance = true
- // This disables the owner checks and allows every player do use each others entitys
- zrush.config.EquipmentSharing = false
- // Should the machines be all NoCollide with the players do make sure the players dont get stuck by mistake?
- zrush.config.machine_NoCollide = true
- // Player data
- zrush.config.player = {
- DropFuelOnDeath = true, // Should the player drop all of the Fuel Barrels he has in his Zrush inventory when he dies?
- MaxActiveDrillHoles = 2,// How many acitve drillholes is the player allowed do have?
- FuelInvSize = 10 // How many barrels can the player transport in his inventory?
- }
- // The Interval of the EventManager
- zrush.config.EventManager_Interval = 30 // seconds
- // The money you get when you sell your machines or modules again
- zrush.config.SellValue = 0.5 // You get 50% of the original price
- // Do we have VCMod installed? (This enables the user do extract VCMod Jerry Cans from Fuel Barrels)
- zrush.config.VCMod = true
- // If enabled this checks if the player has the correct rank to pickup the FuelBarrel
- zrush.config.BarrelRank_PickUpCheck = true
- // If enabled this checks if the player is the owner of the FuelBarrel before picking it up
- zrush.config.BarrelOwner_PickUpCheck = true
- // The system which is used do place machines
- zrush.config.MachineBuilder = {
- AcceptKey = MOUSE_LEFT, // The Button which complets the action
- CancelKey = MOUSE_RIGHT, // The Button which cancels the action
- // See http://wiki.garrysmod.com/page/Enums/BUTTON_CODE
- }
- // How should the drilling work?
- // 0 = The DrillTower dont needs a oilspots and can be placed everywhere
- // 1 = The DrillTower can only be placed on OilSpots and OilSpots Refresh after use (OilSpots need do be placed by an Admin)
- // 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)
- zrush.config.Drill_Mode = 2
- // The Fuel Buyer data
- zrush.config.FuelBuyer = {
- Model = "models/odessa.mdl", // The Model
- NotifyImage = "entities/npc_odessa.png", // The Dialogbox Image
- SellAmount = 50, // The Amount the player can sell at once
- RefreshRate = 300, // How often should the fuel marked change in seconds
- MaxBuyRate = 100, //% The Max Sell Multiplicator you can get (100 is the Base Price, More means + Profit , Less means - Profit)
- MinBuyRate = 75, //% The Min Sell Multiplicator you can get
- anim_idle = {"idle_angry","idle_subtle"}, // The idle animations of the npc
- anim_sell = {"takepackage","cheer1","cheer2"}, // The sell animation of the npc
- names = {"Daniel","Martin","Claude","Gilles","Hector"}, // Just do give them a little Character :I
- Capabilities = false, // Settings this to false can improve the performance a bit
- }
- zrush.config.VrondakisLevelSystem = false
- // Only works if you have Vrondakis LevelSystem installed
- zrush.config.Vrondakis = {}
- zrush.config.Vrondakis["Selling"] = {XP = 25} // XP per Sold Unit (5l/gal == 5XP)
- zrush.config.Vrondakis["DrillingPipe"] = {XP = 100} // XP per drilled down Pipe
- zrush.config.Vrondakis["BurningGas"] = {XP = 25} // XP per burned gas unit
- zrush.config.Vrondakis["ReachingOil"] = {XP = 200} // XP when reaching Oil
- zrush.config.Vrondakis["PumpingOil"] = {XP = 25} // XP per pumped out Oil (5l/gal == 5XP)
- zrush.config.Vrondakis["RefiningOil"] = {XP = 25} // XP per refined unit of Oil (5l/gal == 5XP)
- zrush.config.Debug = false
- ///////////////////////
- // OilSpots
- ///////////////////////
- zrush.config.OilSpot = {
- 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
- }
- zrush.config.OilSpot_Generator = {
- Rate = 3, // The rate in seconds the generator tries do spawn a new OilSpot if possible
- MaxOilSpots = 3, // The Max count of valid oilspots a generator can have
- 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
- 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
- }
- ///////////////////////
- // Fuel Settings
- ///////////////////////
- // Fuel Registration
- /*
- Values for this are
- Name : The Name of the Fuel
- FuelColor : The Color of the Fuel
- VCmodfuel (0||1) : What VC Mod fuel is it (Petrol or Diesel) (Only usefull if you have VCMod installed!)
- RefineOutput : How much Fuel do we get from the refined Oil (0.5 = 50%)
- BasePrice : The Start Sell Price of the Fuel per Unit (Liter,etc..)
- Ranks : The Ranks which are allowed do refine this Fuel
- */
- zrush.f.CreateFuelTypes("Pétrol régulier",Color(211,190,255),0,0.55,15,{})
- zrush.f.CreateFuelTypes("Pétrol premium",Color(255,236,110),0,0.25,125,{})
- zrush.f.CreateFuelTypes("Pétrol ultra",Color(211,255,149),0,0.10,1000,{"VIP", "Chef-staff"})
- zrush.f.CreateFuelTypes("Diesel régulier",Color(255,227,190),1,0.55,20,{})
- zrush.f.CreateFuelTypes("Diesel premium",Color(248,154,53),1,0.25,150,{})
- zrush.f.CreateFuelTypes("Diesel ultra",Color(255,68,31),1,0.10,1200,{"superadmin", "zowie"})
- ///////////////////////
- // Oil Hole Settings
- ///////////////////////
- // OilSource Registration
- /*
- Values for this are
- Chance (1-100) : The Chance of getting this Hole
- Depth (25) : How many pipes it will need
- Burnchance (1-100) : how high the chance is that it needs to be burned after hitting the oil
- gasmin : how much gas is in the Hole minimum
- gasmax : how much gas is in the Hole at maximum
- oilmin 800 : how much oil is in the Hole minimum
- oilmax 1300 : how much oil is in the Hole at maximum
- 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)
- */
- zrush.f.CreateOilSource(50,25,7,100,500,300,1000,5)
- zrush.f.CreateOilSource(3,40,15,500,800,600,2000,10)
- zrush.f.CreateOilSource(3,45,75,500,1000,1500,4000,20)
- ///////////////////////
- // AbilityModules
- ///////////////////////
- // Here you can creates new Modules
- /*
- zrush.f.CreateAbilityModule(
- Name,
- Type,
- BoostAmount % or PipeCount,
- Description,
- Price,
- AllowedRanks, Leave Empty do remove check
- AllowedJobs, Leave Empty do remove check
- Color
- )
- */
- zrush.f.CreateAbilityModule("Speed Boost","SpeedBoost",0.70,"Increases the Speed of the Machine a bit.",2000, {},{},Color(255,201,71))
- zrush.f.CreateAbilityModule("Production Boost","ProductionBoost",0.50,"Increases the production amount of the machine a bit.",2000, {},{},Color(255,201,71))
- zrush.f.CreateAbilityModule("AntiJam Boost","AntiJamBoost",0.50,"Reduces the chance of jamming the machine a bit.",2000, {},{},Color(255,201,71))
- zrush.f.CreateAbilityModule("Cooling Boost","CoolingBoost",0.50,"Reduces the chance of OverHeating the machine a bit.",2000, {},{},Color(255,201,71))
- zrush.f.CreateAbilityModule("Extra Pipes","ExtraPipes",8,"Adds some extra Space for Pipes in the Queue.",2000, {},{},Color(255,201,71))
- zrush.f.CreateAbilityModule("Refining Boost","RefineBoost",0.50,"Increases the refined Fuel amount a bit.",2000, {},{},Color(255,201,71))
- 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))
- 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))
- 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))
- 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))
- 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))
- 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))
- 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))
- 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))
- 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))
- 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))
- zrush.f.CreateAbilityModule("Xtreme Extra Pipes","ExtraPipes",12,"Adds really much extra Space for Pipes in the Queue.",9000, {"","superadmin"},{},Color(255,71,71))
- zrush.f.CreateAbilityModule("Xtreme Refining Boost","RefineBoost",2,"Increases the refined Fuel amount xtreme.",9000, {"","superadmin"},{},Color(255,71,71))
- ///////////////////////
- // Default Machine Settings
- ///////////////////////
- zrush.config.Machine = zrush.config.Machine || {}
- //MachineCrate
- zrush.config.Machine["MachineCrate"] = {
- AllowSell = false // Do we allow that other players can sell your machine if its in the crate? (Only works if zrush.config.EquipmentSharing = false)
- }
- //DrillHole
- zrush.config.Machine["DrillHole"] = {
- RandomColor = true, // Do we want that the drillhole spawns with a random color?
- CustomColor = Color(200,45,45), // If the above is false then we spawn them with this color
- PostCooldown = 60, // This is the time in seconds before it gets removed after its used(Only used in zrush.config.Drill_Mode = 0)
- Cooldown = 600, // This makes sure unused drillholes get removed (Only used in zrush.config.Drill_Mode = 0) (Set to -1 to Disable it)
- ButanGas_Speed = 1, // Interval in seconds it takes do emit gas and inflict damage
- ButanGas_Damage = 1, // How much damage inflict the Butan Gas from the DrillHole on Players per Second
- ButanGas_DamageRadius = 100, // The radius at which a players get damage from gas
- }
- //Drill
- zrush.config.Machine["Drill"] = {
- Module_Sockets = 3 , // (1-3) How many module sockets does the machine have
- Speed = 25, //(seconds) How long does it take do drill one Pipe
- MaxHoldPipes = 3, // How many pipes can the machine hold by default
- JamChance = 60, // % How High is the Chance that the Machine will Jam (There are extra % that get added later depending on the oilsource)
- SearchRadius = 250, // The radius at which the DrillTower searches for a free OilSpot
- 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)
- Health = 150, // The health of the Entity
- }
- //Burner
- zrush.config.Machine["Burner"] = {
- Module_Sockets = 3 , // (1-3) How many module sockets does the machine have
- Speed = 2, // How long does one burn take in seconds
- Amount = 2, // How much gas get removed per Burn
- OverHeat_Chance = 60, // % How high is the chance for the machine do overheat? (There are extra % that get added later depending on the oilsource)
- OverHeat_Countown = 15, // (seconds) How long until it changes from OverHeating to exploding?
- OverHeat_Radius = 200, //The damage the explosion does do a player
- OverHeat_Damage = 25, //The damage the explosion does do a player
- Health = 100, // The health of the Entity
- }
- //Pump
- zrush.config.Machine["Pump"] = {
- Module_Sockets = 3 , // (1-3) How many module sockets does the machine have
- Speed = 10, // seconds How long is one pump action
- Amount = 3, // units How much oil do we get per pump
- JamChance = 60, // % How High is the Base Chance that the Machine will Jam (There are extra % that get added later depending on the oilsource)
- Health = 150, // The health of the Entity
- }
- //Refinery
- zrush.config.Machine["Refinery"] = {
- Module_Sockets = 4 , // (1-4) How many module sockets does the machine have
- Speed = 3, // seconds
- Amount = 1, // How much Oil it takes in
- 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)
- OverHeat_Countown = 15, // (seconds) How long until changes from OverHeating to exploding?
- OverHeat_Radius = 200, //The damage the explosion does do a player
- OverHeat_Damage = 25, //The damage the explosion does do a player
- Health = 150, // The health of the Entity
- }
- //Barrel
- zrush.config.Machine["Barrel"] = {
- Storage = 160, // How much liquid can a barrel store
- Health = 75, // The health of the Entity
- }
- ///////////////////////
- // Machine Shop
- ///////////////////////
- //zrush.f.CreateMachineShopItem(Name,Price,Class,Model,MachineID)
- zrush.f.CreateMachineShopItem("Drill Tower",1500,"zrush_drilltower","models/zerochain/props_oilrush/zor_drilltower.mdl","Drill")
- zrush.f.CreateMachineShopItem("Burner",750,"zrush_burner","models/zerochain/props_oilrush/zor_drillburner.mdl","Burner")
- zrush.f.CreateMachineShopItem("Pump",2000,"zrush_pump","models/zerochain/props_oilrush/zor_oilpump.mdl","Pump")
- zrush.f.CreateMachineShopItem("Refinery",6000,"zrush_refinery","models/zerochain/props_oilrush/zor_refinery.mdl","Refinery")
- ///////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement