Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

explosion parts

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