Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/BigShip_HS16/data/levels/templates/endurancetest_template.oxt @ 11291

Last change on this file since 11291 was 11291, checked in by pschefer, 7 years ago

Spaceshipparts almost completed

File size: 12.1 KB
Line 
1<Template name=endurance>
2
3
4        <ModularSpaceShip
5        collisionType=dynamic
6        mass = 10000
7        lineardamping = 0.99
8        angularDamping = 0.99
9        rotationaxis = "1,0,0"
10        explosionchunks = 12
11        health            = 200
12        maxhealth         = 200
13        initialhealth     = 200
14        >
15       
16
17        <!-- Test endurance -->
18
19        <parts>
20        <ShipPart name="part1" initialhealth="100" maxhealth="100" damageabsorption="0" explosionposition="-100,0,0">
21            <destructionevents>
22
23
24               
25            </destructionevents>
26        </ShipPart>
27
28        <!-- <ShipPart name="part1" initialhealth="10" maxhealth="10" damageabsorption="0" explosionposition="-100,0,100">
29            <destructionevents>
30                <PartDestructionEvent targetType="part"  targetName = "part0" operation="destroy" value="0.5"/>
31            </destructionevents>
32        </ShipPart>
33
34        <ShipPart name="part2" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,50,86">
35            <destructionevents>
36                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
37            </destructionevents>
38        </ShipPart>
39
40        <ShipPart name="part3" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,86,50">
41            <destructionevents>
42                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
43            </destructionevents>
44        </ShipPart>
45
46    -->
47
48    </parts>
49
50   
51    <explosion >
52      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
53      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
54      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
55    </explosion>
56
57
58       
59
60
61    <attached>
62                <!-- coordinates (0,0,0) num 0-->
63
64                <StaticEntity name= "part0" collisionType=static position ="0,0,0" info = "part0" >
65                        <attached>
66                                <Model  mesh="cube.mesh" scale="10"/>
67
68                               
69                        </attached>
70
71                <collisionShapes>
72
73                        <BoxCollisionShape  halfExtents="10,10,10" lookat="0,0,0" info ="part0"/>
74
75                </collisionShapes>
76
77                </StaticEntity>
78
79                <!-- ct12 -->
80
81                <StaticEntity collisionType=static position ="0,-30,105"  yaw="0" roll="90" pitch="-60" >
82                        <attached>
83                               
84
85                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
86                               
87                               
88
89                        </attached>
90
91                        <collisionShapes>
92
93                        <BoxCollisionShape  halfExtents="4,4,4" />
94
95                        </collisionShapes>
96
97                </StaticEntity>
98
99                <!-- coordinates (100,0,0) num 1-->
100
101                <StaticEntity name= "part1" collisionType=static lookat="0,0,0" position ="0,0,120" direction="0,0,0" yaw="-90" roll="-90" pitch="0">
102
103                       
104
105
106                        <attached>
107                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
108                               
109
110
111                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
112
113                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
114
115                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
116
117
118                        </attached>
119
120                        <collisionShapes>
121
122                        <BoxCollisionShape  halfExtents="10,10,10"  />
123
124                        </collisionShapes>     
125
126                </StaticEntity>
127
128                <!-- coordinates (86,50,0) num 2 -->
129
130                <!-- ct11 -->
131
132                <StaticEntity collisionType=static position ="0,30,105"  yaw="0" roll="90" pitch="270" >
133                        <attached>
134                               
135
136                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
137                               
138                               
139
140                        </attached>
141
142                        <collisionShapes>
143
144                        <BoxCollisionShape  halfExtents="4,4,4" />
145
146                        </collisionShapes>
147
148                </StaticEntity>
149
150                <StaticEntity name = "part2" collisionType=static lookat="0,0,0" position ="0,60,103.2" direction="0,0,0" yaw="0" roll="-90">
151                        <attached>
152                                <Model  mesh="Endurance_Habitat.mesh" scale="5" />
153                               
154                        </attached>
155
156                        <collisionShapes>
157
158                        <BoxCollisionShape  halfExtents="10,10,10"  />
159
160                        </collisionShapes>
161
162                </StaticEntity>
163
164                <!-- ct10 -->
165
166                <StaticEntity collisionType=static position ="0,78,78"  yaw="0" roll="90" pitch="240" >
167                        <attached>
168                               
169
170                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
171                               
172                               
173
174                        </attached>
175
176                        <collisionShapes>
177
178                        <BoxCollisionShape  halfExtents="4,4,4" />
179
180                        </collisionShapes>
181
182                </StaticEntity>
183
184                <!-- coordinates (50,86,0) num 3 -->   
185
186                <StaticEntity name="part3" collisionType=static lookat="0,0,0" position ="0,103.2,60" direction="0,0,0" yaw="-90" roll="-90">
187                        <attached>
188                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
189
190                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
191
192                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
193
194                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
195
196                        </attached>
197
198                        <collisionShapes>
199
200                        <BoxCollisionShape  halfExtents="10,10,10" />
201
202                        </collisionShapes>
203
204                </StaticEntity>
205
206                <!-- ct9 -->
207
208                <StaticEntity collisionType=static position ="0,105,30"  yaw="0" roll="90" pitch="210" >
209                        <attached>
210                               
211
212                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
213                               
214                               
215
216                        </attached>
217
218                        <collisionShapes>
219
220                        <BoxCollisionShape  halfExtents="4,4,4" />
221
222                        </collisionShapes>
223
224                </StaticEntity>
225
226                <!-- coordinates (0,100,0) num 4 -->   
227
228                <StaticEntity name ="part4" collisionType=static position ="0,120,0" lookat="0,0,0" yaw="0" roll="-90">
229                        <attached>
230                                <Model  mesh="Endurance_Landig_Module.mesh" scale="5" />
231
232                        </attached>
233
234                        <collisionShapes>
235
236                        <BoxCollisionShape  halfExtents="10,10,10" />
237
238                        </collisionShapes>
239
240
241                </StaticEntity>
242
243                <!-- ct8 -->
244
245                <StaticEntity collisionType=static position ="0,105,-30"  yaw="0" roll="90" pitch="180" >
246                        <attached>
247                               
248
249                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
250                               
251                               
252
253                        </attached>
254
255                        <collisionShapes>
256
257                        <BoxCollisionShape  halfExtents="4,4,4" />
258
259                        </collisionShapes>
260
261                </StaticEntity>
262
263                <!-- coordinates (-50,86,0) num 5 -->   
264
265                <StaticEntity name= "part5" collisionType=static position ="0,103.2,-60" lookat="0,0,0" direction="0,0,0" yaw="0" roll="-90">
266                        <attached>
267                                <Model  mesh="Endurance_Habitat.mesh" scale="5" />
268                        </attached>
269
270                        <collisionShapes>
271
272                        <BoxCollisionShape  halfExtents="10,10,10" />
273
274                        </collisionShapes>
275
276
277                </StaticEntity>
278
279                <!-- ct7 -->
280
281                <StaticEntity collisionType=static position ="0,78,-78"  yaw="0" roll="90" pitch="150" >
282                        <attached>
283                               
284
285                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
286                               
287                               
288
289                        </attached>
290
291                        <collisionShapes>
292
293                        <BoxCollisionShape  halfExtents="4,4,4" />
294
295                        </collisionShapes>
296
297                </StaticEntity>
298
299                <!-- coordinates (-86,50,0) num 6  --> 
300
301                <StaticEntity name="part6" collisionType=static position ="0,60,-103.2" lookat="0,0,0" yaw="0" roll="-90" >
302                        <attached>
303                                <Model  mesh="Endurance_Landig_Module.mesh" scale="5" />
304                        </attached>
305
306                        <collisionShapes>
307
308                        <BoxCollisionShape  halfExtents="10,10,10" />
309
310                        </collisionShapes>
311
312                </StaticEntity>
313
314                <!-- ct6 -->
315
316                <StaticEntity collisionType=static position ="0,30,-105"  yaw="0" roll="90" pitch="120" >
317                        <attached>
318                               
319
320                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
321                       
322                               
323
324                        </attached>
325
326                        <collisionShapes>
327
328                        <BoxCollisionShape  halfExtents="4,4,4" />
329
330                        </collisionShapes>
331
332                </StaticEntity>
333
334                <!-- coordinates (-100,0,0) num 7 -->   
335
336                <StaticEntity name= "part7" collisionType=static position ="0,0,-120" lookat="0,0,0" direction="0,0,0" yaw="90" roll="90">
337                        <attached>
338                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
339
340                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
341
342                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
343
344                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
345
346                        </attached>
347
348                        <collisionShapes>
349
350                        <BoxCollisionShape  halfExtents="10,10,10" />
351
352                        </collisionShapes>
353
354                </StaticEntity>
355
356                <!-- ct5 -->
357
358                <StaticEntity collisionType=static position ="0,-30,-105"  yaw="0" roll="90" pitch="90" >
359                        <attached>
360                               
361
362                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
363                               
364                               
365
366                        </attached>
367
368                        <collisionShapes>
369
370                        <BoxCollisionShape  halfExtents="4,4,4" />
371
372                        </collisionShapes>
373
374                </StaticEntity>
375
376
377                <!-- coordinates (-86,-50,0) num 8 --> 
378
379                <StaticEntity name ="part8" collisionType=static position ="0,-60,-103.2" lookat="0,0,0" direction="0,0,0" yaw="0" roll="-90" >
380                        <attached>
381                                <Model  mesh="Endurance_Habitat.mesh" scale="5" />
382                        </attached>
383
384                        <collisionShapes>
385
386                        <BoxCollisionShape  halfExtents="10,10,10" />
387
388                        </collisionShapes>
389
390
391                </StaticEntity>
392
393                <!-- ct4 -->
394
395                <StaticEntity collisionType=static position ="0,-78,-78"  yaw="0" roll="90" pitch="60" >
396                        <attached>
397                               
398
399                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
400                               
401                               
402
403                        </attached>
404
405                        <collisionShapes>
406
407                        <BoxCollisionShape  halfExtents="4,4,4" />
408
409                        </collisionShapes>
410
411                </StaticEntity>
412
413                <!-- coordinates (-50,-86,0) num 9 --> 
414
415                <StaticEntity name="part9" collisionType=static position ="0,-103.2,-60" lookat="0,0,0" direction="0,0,0" yaw="-90" roll="-90">
416                        <attached>
417                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
418
419                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
420
421                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
422
423                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
424
425                        </attached>
426
427                        <collisionShapes>
428
429                        <BoxCollisionShape  halfExtents="10,10,10" />
430
431                        </collisionShapes>
432
433                </StaticEntity>
434
435                <!-- ct3 -->
436
437                <StaticEntity collisionType=static position ="0,-105,-30"  yaw="0" roll="90" pitch="30" >
438                        <attached>
439                               
440
441                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
442                               
443                               
444
445                        </attached>
446
447                        <collisionShapes>
448
449                        <BoxCollisionShape  halfExtents="4,4,4" />
450
451                        </collisionShapes>
452
453                </StaticEntity>
454
455                <!-- coordinates (0,-100,0) num 10 --> 
456
457                <StaticEntity name ="part10" collisionType=static position ="0,-120,0" lookat="0,0,0" yaw="0" roll="-90">
458                        <attached>
459                               
460                                <Model  mesh="Endurance_Landig_Module.mesh" scale="5" />
461
462                        </attached>
463
464                        <collisionShapes>
465
466                        <BoxCollisionShape  halfExtents="10,10,10" />
467
468                        </collisionShapes>
469
470                </StaticEntity>
471
472                <!-- ct2 -->
473
474                <StaticEntity collisionType=static position ="0,-105,30"  yaw="0" roll="90" pitch="0" >
475                        <attached>
476                               
477
478                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
479                               
480                               
481
482                        </attached>
483
484                        <collisionShapes>
485
486                        <BoxCollisionShape  halfExtents="4,4,4" />
487
488                        </collisionShapes>
489
490                </StaticEntity>
491
492                <!-- coordinates (50,-86,0) num 11 --> 
493
494                <StaticEntity name ="part11" collisionType=static position ="0,-103.2,60" lookat="0,0,0" yaw="0" roll="-90">
495                        <attached>
496                                <Model  mesh="Endurance_Commando_Module.mesh" scale="5" />
497                        </attached>
498
499                        <collisionShapes>
500
501                        <BoxCollisionShape  halfExtents="10,10,10" />
502
503                        </collisionShapes>
504
505                </StaticEntity>
506
507                <!-- connecting tunnel 1 (ct1) -->
508
509                <StaticEntity collisionType=static position ="0,-78,78"  yaw="0" roll="90" pitch="-30" >
510                        <attached>
511                               
512
513                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="6" />
514                               
515                               
516
517                        </attached>
518
519                        <collisionShapes>
520
521                        <BoxCollisionShape  halfExtents="4,4,4" />
522
523                        </collisionShapes>
524
525                </StaticEntity>
526
527                <!-- coordinates (86,-50,0) num 12 --> 
528
529                <StaticEntity name ="part12" collisionType=static position ="0,-60,103.2" lookat="0,0,0" yaw="0" roll="-90">
530                        <attached>
531                                <Model  mesh="Endurance_Landig_Module.mesh" scale="5" />
532                               
533
534     
535                        </attached>
536
537                        <collisionShapes>
538
539                        <BoxCollisionShape  halfExtents="10,10,10" />
540
541                        </collisionShapes>
542
543                </StaticEntity>
544
545                <!-- x-coordinate = red,  z-coordinate = green, y-coordinate = blue, -->
546
547               
548
549
550               
551
552               
553        </attached>
554
555
556   
557
558        <!--collisionShapes>
559
560                        <BoxCollisionShape position="-100,0,0" halfExtents="10,10,10" />
561
562                        </collisionShapes-->
563       
564
565       
566               
567
568        </ModularSpaceShip>
569
570       
571
572
573
574</Template>
575
576
577
578
579
Note: See TracBrowser for help on using the repository browser.