Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //LITHIUM PRINTERS CONFIG
- //by 2REK(steam: przemo0434) September 2016
- //Note that editing default mechanics may result in weird things happening with the printers.
- //Please use responsibly.
- //Tip: don't create "custerfuck" situations
- //ex. raise storage upgrade size without raising maximum storage of printers.
- lithiumEconomic = {}
- lithiumBronze = {}
- lithiumIron = {}
- lithiumSilver = {}
- lithiumObsidian = {}
- lithiumDonator = {}
- lithiumRack = {}
- lithiumUpgrades = {}
- //
- // PRINTER SETUP HERE
- //
- lithiumDonator = {
- printerDelay = 30, //change this value to edit print time
- printerPrint = 125, //change this value to edit print value
- printerStorage = 5000, //change this value to edit printer base storage
- printerHealth = 100, //change this value to edit printer health
- printerMoneyPerLevel = 100, //change this value to edit printer money per level gain
- //Default printer mechanics settings . You are changing values on your own responsibility
- printerMaxUpgrades = 5 , //change this value to edit printer maximum upgrades
- //this printer system was designed for maximum of 3 upgrades per printer
- printerMinimumDelay = 10 , //this value edits the minimal time it takes to print.
- //Delay can't go lower than that value
- printerMaxExp = 100, //this value sets the exp needed to get to next level
- //
- expPerCycle = 1, //this value sets the exp gained with each print cycle
- //shouldn't be bigger then 'printerMaxExp'
- printerMaxLvl = 50, //this value sets the max possible level of printer,
- //note that at some point new levels wont add more benefits
- //
- printerMalfunctionRate = 0.01, //this value sets chance printer malfunction
- //
- printerMalfunctionValueA = 0.1, //this values set the percentage of money that will be left
- printerMalfunctionValueB = 0.5, //after malfunction. so the money left will be beetween value A and B
- //
- printerOverheatRate = 5, //this value sets the temperature gain for printer each print cycle
- //
- printerOverheatTimer = 30, //this value sets how long it takes for printer to cooldown after overheat
- //
- printerCoolingTimer = 5, //this value sets interval between each "cooling cycle" when printer is turned off
- //
- printerCoolingFactor = 5, //this value sets how much printer will cool each "cooling cycle"
- }
- lithiumEconomic = {
- printerDelay = 35,
- printerPrint = 100,
- printerStorage = 1000,
- printerHealth = 100,
- printerMoneyPerLevel = 10,
- //default mechanics
- printerMaxUpgrades = 0,
- printerMinimumDelay = 10,
- printerMaxExp = 100,
- expPerCycle = 1,
- printerMaxLvl = 50,
- //MALFUNCTIONS
- printerMalfunctionRate = 0.05,
- printerMalfunctionValueA = 0.1,
- printerMalfunctionValueB = 0.5,
- //OVERHEATS
- printerOverheatRate = 5,
- printerOverheatTimer = 30,
- printerCoolingTimer = 5,
- printerCoolingFactor = 5,
- }
- lithiumBronze = {
- printerDelay = 35,
- printerPrint = 200,
- printerStorage = 1000,
- printerHealth = 100,
- printerMoneyPerLevel = 50,
- //default mechanics
- printerMaxUpgrades = 1,
- printerMinimumDelay = 10,
- printerMaxExp = 100,
- expPerCycle = 1,
- printerMaxLvl = 50,
- //MALFUNCTIONS
- printerMalfunctionRate = 0.05,
- printerMalfunctionValueA = 0.1,
- printerMalfunctionValueB = 0.5,
- //OVERHEATS
- printerOverheatRate = 5,
- printerOverheatTimer = 30,
- printerCoolingTimer = 5,
- printerCoolingFactor = 5,
- }
- lithiumIron = {
- printerDelay = 35,
- printerPrint = 250,
- printerStorage = 1250,
- printerHealth = 100,
- printerMoneyPerLevel = 100,
- //default mechanics
- printerMaxUpgrades = 2,
- printerMinimumDelay = 10,
- printerMaxExp = 100,
- expPerCycle = 1,
- printerMaxLvl = 50,
- //MALFUNCTIONS
- printerMalfunctionRate = 0.05,
- printerMalfunctionValueA = 0.1,
- printerMalfunctionValueB = 0.5,
- //OVERHEATS
- printerOverheatRate = 5,
- printerOverheatTimer = 30,
- printerCoolingTimer = 5,
- printerCoolingFactor = 5,
- }
- lithiumSilver = {
- printerDelay = 40,
- printerPrint = 400,
- printerStorage = 1600,
- printerHealth = 100,
- printerMoneyPerLevel = 150,
- //default mechanics
- printerMaxUpgrades = 2,
- printerMinimumDelay = 10,
- printerMaxExp = 100,
- expPerCycle = 1,
- printerMaxLvl = 50,
- //MALFUNCTIONS
- printerMalfunctionRate = 0.05,
- printerMalfunctionValueA = 0.1,
- printerMalfunctionValueB = 0.5,
- //OVERHEATS
- printerOverheatRate = 5,
- printerOverheatTimer = 30,
- printerCoolingTimer = 5,
- printerCoolingFactor = 5,
- }
- lithiumObsidian = {
- printerDelay = 60,
- printerPrint = 500,
- printerStorage = 1500,
- printerHealth = 100,
- printerMoneyPerLevel = 200,
- //default mechanics
- printerMaxUpgrades = 3,
- printerMinimumDelay = 10,
- printerMaxExp = 100,
- expPerCycle = 1,
- printerMaxLvl = 50,
- //MALFUNCTIONS
- printerMalfunctionRate = 0.05,
- printerMalfunctionValueA = 0.1,
- printerMalfunctionValueB = 0.5,
- //OVERHEATS
- printerOverheatRate = 5,
- printerOverheatTimer = 30,
- printerCoolingTimer = 5,
- printerCoolingFactor = 5,
- }
- //RACK SETUP
- lithiumRack = {
- isDestructible = true, //set to false if you want rack to be indestructible, default is true
- rackHealth = 500, //printer rack health, default is 100
- }
- lithiumUpgrades = {
- //STORAGE SETUP
- smallStorage = 1000,
- mediumStorage = 3000,
- largeStorage = 5000,
- maximumPossibleStorage = 10000, // this is the possible maxium storage of printers,
- // values wont go above this
- //COOLER SETUP
- smallCooler = 2,
- mediumCooler = 3,
- largeCooler = 4,
- minimumPossibleCooling = 10, // this is the possible minimum time of PRODUCTION
- // vales wont go below this
- //POWER SETUP
- smallPower = 1.05,
- mediumPower = 1.1,
- largePower = 1.15,
- //OVERCLOCKER SETUP
- smallOverclocker = 10,
- mediumOverclocker = 20,
- largeOverclocker = 30,
- minimalPossibleExp = 40, // this is minimal exp that will be needed for printer to level up
- // values wont go below this
- //NEW IN 1.4 PATCH
- //SILENCER SETUP
- defaultVolume = 80,
- smallSilencer = 10,
- mediumSilencer = 20,
- largeSilencer = 30,
- minimalPossibleVol = 40, //this is minimal volume that printer can achieve during printing,
- // volume wont go below this
- //NEW IN 1.5 PATCH
- //CONVERTER SETUP
- conversionType = 2, //1 - production to xp, 2 - xp to production
- //note that only one converter is possible to be installed in a printer, this won't be changed
- conversionRate = 0.10,//Sets how much of production/xp is converted (in %, 1 - 100%; 0.5 - 50% etc.)
- conversionValue = 50,//Sets how much money is one xp point worth.
- //FUSE SETUP
- fuseType = 1, //1 - once installed fuse will stay forever, 2 - fuse will be destroyed after it exceeds fuseCharges limit
- fuseCharges = 2, //this value sets the maximum uses of one fuse before fuse is destroyed and needs to be purchased and installed again
- //this value is used ONLY when fuseType is set to 2
- }
- if CLIENT then
- surface.CreateFont( "PrintersUpgradeFont", {
- font = "DermaDefault",
- size = 32*6,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersSmallFont1", {
- font = "DermaDefault",
- size = 24*6,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersPrimaryFont", {
- font = "DermaDefault",
- size = 54,
- weight = 1,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "Printerse0a932def7b941b30c2b3eb67fe386733cc1759538e7815f966397cbee85a38fFont", {
- font = "DermaDefault",
- size = 54,
- weight = 1,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersSmallFont", {
- font = "DermaDefault",
- size = 50,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersNickFont", {
- font = "DermaDefault",
- size = 64,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- surface.CreateFont( "PrintersVerySmallFont", {
- font = "DermaDefault",
- size = 38,
- weight = 600,
- antialias = true,
- shadow = true,
- } )
- end
- timer.Simple(0.1, function()
- DarkRP.createCategory{
- name = "Drukatron3000 - Drukarki",
- categorises = "entities",
- startExpanded = false,
- color = Color(130, 130, 130, 155),
- canSee = function(ply) return true end,
- sortOrder = 100,
- }
- DarkRP.createCategory{
- name = "Drukatron3000 - Akcesoria",
- categorises = "entities",
- startExpanded = false,
- color = Color(130, 130, 130, 155),
- canSee = function(ply) return true end,
- sortOrder = 100,
- }
- DarkRP.createEntity( "Ekonomiczna Drukarka", {
- ent = "lithium_econsadomic_printer",
- model = "models/2rek/printers/printer_3.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumprintereconomic",
- category = "Drukatron3000 - Drukarki",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Brązowa Drukarka", {
- ent = "lithium_bronze_printer",
- model = "models/2rek/printers/printer_5.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumprinterbronze",
- category = "Drukatron3000 - Drukarki",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Stalowa Drukarka", {
- ent = "lithium_iron_printer",
- model = "models/2rek/printers/printer_1.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumprinteriron",
- category = "Drukatron3000 - Drukarki",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Srebrna Drukarka", {
- ent = "lithium_silver_printer",
- model = "models/2rek/printers/printer_2.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumprintersilver",
- category = "Drukatron3000 - Drukarki",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Obsydianowa Drukarka", {
- ent = "lithium_obsidian_printer",
- model = "models/2rek/printers/printer_4.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumprinterobsidian",
- category = "Drukatron3000 - Drukarki",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Premium Drukarka [VIP]", {
- ent = "lithium_donator_printer",
- model = "models/2rek/printers/printer_6.mdl",
- price = 30000,
- max = 2,
- cmd = "buylithiumprinterdonator",
- category = "Drukatron3000 - Drukarki",
- sortOrder = 90,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"vip", "svip", "moderator", "admin", "superadmin"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "Ta praca jest dla rangi VIP!",
- } )
- DarkRP.createEntity( "Small Storage", {
- ent = "lithium_storage_small",
- model = "models/2rek/printers/storage_small.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumsmallstorage",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Medium Storage", {
- ent = "lithium_storage_medium",
- model = "models/2rek/printers/storage_medium.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiummediumstorage",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Large Storage", {
- ent = "lithium_storage_large",
- model = "models/2rek/printers/storage_large.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumLargestorage",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Small Cooler", {
- ent = "lithium_cooler_small",
- model = "models/2rek/printers/cooler_small.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumsmallcooler",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Medium Cooler", {
- ent = "lithium_cooler_medium",
- model = "models/2rek/printers/cooler_medium.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiummediumcooler",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Large Cooler", {
- ent = "lithium_cooler_large",
- model = "models/2rek/printers/cooler_large.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumlargecooler",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Small Overclocker", {
- ent = "lithium_overclocker_small",
- model = "models/2rek/printers/overclocker_small.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumsmalloverclocker",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Medium Overclocker", {
- ent = "lithium_overclocker_medium",
- model = "models/2rek/printers/overclocker_medium.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiummediumoverclocker",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Large Overclocker", {
- ent = "lithium_overclocker_large",
- model = "models/2rek/printers/overclocker_large.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumlargeoverclocker",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Small Power", {
- ent = "lithium_power_small",
- model = "models/2rek/printers/power_small.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumsmallpower",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Medium Power", {
- ent = "lithium_power_medium",
- model = "models/2rek/printers/power_medium.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiummediumpower",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Large Power", {
- ent = "lithium_power_large",
- model = "models/2rek/printers/power_large.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumlargepower",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Printer Rack", {
- ent = "lithium_printer_rack",
- model = "models/2rek/printers/printer_rack.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumprinterrack",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Small soundproof panel", {
- ent = "lithium_silencer_small",
- model = "models/2rek/printers/lithium_silencer.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumsmallsilencer",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Medium soundproof panel", {
- ent = "lithium_silencer_medium",
- model = "models/2rek/printers/lithium_silencer.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiummediumsilencer",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Large soundproof panel", {
- ent = "lithium_silencer_large",
- model = "models/2rek/printers/lithium_silencer.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumlargesilencer",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Converter", {
- ent = "lithium_converter",
- model = "models/2rek/printers/lithium_converter.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumconverter",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- DarkRP.createEntity( "Fuse", {
- ent = "lithium_fuse",
- model = "models/2rek/printers/lithium_fuse.mdl",
- price = 1250,
- max = 2,
- cmd = "buylithiumfuse",
- category = "Drukatron3000 - Akcesoria",
- sortOrder = 90,
- } )
- sound.Add( {
- name = "lithium_printer_print",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume,
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_print_level1",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume-(lithiumUpgrades.defaultVolume*(lithiumUpgrades.smallSilencer/100)),
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_print_level2",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume-(lithiumUpgrades.defaultVolume*(lithiumUpgrades.mediumSilencer/100)),
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_print_level3",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume-(lithiumUpgrades.defaultVolume*(lithiumUpgrades.largeSilencer/100)),
- pitch = { 95, 110 },
- sound = "ambient/levels/labs/equipment_printer_loop1.wav"
- } )
- sound.Add( {
- name = "lithium_printer_beep",
- channel = CHAN_STATIC,
- volume = 0.2,
- level = lithiumUpgrades.defaultVolume,
- pitch = { 95, 110 },
- sound = "buttons/blip1.wav"
- } )
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement