Consolidating some interface members to use RelayDataCost.
[AntennaRange.git] / GameData / AntennaRange / AntennaRange.cfg
Andy 1 // AntennaRange
Andy Wilkinson 2 //
Andy 3 // AntennaRange.cfg
4 //
toadicus 5 // Copyright © 2014-2015, toadicus
Andy 6 // All rights reserved.
7 //
8 // Redistribution and use in source and binary forms, with or without modification,
9 // are permitted provided that the following conditions are met:
10 //
11 // 1. Redistributions of source code must retain the above copyright notice,
12 // this list of conditions and the following disclaimer.
13 //
14 // 2. Redistributions in binary form must reproduce the above copyright notice,
15 // this list of conditions and the following disclaimer in the documentation and/or other
16 // materials provided with the distribution.
17 //
18 // 3. Neither the name of the copyright holder nor the names of its contributors may be used
19 // to endorse or promote products derived from this software without specific prior written permission.
20 //
21 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
22 // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Andy Wilkinson 28 //
29 // This software uses the ModuleManager library © 2013 ialdabaoth, used under a Creative Commons Attribution-ShareAlike
30 // 3.0 Uported License.
31 //
32 // Specifications:
Andy 33 // nominalRange: The distance from Kerbin at which the antenna will perform exactly as prescribed by
34 // packetResourceCost and packetSize.
Andy Wilkinson 35 // maxPowerFactor: The multiplier on packetResourceCost that defines the maximum power output of the antenna. When the
36 // power cost exceeds packetResourceCost * maxPowerFactor, transmission will fail.
37 // maxDataFactor: The multipler on packetSize that defines the maximum data bandwidth of the antenna.
38 //
39
toadicus 40 @PART[longAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech]
Andy Wilkinson 41 {
Andy Wilkinson 42 @TechRequired = start
43
Andy Wilkinson 44 @MODULE[ModuleDataTransmitter]
45 {
46 @name = ModuleLimitedDataTransmitter
toadicus 47 nominalRange = 6364
toadicus 48 simpleRange = 20500000
Andy Wilkinson 49 maxPowerFactor = 8
50 maxDataFactor = 4
51 }
Andy Wilkinson 52
53 MODULE
54 {
55 name = ModuleScienceContainer
56
57 dataIsCollectable = true
58 dataIsStorable = false
59
60 storageRange = 2
61 }
Andy Wilkinson 62 }
63
toadicus 64 @PART[mediumDishAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech]
Andy Wilkinson 65 {
66 @MODULE[ModuleDataTransmitter]
67 {
68 @name = ModuleLimitedDataTransmitter
toadicus 69 nominalRange = 3150000000
toadicus 70 simpleRange = 18000000000
Andy Wilkinson 71 maxPowerFactor = 4
72 maxDataFactor = 8
Andy Wilkinson 73 }
Andy Wilkinson 74
75 MODULE
76 {
77 name = ModuleScienceContainer
78
79 dataIsCollectable = true
80 dataIsStorable = false
81
82 storageRange = 2
83 }
Andy Wilkinson 84 }
85
toadicus 86 @PART[commDish]:FOR[AntennaRange]:NEEDS[!RemoteTech]
Andy Wilkinson 87 {
88 @MODULE[ModuleDataTransmitter]
89 {
90 @name = ModuleLimitedDataTransmitter
Andy Wilkinson 91 @packetResourceCost /= 1.414213
toadicus 92 nominalRange = 9250000000
toadicus 93 simpleRange = 56250000000
Andy Wilkinson 94 maxPowerFactor = 16
95 maxDataFactor = 2
Andy Wilkinson 96 }
Andy Wilkinson 97
98 MODULE
99 {
100 name = ModuleScienceContainer
101
102 dataIsCollectable = true
103 dataIsStorable = false
104
105 storageRange = 2
106 }
Andy Wilkinson 107 }
toadicus 108
Andy Wilkinson 109 @PART[HighGainAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech]
Andy Wilkinson 110 {
111 @TechRequired = electronics
112 @description = Repurposed for medium range probes, the HG-55 provdes high speed directional data transmission.
113
114 @MODULE[ModuleDataTransmitter]
115 {
116 @name = ModuleLimitedDataTransmitter
117 nominalRange = 7774867578
118 simpleRange = 25030376544
119 maxPowerFactor = 2.6180339887498948
120 maxDataFactor = 9
121 }
122
123 MODULE
124 {
125 name = ModuleScienceContainer
126
127 dataIsCollectable = true
128 dataIsStorable = false
129
130 storageRange = 2
131 }
132 }
133
toadicus 134 TRACKING_STATION_RANGES
135 {
toadicus 136 range = 800000
137 range = 200000000000
toadicus 138 range = 2000000000000
toadicus 139 }
140
toadicus 141 EVA_MODULE
142 {
143 name = ModuleLimitedDataTransmitter
144
toadicus 145 nominalRange = 1389
toadicus 146 simpleRange = 5000
Andy Wilkinson 147 maxPowerFactor = 1
148 maxDataFactor = 1
toadicus 149
Andy Wilkinson 150 packetInterval = 0.2
151 packetSize = 1
152 packetResourceCost = 6.25
toadicus 153
154 requiredResource = ElectricCharge
155 }
156
157 EVA_RESOURCE
158 {
159 name = ElectricCharge
Andy Wilkinson 160 amount = 0
toadicus 161 maxAmount = 100
162 }
163
164 @EVA_RESOURCE[ElectricCharge]:AFTER[AntennaRange]:NEEDS[TacLifeSupport]
165 {
166 !name = DELETE
167 }
168