Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

level file changed

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