Advertisement
Guest User

Untitled

a guest
Mar 6th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local sturbine = require("steamTurbineProxies")
  2. local gturbine = require("gasTurbineProxies")
  3. local hexchange = require("heatExchangerProxies")
  4. local steelTank = require("tankProxies")
  5. local component = require("component")
  6.  
  7. local tank01 = component.proxy(steelTank.tank01)
  8. local tank02 = component.proxy(steelTank.tank02)
  9. local heatEx01 = component.proxy(hexchange.heatEx01)
  10. local heatEx02 = component.proxy(hexchange.heatEx02)
  11. local gasTurbine01 = component.proxy(gturbine.gasTurbine01)
  12. local gasTurbine02 = component.proxy(gturbine.gasTurbine02)
  13. local steamTurbine01 = component.proxy(sturbine.steamTurbine01)
  14.  
  15. local function heatExchangerEnableComputerControl(bool)
  16. heatEx01.enableComputerControl(bool)
  17. heatEx02.enableComputerControl(bool)
  18. end
  19.  
  20. local function gasTurbineEnableComputerControl(bool)
  21. gasTurbine01.enableComputerControl(bool)
  22. gasTurbine02.enableComputerControl(bool)
  23. end
  24.  
  25. local function steamTurbineEnableComputerControl(bool)
  26. steamTurbine01.enableComputerControl(bool)
  27. end
  28.  
  29. local function masterEnableComputerControl()
  30. heatExchangerEnableComputerControl(true)
  31. gasTurbineEnableComputerControl(true)
  32. steamTurbineEnableComputerControl(true)
  33. end
  34.  
  35. local function fuelCalculator()
  36. dieselBurnRate = 11.4
  37. gasolineBurnRate = 80
  38. bioDieselBurnRate = 16
  39. keroseneBurnRate = 15
  40.  
  41. end
  42.  
  43. masterEnableComputerControl()
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement