Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw @ 11282

Last change on this file since 11282 was 11282, checked in by meilel, 7 years ago

checkpoints

File size: 17.5 KB
Line 
1
2  <!-- Authors:
3Louis ...? :D
4Berkay Berabi
5@2016
6-->
7
8<LevelInfo
9 name = "New Old Space Race 2"
10 description = "Under maintenance..."
11 tags = "gametype"
12 screenshot = "spacerace.png"
13/>
14   
15<?lua
16  include("stats.oxo")
17  include("HUDTemplates3.oxo")
18  include("templates/lodInformation.oxt")
19  include("templates/fastship.oxt")
20  include("templates/pickupRepresentationTemplates.oxt")
21
22?>
23
24<Level
25 plugins = "gametypes"
26 gametype = "SpaceRace"
27>
28  <templates>
29    <Template link=lodtemplate_default />
30  </templates>
31  <?lua include("includes/notifications.oxi") ?>
32
33  <Scene
34    ambientlight = "0.8, 0.8, 0.8"
35    skybox       = "Orxonox/skyBoxMoreNebula"
36  >
37 
38    <?lua
39      include("includes/pickups.oxi")
40    ?>
41
42
43  <!-- SOUNDS & MUSIC -->
44 
45 
46<WorldSound name="Countdown" position="0,0,0" source="sounds/Countdown.ogg" >
47      <events>
48        <play>
49          <EventListener event="start1" />
50        </play>
51      </events>
52    </WorldSound>
53
54
55<WorldSound name="Go" position="0,0,0" source="sounds/Go.ogg" >
56      <events>
57        <play>
58          <EventListener event="go" />
59        </play>
60      </events>
61    </WorldSound>
62    <DistanceTrigger name="start1" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
63    <DistanceTrigger name="go" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.5  />
64
65    <DistanceTrigger name="racetheme" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.75  />
66      <WorldAmbientSound source="racetheme.ogg" looping="true" playOnLoad="false" >
67    <events>
68        <play>
69          <EventListener event="racetheme" />
70        </play>
71      </events>
72    </WorldAmbientSound>
73
74
75  <!--   <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" /> -->
76    <?lua math.randomseed(98) ?>
77    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
78    <SimpleNotification message="Reach the last check point within 150 seconds!!" />
79
80
81    <!-- ------------------SpawnPoint----------------- -->
82    <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
83    </SpawnPoint>
84
85  <!-- Launch station -->
86  <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static">
87    <attached>
88      <Model scale="20" mesh="Carrier.mesh" />
89    </attached>
90      <collisionShapes>
91        <BoxCollisionShape position="280,0,-100"      halfExtents="600, 200, 100" />
92        <BoxCollisionShape position="380,300,-64"     halfExtents="280, 40, 48" />
93        <BoxCollisionShape position="380,-300,-64"    halfExtents="280, 40, 48" />
94        <BoxCollisionShape position="308, 188,120"      halfExtents="440, 80, 120" />
95        <BoxCollisionShape position="308,-188,120"     halfExtents="440, 80, 120" />
96        <BoxCollisionShape position="308,0,200"       halfExtents="440, 180, 24" />
97        <BoxCollisionShape position="668,0,280"      halfExtents="108, 80, 80" />
98      </collisionShapes>
99  </StaticEntity>
100
101  <!-- ---------------ForceFields----------------- -->
102    <ForceField position="0,0,0" direction="0,-1,0" diameter=700 velocity=2000 length=2000/>
103
104    <!-- ------------------Planet----------------- -->
105    <Planet position="25000,5000,5000" scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
106    <StaticEntity position="0,0,0" collisionType=static>
107        <collisionShapes>
108            <SphereCollisionShape radius="1" />
109        </collisionShapes>
110    </StaticEntity>
111
112   <!-- ---------------asteroid belt1----------------- -->
113    <?lua
114    max = 50
115    for i = 0, max, 1
116    do
117    x = 800+ i*1000
118    y = -500+ math.cos(i)*20
119    z = -500+ math.sin(i)*20
120    ?>
121    <?lua
122    for k = 1, 15, 1
123    do
124    j = math.random()
125    ?>
126
127    <MovableEntity
128      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 1000) ?>,<?lua print(z + math.random() * 1000) ?>"
129      collisionType = "dynamic"
130      linearDamping = "0.5"
131      angularDamping = "0.01"
132      collisiondamage = "0.02"
133      enablecollisiondamage = "true"
134      scale="<?lua print(j * 5) ?>" >
135      <attached>
136        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
137      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
138            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
139          </attached> <?lua end ?>
140        </Model>
141      </attached>
142      <collisionShapes>
143        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
144      </collisionShapes>
145    </MovableEntity>
146    <?lua
147    end
148    ?>
149    <?lua end ?>
150
151   <!-- ---------------asteroid belt2----------------- -->
152    <?lua
153    max = 50
154    for i = 0, max, 1
155    do
156    x = 800+ i*1000
157    y = 100+ math.cos(i)*-20
158    z = 100+ math.sin(i)*-20
159    ?>
160    <?lua
161    for k = 1, 15, 1
162    do
163    j = math.random()
164    ?>
165
166    <MovableEntity
167      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 1000) ?>,<?lua print(z + math.random() * 1000) ?>"
168      collisionType = "dynamic"
169      linearDamping = "0.5"
170      angularDamping = "0.01"
171      collisiondamage = "0.02"
172      enablecollisiondamage = "true"
173      scale="<?lua print(j * 5) ?>" >
174      <attached>
175        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
176      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
177            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
178          </attached> <?lua end ?>
179        </Model>
180      </attached>
181      <collisionShapes>
182        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
183      </collisionShapes>
184    </MovableEntity>
185    <?lua
186    end
187    ?>
188    <?lua end ?>
189
190
191<!-- ---------------------Checkpoints---------------------- -->
192
193<SpaceRaceManager>
194 <checkpoints>
195   
196
197    <RaceCheckPoint name="checkpoint1" position="1000,30,0" yaw=90 pitch=90 direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false" nextcheckpoints="1,-1,-1">
198        <attached>
199      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
200    </attached>
201    <collisionShapes>
202        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
203        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
204        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
205        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
206    </collisionShapes>
207    </RaceCheckPoint>
208
209
210
211<RaceCheckPoint name="checkpoint2" yaw=90 pitch=90 position="3000,200,100" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false" nextcheckpoints="2,-1,-1">
212        <attached>
213      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
214    </attached>
215    <collisionShapes>
216        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
217        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
218        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
219        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
220    </collisionShapes>
221    </RaceCheckPoint>
222
223
224<RaceCheckPoint name="checkpoint3" yaw=90 pitch=90 position="5000,100,300" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
225        <attached>
226      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
227    </attached>
228    <collisionShapes>
229        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
230        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
231        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
232        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
233    </collisionShapes>
234    </RaceCheckPoint>
235
236
237<RaceCheckPoint name="checkpoint4"  yaw=90 pitch=90 position="8000,-150,150" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="false" nextcheckpoints="4,-1,-1">
238        <attached>
239      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
240    </attached>
241    <collisionShapes>
242        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
243        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
244        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
245        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
246    </collisionShapes>
247    </RaceCheckPoint>
248
249
250<RaceCheckPoint name="checkpoint5"  yaw=90 pitch=90 position="10000,-200,200" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="4" islast="false" nextcheckpoints="5,-1,-1">
251        <attached>
252      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
253    </attached>
254    <collisionShapes>
255        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
256        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
257        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
258        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
259    </collisionShapes>
260    </RaceCheckPoint>
261
262
263
264<RaceCheckPoint name="checkpoint6" yaw=90 pitch=90 position="13000,100,100" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="5" islast="false" nextcheckpoints="6,-1,-1">
265        <attached>
266      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
267    </attached>
268    <collisionShapes>
269        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
270        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
271        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
272        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
273    </collisionShapes>
274    </RaceCheckPoint>
275
276
277
278<RaceCheckPoint name="checkpoint7" yaw=90 pitch=90 position="15000,0,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="6" islast="false" nextcheckpoints="7,-1,-1">
279        <attached>
280      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
281    </attached>
282    <collisionShapes>
283        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
284        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
285        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
286        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
287    </collisionShapes>
288    </RaceCheckPoint>
289
290
291<RaceCheckPoint name="checkpoint8" yaw=90 pitch=90 position="18000,150,-150" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="7" islast="false" nextcheckpoints="8,-1,-1">
292        <attached>
293      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
294    </attached>
295    <collisionShapes>
296        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
297        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
298        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
299        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
300    </collisionShapes>
301    </RaceCheckPoint>
302
303
304<RaceCheckPoint name="checkpoint9" yaw=90 pitch=90 position="21000,120,-120" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="8" islast="false" nextcheckpoints="9,-1,-1">
305        <attached>
306      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
307    </attached>
308    <collisionShapes>
309        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
310        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
311        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
312        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
313    </collisionShapes>
314    </RaceCheckPoint>
315
316<RaceCheckPoint name="checkpoint10" yaw=90 pitch=90 position="24000,-150,-80" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="9" islast="false" nextcheckpoints="10,-1,-1">
317        <attached>
318      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
319    </attached>
320    <collisionShapes>
321        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
322        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
323        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
324        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
325    </collisionShapes>
326    </RaceCheckPoint>
327
328<RaceCheckPoint name="checkpoint11" yaw=90 pitch=90 position="27000,-200,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="10" islast="false" nextcheckpoints="11,-1,-1">
329        <attached>
330      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
331    </attached>
332    <collisionShapes>
333        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
334        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
335        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
336        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
337    </collisionShapes>
338    </RaceCheckPoint>
339
340
341
342<RaceCheckPoint name="checkpoint12" yaw=90 pitch=90 position="30000,-50,50" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="11" islast="false" nextcheckpoints="12,-1,-1">
343        <attached>
344      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
345    </attached>
346    <collisionShapes>
347        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
348        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
349        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
350        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
351    </collisionShapes>
352    </RaceCheckPoint>
353
354
355<RaceCheckPoint name="checkpoint13" yaw=90 pitch=90 position="33000,80,60" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="12" islast="false" nextcheckpoints="13,-1,-1">
356        <attached>
357      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
358    </attached>
359    <collisionShapes>
360        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
361        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
362        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
363        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
364    </collisionShapes>
365    </RaceCheckPoint>
366
367
368
369<RaceCheckPoint name="checkpoint14" yaw=90 pitch=90 position="35000,120,20" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="13" islast="false" nextcheckpoints="14,-1,-1">
370        <attached>
371      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
372    </attached>
373    <collisionShapes>
374        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
375        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
376        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
377        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
378    </collisionShapes>
379    </RaceCheckPoint>
380
381<RaceCheckPoint name="checkpoint15" yaw=90 pitch=90 position="38000,80,0" direction="0,1,0" roll="0" collisionType="static" scale="1" distance="40" checkpointindex="14" islast="false" nextcheckpoints="15,-1,-1">
382        <attached>
383      <Model position="0,0,0" scale="70" mesh="Checkpoint_InnerRing.mesh"/>
384    </attached>
385    <collisionShapes>
386        <BoxCollisionShape position="0,0,70"      halfExtents="70, 10, 10" />
387        <BoxCollisionShape position="0,0,-70"     halfExtents="70, 10, 10" />
388        <BoxCollisionShape position="70,0,0"      halfExtents="10, 10, 70" />
389        <BoxCollisionShape position="-70,0,0"     halfExtents="10, 10, 70" />
390    </collisionShapes>
391    </RaceCheckPoint>
392
393
394</checkpoints>
395</SpaceRaceManager>
396
397
398
399<!-- ---------------------PickUps---------------------- -->
400
401    <!--at checkpoint3-->
402    <PickupSpawner pickup=mediumpeedpickup position="4800,100,300" triggerDistance="60" respawnTime="10" maxSpawnedItems="99" scale="8" />
403    <!--at checkpoint#6-->
404    <PickupSpawner pickup=mediumshrinkpickup position="14800,0,0" triggerDistance="60" respawnTime="20" maxSpawnedItems="5" scale="8"/>
405    <!--at checkpoint9-->
406    <PickupSpawner pickup=smallshrinkpickup position="20800,120,-120" triggerDistance="60" respawnTime="10" maxSpawnedItems="10" scale="8"/>
407    <!--at checkpoint12-->
408    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="29800,-50,50" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
409    <!--stray pickups-->
410    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="6000,-300,100" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
411    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="9000,300,200" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
412    <PickupSpawner pickup=triplehealthspeedinvisibilitypickup position="20000,-400,0" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
413
414  </Scene>
415</Level>
416 
Note: See TracBrowser for help on using the repository browser.