Merge branch 'ttrefactor' of github.com:toadicus/AntennaRange into ttrefactor ttrefactor
[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 // Maximum distance 51696km, about 10% past Minmus
Andy Wilkinson 41 @PART[longAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
42 {
43 @MODULE[ModuleDataTransmitter]
44 {
toadicus 45 @name = ModuleLimitedDataTransmitter
toadicus 46 nominalRange = 18277500
Andy Wilkinson 47 maxPowerFactor = 8
48 maxDataFactor = 4
49 }
Andy Wilkinson 50
51 MODULE
52 {
53 name = ModuleScienceContainer
54
55 dataIsCollectable = true
56 dataIsStorable = false
57
58 storageRange = 2
59 }
Andy Wilkinson 60 }
61
toadicus 62 // Maximum distance 37152180km, about 5% past Duna
Andy Wilkinson 63 // Bonus data transmission when at short range
64 @PART[mediumDishAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
65 {
66 @MODULE[ModuleDataTransmitter]
toadicus 67 {
toadicus 68 @name = ModuleLimitedDataTransmitter
Andy Wilkinson 69 nominalRange = 18576090000
70 maxPowerFactor = 4
Andy Wilkinson 71 maxDataFactor = 8
Andy Wilkinson 72 }
73
74 MODULE
75 {
76 name = ModuleScienceContainer
77
78 dataIsCollectable = true
79 dataIsStorable = false
80
81 storageRange = 2
Andy Wilkinson 82 }
83 }
toadicus 84
Andy Wilkinson 85 // Maximum distance 224770770km, about 75% past Eeloo.
86 @PART[commDish]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
87 {
88 @MODULE[ModuleDataTransmitter]
Andy Wilkinson 89 {
toadicus 90 @name = ModuleLimitedDataTransmitter
toadicus 91 @packetResourceCost /= 1.414213
Andy Wilkinson 92 nominalRange = 56192692500
93 maxPowerFactor = 16
Andy Wilkinson 94 maxDataFactor = 2
Andy Wilkinson 95 }
96
97 MODULE
98 {
99 name = ModuleScienceContainer
100
101 dataIsCollectable = true
102 dataIsStorable = false
103
104 storageRange = 2
Andy Wilkinson 105 }
toadicus 106 }
Andy Wilkinson 107
108 TRACKING_STATION_RANGES
109 {
110 range = 51696576
111 range = 37152180000
112 range = 224770770000
113 }
114
115 EVA_MODULE
116 {
117 name = ModuleLimitedDataTransmitter
118
119 nominalRange = 5000
120 maxPowerFactor = 1
121 maxDataFactor = 1
122
123 packetInterval = 0.2
124 packetSize = 1
125 packetResourceCost = 6.25
126
127 requiredResource = ElectricCharge
128 }
129
130 EVA_RESOURCE
131 {
toadicus 132 name = ElectricCharge
133 amount = 100
toadicus 134 maxAmount = 100
135 }
toadicus 136
toadicus 137 @EVA_RESOURCE[ElectricCharge]:AFTER[AntennaRange]:NEEDS[TacLifeSupport]
138 {
toadicus 139 !name = DELETE
140 }
141