Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

egines added to spaceship, started with explosionparts

File size: 8.4 KB
Line 
1<Template name=endurance>
2
3
4        <ModularSpaceShip collisionType=kinematic mass=10000 lineardamping=0.99 angularDamping=0.99 rotationaxis = "1,0,0" explosionchunks = 12 >
5       
6
7        <!-- Test endurance -->
8
9        <parts>
10        <ShipPart name="part0" initialhealth="1" maxhealth="1" damageabsorption="0" explosionposition="-100,0,0">
11            <destructionevents>
12                <PartDestructionEvent targetType="part" targetParam="health" operation="destroy" value="0.5" message="middle cube destroyed!"/>
13            </destructionevents>
14        </ShipPart>
15
16        <ShipPart name="part1" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,0,100">
17            <destructionevents>
18                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
19            </destructionevents>
20        </ShipPart>
21
22        <ShipPart name="part2" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,50,86">
23            <destructionevents>
24                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
25            </destructionevents>
26        </ShipPart>
27
28        <ShipPart name="part3" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,86,50">
29            <destructionevents>
30                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
31            </destructionevents>
32        </ShipPart>
33
34    </parts>
35
36
37
38
39
40    <attached>
41                <!-- coordinates (0,0,0) num 0-->
42
43                <StaticEntity name= "part0" collisionType=static position ="-100,0,0">
44                        <attached>
45                                <Model  mesh="cube.mesh" scale="10"/>
46
47                               
48                        </attached>
49
50                <collisionShapes>
51
52                        <BoxCollisionShape  halfExtents="10,10,10" lookat="-100,0,0" info ="part0"/>
53
54                </collisionShapes>
55
56                </StaticEntity>
57
58                <!-- coordinates (100,0,0) num 1-->
59
60                <StaticEntity name= "part1" collisionType=static lookat="-100,0,0" position ="-100,0,100" direction="0,0,0" yaw="-90" roll="-90" pitch="0">
61
62                       
63
64
65                        <attached>
66                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
67                                <Model  mesh="Coordinates.mesh" scale="20"/>
68
69
70                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
71
72                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
73
74                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
75
76
77                        </attached>
78
79                        <collisionShapes>
80
81                        <BoxCollisionShape  halfExtents="10,10,10"  />
82
83                        </collisionShapes>
84
85                       
86                       
87                <!-- coordinates (86,50,0) num 2 -->   
88
89                </StaticEntity>
90
91                <StaticEntity name = "part2" collisionType=static lookat="-100,0,0" position ="-100,50,86" direction="0,0,0" yaw="-90" roll="-90">
92                        <attached>
93                                <Model  mesh="Endurance_Habitat.mesh" scale="5" />
94                               
95                        </attached>
96
97                        <collisionShapes>
98
99                        <BoxCollisionShape  halfExtents="10,10,10"  />
100
101                        </collisionShapes>
102
103                </StaticEntity>
104
105                <!-- coordinates (50,86,0) num 3 -->   
106
107                <StaticEntity name="part3" collisionType=static lookat="-100,0,0" position ="-100,86,50" direction="0,0,0" yaw="-90" roll="-90">
108                        <attached>
109                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
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                        </attached>
118
119                        <collisionShapes>
120
121                        <BoxCollisionShape  halfExtents="10,10,10" />
122
123                        </collisionShapes>
124
125                </StaticEntity>
126
127                <!-- coordinates (0,100,0) num 4 -->   
128
129                <StaticEntity name ="part4" collisionType=static position ="-100,100,0" lookat="-100,0,0">
130                        <attached>
131                                <Model  mesh="cube.mesh" scale="10" />
132
133                        </attached>
134
135                        <collisionShapes>
136
137                        <BoxCollisionShape  halfExtents="10,10,10" />
138
139                        </collisionShapes>
140
141
142                </StaticEntity>
143
144                <!-- coordinates (-50,86,0) num 5 -->   
145
146                <StaticEntity name= "part5" collisionType=static position ="-100,86,-50" lookat="-100,0,0" direction="0,0,0" yaw="-90" roll="-90">
147                        <attached>
148                                <Model  mesh="Endurance_Habitat.mesh" scale="5" />
149                        </attached>
150
151                        <collisionShapes>
152
153                        <BoxCollisionShape  halfExtents="10,10,10" />
154
155                        </collisionShapes>
156
157
158                </StaticEntity>
159
160                <!-- coordinates (-86,50,0) num 6  --> 
161
162                <StaticEntity name="part6" collisionType=static position ="-100,50,-86" lookat="-100,0,0" >
163                        <attached>
164                                <Model  mesh="cube.mesh" scale="10" />
165                        </attached>
166
167                        <collisionShapes>
168
169                        <BoxCollisionShape  halfExtents="10,10,10" />
170
171                        </collisionShapes>
172
173                </StaticEntity>
174
175                <!-- coordinates (-100,0,0) num 7 -->   
176
177                <StaticEntity name= "part7" collisionType=static position ="-100,0,-100" lookat="-100,0,0" direction="0,0,0" yaw="90" roll="90">
178                        <attached>
179                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
180
181                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
182
183                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
184
185                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
186
187                        </attached>
188
189                        <collisionShapes>
190
191                        <BoxCollisionShape  halfExtents="10,10,10" />
192
193                        </collisionShapes>
194
195                </StaticEntity>
196
197                <!-- coordinates (-86,-50,0) num 8 --> 
198
199                <StaticEntity name ="part8" collisionType=static position ="-100,-50,-86" lookat="-100,0,0" direction="0,0,0" yaw="-90" roll="-90" >
200                        <attached>
201                                <Model  mesh="Endurance_Habitat.mesh" scale="5" />
202                        </attached>
203
204                        <collisionShapes>
205
206                        <BoxCollisionShape  halfExtents="10,10,10" />
207
208                        </collisionShapes>
209
210
211                </StaticEntity>
212
213                <!-- coordinates (-50,-86,0) num 9 --> 
214
215                <StaticEntity name="part9" collisionType=static position ="-100,-86,-50" lookat="-100,0,0" direction="0,0,0" yaw="-90" roll="-90">
216                        <attached>
217                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
218
219                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
220
221                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
222
223                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
224
225                        </attached>
226
227                        <collisionShapes>
228
229                        <BoxCollisionShape  halfExtents="10,10,10" />
230
231                        </collisionShapes>
232
233                </StaticEntity>
234
235                <!-- coordinates (0,-100,0) num 10 --> 
236
237                <StaticEntity name ="part10" collisionType=static position ="-100,-100,0" lookat="-100,0,0">
238                        <attached>
239                               
240                                <Model  mesh="cube.mesh" scale="10" />
241
242                        </attached>
243
244                        <collisionShapes>
245
246                        <BoxCollisionShape  halfExtents="10,10,10" />
247
248                        </collisionShapes>
249
250                </StaticEntity>
251
252                <!-- coordinates (50,-86,0) num 11 --> 
253
254                <StaticEntity name ="part11" collisionType=static position ="-100,-86,50" lookat="-100,0,0">
255                        <attached>
256                                <Model  mesh="cube.mesh" scale="10" />
257                        </attached>
258
259                        <collisionShapes>
260
261                        <BoxCollisionShape  halfExtents="10,10,10" />
262
263                        </collisionShapes>
264
265                </StaticEntity>
266
267                <!-- coordinates (86,-50,0) num 12 --> 
268
269                <StaticEntity name ="part12" collisionType=static position ="-100,-50,86" lookat="-100,0,0">
270                        <attached>
271                                <Model  mesh="cube.mesh" scale="10" />
272                               
273
274     
275                        </attached>
276
277                        <collisionShapes>
278
279                        <BoxCollisionShape  halfExtents="10,10,10" />
280
281                        </collisionShapes>
282
283                </StaticEntity>
284
285                <!-- x-coordinate = red,  z-coordinate = green, y-coordinate = blue, -->
286
287                <Model position="0,0,0" mesh="Coordinates.mesh" scale="20"/>
288
289                <StaticEntity collisionType=static position ="-100,-70,75" lookat="-100,0,0" yaw="90" roll="0" pitch="90" >
290                        <attached>
291                               
292
293                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="4" />
294                               
295
296                        </attached>
297
298                        <collisionShapes>
299
300                        <BoxCollisionShape  halfExtents="4,4,4" />
301
302                        </collisionShapes>
303
304                </StaticEntity>
305
306               
307               
308
309        </attached>
310
311
312   
313
314        <collisionShapes>
315
316                        <BoxCollisionShape position="-100,0,0" halfExtents="10,10,10" />
317
318                        </collisionShapes>
319       
320
321        <explosion >
322      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
323      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
324      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
325    </explosion>
326               
327
328        </ModularSpaceShip>
329
330       
331
332
333
334</Template>
335
336
337
338
339
Note: See TracBrowser for help on using the repository browser.