Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.64 KB | None | 0 0
  1. GIndustrial.CFG = GIndustrial.CFG or {}
  2.  
  3. GIndustrial.CFG.ChatPrefixColor = Color(0,255,63,255) // Chat prefix color
  4. GIndustrial.CFG.PowerColor = Color(225,255,0,255) -- General color that gU is shown in
  5. GIndustrial.CFG.NPCText = "Industrial Marketplace"
  6. GIndustrial.CFG.NPCModel = "models/Humans/Group01/male_07.mdl"
  7. GIndustrial.CFG.NPCTextColor = Color(225,255,255,255) // You may leave this as rainbow, or set it to a color such as blue which is Color(0,0,255)
  8. GIndustrial.CFG.NPCSavingGroups = {
  9. ["superadmin"] = true,
  10. ["founder"] = true
  11. }
  12. GIndustrial.CFG.NPCSoldText = {
  13. {"Oooooh shiny.... here take this and get out of here! (He hands you %s)", ""},
  14. {"Finally, what took you so god damn long, gimme! (He hands you %s)", ""},
  15. {"Wow thanks, here's your %s", ""}
  16. } // The phrases the NPC will say when you sell to him, the second value is the sound it plays (can be left blank for no sound)
  17. GIndustrial.CFG.NPCNothingToSellText = {
  18. {"Go away, go get me some minerals!", ""},
  19. {"Get the heck out of here!", ""}
  20. } // What if the player doesn't have squat to sell ? The second value is the sound it plays (can be left blank for no sound)
  21. // The following lines are for packages, NOT minerals
  22. GIndustrial.CFG.NPCSoldPackageText = {
  23. {"Finally, now I can deliver these, next time don't take so long! (He hands you %s)", ""},
  24. {"Awesome, been waiting for these packages forever! (He hands you %s)", ""},
  25. {"Wow thanks, here's your %s", ""}
  26. } // The phrases the NPC will say when you sell to him, the second value is the sound it plays (can be left blank for no sound)
  27. GIndustrial.CFG.NPCNothingPackageToSellText = {
  28. {"Go away, go do your damn job and get my packages!", ""},
  29. {"Get the heck out of here, lazy head!", ""}
  30. } // What if the player doesn't have squat to sell ? The second value is the sound it plays (can be left blank for no sound)
  31. GIndustrial.CFG.RenderDistance = 500 // Render distance for the WAILA and boxes and text on entities
  32. GIndustrial.CFG.ItemConnectDistance = 550 // How far can items be from eachother to be connected e.g power sources
  33. GIndustrial.CFG.UseOnlyIfOwned = true // (DO NOT SPAWN THE ENTITIES THROUGH Q MENU IF THIS IS TRUE!!!!!!) Can players only access / use machines / change power sources if they own it ? This applies to almost everything
  34. GIndustrial.CFG.PhysgunUsable = true // Let players physgun their machinery?
  35. GIndustrial.CFG.DefaultElementsAdd = true // Add all the defualt elements included in the addon ? Diamond, Bronze etc
  36. GIndustrial.CFG.DefaultItemsAdd = false // Add all the default entities included in the addon ? Literally just the bouncy ball, recommended to be false
  37. GIndustrial.CFG.AddAllDarkRPEntities = false // Add all the DarkRP entities available for purchase in the F4 menu ? (This currently adds ALL entities even donator ones)
  38. GIndustrial.CFG.NotifyOwnerDisconnect = true // Notify the owner of an entity if it disconnects from another ? (This happens when an entity is too far from another when connected)
  39. GIndustrial.CFG.QuarryUseElements = true // Should the quarry try find the elements too ? See sh_fabrication.lua
  40. GIndustrial.CFG.QuarryUseFabricationEntities = false // Should the quarry try find the added entities too ? See sh_fabrication.lua
  41. GIndustrial.CFG.QuarryIterationTime = 1 // Time in seconds between quarry searches - Recommended to stay around 1-3 seconds
  42. GIndustrial.CFG.UseNPCElements = true // Does the NPC buy the minerals from you ?
  43. GIndustrial.CFG.UseNPCPackages = true // Does the NPC buy the packages from you ?
  44. GIndustrial.CFG.UseDefaultPackages = true // Include already made packages ?
  45. GIndustrial.CFG.AddGIndustrialEntitiesToFabricator = true // Make it so you can fabricate the entities in the addon ?
  46. GIndustrial.CFG.AllowBatBoxSelling = false // Allow the selling of BatBox ? Recommended to be false as it's quick cash and defeats the addons purpose
  47.  
  48.  
  49. GIndustrial.CFG.gUWorth = 1.5 // How much is a single gU of energy worth ? Default: 1.5x (A BatBox with 10k gU will sell for 15k)
  50.  
  51. GIndustrial.CFG.UseJob = true -- Create TEAM_GINDUSTRIAL ?
  52. GIndustrial.CFG.JobModels = {"models/player/charple.mdl"}
  53. GIndustrial.CFG.JobSlots = 2
  54. GIndustrial.CFG.JobSalary = 25
  55.  
  56. GIndustrial.CFG.SoldElementNoises = {} // For when you sell the elements, only works if UseNPCElements is false, otherwise it will revert to the below ones
  57. GIndustrial.CFG.SoldElementNoiseCooldown = 5 // Cooldown for the WOOHOOO noises, applies to both self-selling and NPC selling
  58. for i=1,4,1 do
  59. GIndustrial.CFG.SoldElementNoises[i] = "vo/coast/odessa/male01/nlo_cheer0"..tostring(i)..".wav"
  60. end
  61.  
  62. GIndustrial.CFG.FabricatorBlacklist = {
  63. ["money_printer"] = true
  64. } // Items that cannot be made via fabricator
  65.  
  66. /* [EDIT ME] Quarry Items */
  67. /* How to add more items:
  68. 1. Get the entity name e.g money_printer or weapon_crossbow
  69. 2. Copy and paste it into a new line
  70. 3. Think of a number to be in 1 in e.g if you make it 500, it will be a 1 in 500 chance of getting the entity
  71. */
  72.  
  73. GIndustrial.CFG.QuarryItems = GIndustrial.CFG.QuarryItems or {
  74. ["item_healthvial"] = 150,
  75. ["item_suit"] = 300
  76. }
  77.  
  78. hook.Add("gIndustrialFabricationItemsDone", "gindustrial_quarry_extras", function()
  79. if GIndustrial.CFG.QuarryUseFabricationEntities == true then
  80. for k, v in pairs(GIndustrial.FabricationItems) do
  81. GIndustrial.CFG.QuarryItems[k] = v.quarryChance
  82. end
  83. end
  84. if GIndustrial.CFG.QuarryUseElements == true then
  85. for k, v in pairs(GIndustrial.FabricationElements) do
  86. GIndustrial.CFG.QuarryItems[k] = v.quarryChance
  87. end
  88. end
  89. end)
  90.  
  91.  
  92. /* Items editing - Recommended to leave these default */
  93. /* Keep in mind, 1 gU is around the same as $1, give or take for profit */
  94. /* Note: All of these should be multiples of 500 for best performace, e.g 500, 1000, 1500, 2000 ... */
  95.  
  96. GIndustrial.CFG.CoalWorth = 6000 // How much does 1 piece of coal cost ?
  97. GIndustrial.CFG.CoalEnergy = GIndustrial.CFG.gUWorth * GIndustrial.CFG.CoalWorth // How much energy does the coal give to it's BatBox
  98. GIndustrial.CFG.GeneratorCoalHold = 30 -- How many pieces of coal can a generator hold ?
  99.  
  100. GIndustrial.CFG.ReactorWorth = 25000
  101. GIndustrial.CFG.UraniumWorth = 40000 // How much does 1 piece of uranium cost ?
  102. GIndustrial.CFG.UraniumEnergy = GIndustrial.CFG.gUWorth * GIndustrial.CFG.UraniumWorth // How much energy does the uranium give to it's BatBox
  103. GIndustrial.CFG.CoolantWorthBuy = 20000 // How much does it cost to buy a coolant cell
  104. GIndustrial.CFG.CoolantWorth = 15000 // How many degrees does the coolant soak up ? (The reactor increases by around 10 - 25 degrees per second) (Note: 15000 is equal to 8 minutes of safe cooling)
  105. GIndustrial.CFG.ReactorCanHoldUranium = 5 // How many uranium shards can a reactor hold ?
  106. GIndustrial.CFG.ReactorCanHoldCoolants = 3
  107. GIndustrial.CFG.ReactorExplodingTemp = 500
  108.  
  109. GIndustrial.CFG.GeneratorWorth = 25000
  110. GIndustrial.CFG.GeneratorEnergy = GIndustrial.CFG.gUWorth * GIndustrial.CFG.GeneratorWorth
  111.  
  112. GIndustrial.CFG.BatteryBoxWorth = 60000
  113. GIndustrial.CFG.BatteryBoxHold = 600000
  114.  
  115.  
  116. hook.Add("loadCustomDarkRPItems", "gindustrial_darkrp_job_create", function()
  117.  
  118. if GIndustrial.CFG.UseJob == true then
  119. TEAM_GINDUSTRIAL = DarkRP.createJob("Industrial Expert", {
  120. color = Color(81, 41, 140, 255),
  121. model = GIndustrial.CFG.JobModels,
  122. description = [[Set up your technology farm and make that cash money]],
  123. command = "industrial",
  124. max = GIndustrial.CFG.JobSlots,
  125. salary = GIndustrial.CFG.JobSalary,
  126. admin = 0,
  127. vote = false,
  128. category = "Custom Jobs",
  129. hasLicense = false
  130. })
  131. end
  132.  
  133. print("gIndustrial Jobs Configured")
  134.  
  135. hook.Run("gIndustrialJobsDone", 0)
  136.  
  137. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement