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, 8 years ago

egines added to spaceship, started with explosionparts

File size: 8.4 KB
RevLine 
[11259]1<Template name=endurance>
2
3
[11268]4        <ModularSpaceShip collisionType=kinematic mass=10000 lineardamping=0.99 angularDamping=0.99 rotationaxis = "1,0,0" explosionchunks = 12 >
5       
[11259]6
7        <!-- Test endurance -->
8
[11268]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>
[11259]15
[11268]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>
[11259]41                <!-- coordinates (0,0,0) num 0-->
42
[11268]43                <StaticEntity name= "part0" collisionType=static position ="-100,0,0">
[11259]44                        <attached>
45                                <Model  mesh="cube.mesh" scale="10"/>
46
47                               
48                        </attached>
49
50                <collisionShapes>
51
[11268]52                        <BoxCollisionShape  halfExtents="10,10,10" lookat="-100,0,0" info ="part0"/>
[11259]53
54                </collisionShapes>
55
56                </StaticEntity>
57
58                <!-- coordinates (100,0,0) num 1-->
59
[11268]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
[11259]65                        <attached>
66                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
67                                <Model  mesh="Coordinates.mesh" scale="20"/>
68
69
[11268]70                                <ParticleEmitter scale=5  position= "0,-5,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
[11259]71
[11268]72                                <ParticleEmitter scale=5  position= "0,3,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
[11259]73
[11268]74                                <ParticleEmitter scale=5  position= "0,10,28" source="Orxonox/thruster2" lifetime=2.0 loop=1 startdelay=0.0 />
75
76
[11259]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
[11268]91                <StaticEntity name = "part2" collisionType=static lookat="-100,0,0" position ="-100,50,86" direction="0,0,0" yaw="-90" roll="-90">
[11259]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
[11268]107                <StaticEntity name="part3" collisionType=static lookat="-100,0,0" position ="-100,86,50" direction="0,0,0" yaw="-90" roll="-90">
[11259]108                        <attached>
109                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
[11268]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
[11259]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
[11268]129                <StaticEntity name ="part4" collisionType=static position ="-100,100,0" lookat="-100,0,0">
[11259]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
[11268]146                <StaticEntity name= "part5" collisionType=static position ="-100,86,-50" lookat="-100,0,0" direction="0,0,0" yaw="-90" roll="-90">
[11259]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
[11268]162                <StaticEntity name="part6" collisionType=static position ="-100,50,-86" lookat="-100,0,0" >
[11259]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
[11268]177                <StaticEntity name= "part7" collisionType=static position ="-100,0,-100" lookat="-100,0,0" direction="0,0,0" yaw="90" roll="90">
[11259]178                        <attached>
179                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
[11268]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
[11259]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
[11268]199                <StaticEntity name ="part8" collisionType=static position ="-100,-50,-86" lookat="-100,0,0" direction="0,0,0" yaw="-90" roll="-90" >
[11259]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
[11268]215                <StaticEntity name="part9" collisionType=static position ="-100,-86,-50" lookat="-100,0,0" direction="0,0,0" yaw="-90" roll="-90">
[11259]216                        <attached>
217                                <Model  mesh="Endurance_MainEngine.mesh" scale="5" />
[11268]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
[11259]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
[11268]237                <StaticEntity name ="part10" collisionType=static position ="-100,-100,0" lookat="-100,0,0">
[11259]238                        <attached>
[11268]239                               
[11259]240                                <Model  mesh="cube.mesh" scale="10" />
[11268]241
[11259]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
[11268]254                <StaticEntity name ="part11" collisionType=static position ="-100,-86,50" lookat="-100,0,0">
[11259]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
[11268]269                <StaticEntity name ="part12" collisionType=static position ="-100,-50,86" lookat="-100,0,0">
[11259]270                        <attached>
271                                <Model  mesh="cube.mesh" scale="10" />
[11268]272                               
273
274     
[11259]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
[11268]289                <StaticEntity collisionType=static position ="-100,-70,75" lookat="-100,0,0" yaw="90" roll="0" pitch="90" >
290                        <attached>
291                               
[11259]292
[11268]293                                <Model  mesh="Endurance_Connecting_Tunnel.mesh" scale="4" />
294                               
[11259]295
[11268]296                        </attached>
[11259]297
[11268]298                        <collisionShapes>
[11259]299
[11268]300                        <BoxCollisionShape  halfExtents="4,4,4" />
[11259]301
[11268]302                        </collisionShapes>
[11259]303
[11268]304                </StaticEntity>
305
[11259]306               
[11268]307               
[11259]308
309        </attached>
310
[11268]311
312   
313
[11259]314        <collisionShapes>
315
316                        <BoxCollisionShape position="-100,0,0" halfExtents="10,10,10" />
317
318                        </collisionShapes>
319       
[11268]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>
[11259]326               
327
[11268]328        </ModularSpaceShip>
[11259]329
[11268]330       
331
332
333
[11259]334</Template>
335
336
337
338
339
Note: See TracBrowser for help on using the repository browser.