-
Notifications
You must be signed in to change notification settings - Fork 5
/
CoastGuard-Certification.cfg
326 lines (226 loc) · 5.55 KB
/
CoastGuard-Certification.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
//CoastGuard-Certification - KSC Coast Guard: Coast Guard Rescue Certification
CONTRACT_TYPE
{
//REQUIREMENTS FOR CONTRACT TO APPEAR
REQUIREMENT
{
name = Any
type = Any
REQUIREMENT
{
name = PartUnlocked
type = PartUnlocked
part = miniJetEngine
}
REQUIREMENT:NEEDS[KAX]
{
name = PartUnlocked
type = PartUnlocked
part = KAXsportprop
}
REQUIREMENT:NEEDS[KAX]
{
name = PartUnlocked
type = PartUnlocked
part = KAXkueyEngine
}
REQUIREMENT:NEEDS[KAX]
{
name = PartUnlocked
type = PartUnlocked
part = KAXkueyTailRotor
}
}
//DATA NODES TO PROCESS FOR CONTRACT USE
//Contract Specific VesselParameterGroup Definition Key (to prevent conflict with other active contracts)
DATA
{
type = string
craft = GAPcraftCoastGuardCertification
}
DATA
{
type = List<Kerbal>
kerbals = [ NewKerbal( Male , "Lt. Dan Kerman" , "Pilot") ]
}
//CONTRACT DESCRIPTION
name = CoastGuard-Certification
title = Coast Guard Rescue Certification
group = KSC Coast Guard
agent = KSC Coast Guard
description = With most money going to the Kerbal Space Program, the KSC Coast Guard often finds itself short on funds for new craft and qualified personnel. We are asking your organization to partner with us to help save lives and bring home what is lost or needs retrieving.\n\nThis is a volunteer contract only, with hazard pay being available only in the most dangerous of missions. We will provide a small advance for fuel and supplies, but what you'll earn mostly by serving is the pride in knowing you are making a difference, and a good reputation. Join us today and our trained rescue diver and paramedic, Lt. Dan Kerman, will help train your volunteers, and will accompany you as a rescue diver on KSC Coast Guard rescue missions.
synopsis = KSC Coast Guard: Our motto is Always Ready - Kemper Keratus!
notes = Rescue Lt. Dan from the water off the eastern shore of the Kerbal Space Center. Bring him back to dry land by any means possible so he can be recovered.
completedMessage = KSC Coast Guard Certification Mission Completed! Your organization is now certified to accept KSC Coast Guard rescue and retrieval contracts.
//Contract Limits
maxCompletions = 1
maxSimultaneous = 1
weight = 10.0
autoAccept = false
declinable = true
cancellable = true
minExpiry = 1.0
maxExpiry = 1.0
deadline = 1
//Contract Reward Modifiers
prestige = Trivial
targetBody = Kerbin
//Contract Rewards
advanceFunds = 2000.0
rewardFunds = 0.0
rewardReputation = 10.0
rewardScience = 0.0
//Contract Penalties
failureFunds = 0.0
failureReputation = 10.0
//BEHAVIOURS TO DO WHEN CREATING CONTRACT
BEHAVIOUR
{
name = SpawnKerbal
type = SpawnKerbal
KERBAL
{
kerbal = @/kerbals.ElementAt(0)
kerbalType = Unowned
owned = false
addToRoster = false
pqsCity = KSC
pqsOffset = 3636.74176576774, 948.452291817594, -54.6489646538366
heading = 300
}
}
BEHAVIOUR
{
name = WaypointGenerator
type = WaypointGenerator
PQS_CITY
{
name = S.O.S.
icon = marker
targetBody = Kerbin
pqsCity = KSC
pqsOffset = 3636.74176576774, 948.452291817594, -54.6489646538366
}
}
//PARAMETERS FOR CONTRACT COMPLETION
//Craft definition
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = Your craft must
define = @/craft
dissassociateVesselsOnContractCompletion = true
PARAMETER
{
name = HasCrew
type = HasCrew
title = have a Kerbal in command
minCrew = 1
disableOnStateChange = false
hideChildren = true
}
PARAMETER
{
name = HasCrewCapacity
type = HasCrewCapacity
title = have at least 1 passenger seat
minCapacity = 2
disableOnStateChange = false
}
disableOnStateChange = false
}
//Contract Goals
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = navigate to S.O.S Waypoint
vessel = @/craft
PARAMETER
{
name = VisitWaypoint
type = VisitWaypoint
index = 0
distance = 500
hideOnCompletion = true
disableOnStateChange = true
hideChildren = true
}
disableOnStateChange = true
hideChildren = true
}
PARAMETER
{
name = HasPassengers
type = HasPassengers
title = rescue crewman
completeInSequence = true
disableOnStateChange = false
}
//Recovery Parameter - Landing
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = and land back on land
vessel = @/craft
PARAMETER
{
name = ReachState
type = ReachState
targetBody = Kerbin
situation = LANDED
maxSpeed = 0.0
completeInSequence = true
disableOnStateChange = false
hideChildren = true
hidden = true
}
completeInSequence = true
disableOnStateChange = false
hideChildren = true
}
//Recovery Parameter - Craft & Kerbal Safety Check
PARAMETER
{
name = All
type = All
title = safely
PARAMETER
{
name = VesselNotDestroyed
type = VesselNotDestroyed
title = without destroying your craft
vessel = @/craft
}
PARAMETER
{
name = KerbalDeaths
type = KerbalDeaths
title = or killing anyone
countMax = 1
}
completeInSequence = true
disableOnStateChange = true
}
//Recovery Parameter - Recover Kerbals
PARAMETER
{
name = All
type = All
title = and recover
PARAMETER
{
name = RecoverKerbal
type = RecoverKerbal
title = @kerbal.First()
ITERATOR
{
type = Kerbal
kerbal = @/kerbals
}
hideChildren = true
}
}
}