Advertisement
kesselya

KSP: NAU Origami Dishes for Antenna Range

May 1st, 2015
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. // NAU_for_AntennaRange.cfg
  2. // This .cfg file adds Antenna Range support for the NAU Origami Dishes
  3. // The NAU Dishes can be found at:
  4. // http://forum.kerbalspaceprogram.com/threads/98205-0-25-ORIGAMI-foldable-antenna-dishes-for-RemoteTech
  5. //
  6. // To use, copy the NAU Dishes to the GameData folder, but the RemoteTech folder is not necessary. All you need is the NAU Folder.
  7. // Place this file in the AntennaRange Folder.
  8. //
  9. // This config adds two new dish ranges to the Antenna Range mod, and changes the nominalRange for the stock antenna.
  10. //
  11. // Communotron16 - Sufficient for Low Kerbin Orbit, up to 3000 km
  12. // Comms DTS-M1 - Expands the range up to 15Mm, enough to reach the Mun
  13. // Communotron 88-88 - With a range of 30Mm, this should be enough for the entire Kerbin system, up to Minmus
  14. // Origami 69GM Folding Dish - Sufficient for reaching the Inner Planets with a range of 84 Gm
  15. // Origami 350GM Folding Dish - Sufficient for reaching the Outer Planets with a range of 350 Gm
  16.  
  17.  
  18. // This is the original copyright for the Antenna Range mod
  19. //
  20. // Copyright © 2014, toadicus
  21. // All rights reserved.
  22. //
  23. // Redistribution and use in source and binary forms, with or without modification,
  24. // are permitted provided that the following conditions are met:
  25. //
  26. // 1. Redistributions of source code must retain the above copyright notice,
  27. // this list of conditions and the following disclaimer.
  28. //
  29. // 2. Redistributions in binary form must reproduce the above copyright notice,
  30. // this list of conditions and the following disclaimer in the documentation and/or other
  31. // materials provided with the distribution.
  32. //
  33. // 3. Neither the name of the copyright holder nor the names of its contributors may be used
  34. // to endorse or promote products derived from this software without specific prior written permission.
  35. //
  36. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  37. // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  38. // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  39. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  40. // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  41. // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  42. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  43. //
  44. // This software uses the ModuleManager library © 2013 ialdabaoth, used under a Creative Commons Attribution-ShareAlike
  45. // 3.0 Uported License.
  46. //
  47. // Specifications:
  48. // nominalRange: The distance from Kerbin at which the antenna will perform exactly as prescribed by
  49. // packetResourceCost and packetSize.
  50. // maxPowerFactor: The multiplier on packetResourceCost that defines the maximum power output of the antenna. When the
  51. // power cost exceeds packetResourceCost * maxPowerFactor, transmission will fail.
  52. // maxDataFactor: The multipler on packetSize that defines the maximum data bandwidth of the antenna.
  53. //
  54.  
  55. # Reduce Toadicus' range for Communotron 16
  56. @PART[longAntenna]:AFTER[AntennaRange]:NEEDS[!RemoteTech2]
  57. {
  58. @MODULE[ModuleLimitedDataTransmitter]
  59. {
  60. @nominalRange = 1500000
  61. }
  62. }
  63.  
  64. # Reduce Toadicus' range for Comms DTS-1
  65. @PART[mediumDishAntenna]:AFTER[AntennaRange]:NEEDS[!RemoteTech2]
  66. {
  67. @MODULE[ModuleLimitedDataTransmitter]
  68. {
  69. @nominalRange = 7000000
  70. }
  71. }
  72.  
  73. # Reduce Toadicus' range for Communotron 88-88
  74. @PART[commDish]:AFTER[AntennaRange]:NEEDS[!RemoteTech2]
  75. {
  76.  
  77. @TechRequired = electrics
  78.  
  79. @MODULE[ModuleLimitedDataTransmitter]
  80. {
  81. @nominalRange = 20000000
  82. }
  83. }
  84.  
  85. // Add the Origami 69Gm Dish
  86. @PART[NAU_ORI69Gm]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
  87. {
  88. %TechRequired = electronics
  89.  
  90. @MODULE[ModuleDataTransmitter]
  91. {
  92. @name = ModuleLimitedDataTransmitter
  93. nominalRange = 30000000000
  94. maxPowerFactor = 8
  95. maxDataFactor = 4
  96. }
  97.  
  98. MODULE
  99. {
  100. name = ModuleScienceContainer
  101.  
  102. dataIsCollectable = true
  103. dataIsStorable = false
  104.  
  105. storageRange = 2
  106. }
  107. }
  108.  
  109. // Add the Origami 350Gm Dish
  110. @PART[NAU_ORI350Gm]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
  111. {
  112. %TechRequired = specializedElectrics
  113.  
  114. @MODULE[ModuleDataTransmitter]
  115. {
  116. @name = ModuleLimitedDataTransmitter
  117. nominalRange = 150000000000
  118. maxPowerFactor = 8
  119. maxDataFactor = 4
  120. }
  121.  
  122. MODULE
  123. {
  124. name = ModuleScienceContainer
  125.  
  126. dataIsCollectable = true
  127. dataIsStorable = false
  128.  
  129. storageRange = 2
  130. }
  131. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement