Version 1.7 1.7
[AntennaRange.git] / GameData / AntennaRange / AntennaRange.cfg
Andy 1 // AntennaRange
Andy Wilkinson 2 //
Andy 3 // AntennaRange.cfg
4 //
5 // Copyright © 2014, toadicus
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
Andy Wilkinson 40 @PART[longAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
Andy Wilkinson 41 {
42 @MODULE[ModuleDataTransmitter]
43 {
44 @name = ModuleLimitedDataTransmitter
45 nominalRange = 1500000
46 maxPowerFactor = 8
47 maxDataFactor = 4
48 }
Andy Wilkinson 49
50 MODULE
51 {
52 name = ModuleScienceContainer
53
54 dataIsCollectable = true
55 dataIsStorable = false
56
57 storageRange = 2
58 }
Andy Wilkinson 59 }
60
Andy Wilkinson 61 @PART[mediumDishAntenna]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
Andy Wilkinson 62 {
63 @MODULE[ModuleDataTransmitter]
64 {
65 @name = ModuleLimitedDataTransmitter
66 nominalRange = 30000000
67 maxPowerFactor = 8
68 maxDataFactor = 4
69 }
Andy Wilkinson 70
71 MODULE
72 {
73 name = ModuleScienceContainer
74
75 dataIsCollectable = true
76 dataIsStorable = false
77
78 storageRange = 2
79 }
Andy Wilkinson 80 }
81
Andy Wilkinson 82 @PART[commDish]:FOR[AntennaRange]:NEEDS[!RemoteTech2]
Andy Wilkinson 83 {
84 @MODULE[ModuleDataTransmitter]
85 {
86 @name = ModuleLimitedDataTransmitter
87 nominalRange = 80000000000
88 maxPowerFactor = 8
89 maxDataFactor = 4
90 }
Andy Wilkinson 91
92 MODULE
93 {
94 name = ModuleScienceContainer
95
96 dataIsCollectable = true
97 dataIsStorable = false
98
99 storageRange = 2
100 }
Andy Wilkinson 101 }
toadicus 102
103 EVA_MODULE
104 {
105 name = ModuleLimitedDataTransmitter
106
107 nominalRange = 5000
Andy Wilkinson 108 maxPowerFactor = 1
109 maxDataFactor = 1
toadicus 110
Andy Wilkinson 111 packetInterval = 0.2
112 packetSize = 1
113 packetResourceCost = 6.25
toadicus 114
115 requiredResource = ElectricCharge
116 }
117
118 EVA_RESOURCE
119 {
120 name = ElectricCharge
121 amount = 100
122 maxAmount = 100
123 }
124
125 @EVA_RESOURCE[ElectricCharge]:AFTER[AntennaRange]:NEEDS[TacLifeSupport]
126 {
127 !name = DELETE
128 }
toadicus 129
130 @SUBCATEGORY[*]:HAS[#title[Data?Transmitter]]:FOR[AntennaRange:]NEEDS[FilterExtensions]
131 {
132 FILTER
133 {
134 CHECK
135 {
136 type = moduleName
137 value = ModuleLimitedDataTransmitter
138 }
139 }
140 }
141