Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/gametype_asteroids.oxw @ 5526

Last change on this file since 5526 was 5521, checked in by Aurelian, 16 years ago

Level file with blinking checkpoints, forcefield has right direction now…

File size: 10.8 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3  include("overlay/stats.oxo")
4  include("levels/spaceshiptemplates_presentation.oxw")
5?>
6
7<Level
8 name         = "Asteroids Race"
9 description  = "testmap for gametype asteroid race"
10 gametype     = Asteroids
11>
12  <Scene
13   ambientlight = "0.5, 0.5, 0.5"
14   skybox       = "Orxonox/Starbox"
15  >
16
17<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" />
18
19
20
21<SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
22
23<!--
24<?lua
25for i = 1, 500, 1
26do
27j = math.random()
28?>
29   
30    <MovableEntity position="<?lua print(math.random()* 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 scale=<?lua print(j * 150 + 30) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() *100) ?>" >
31      <attached>
32        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mass=<?lua print(j * 30) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
33      </attached>
34      <collisionShapes>
35        <SphereCollisionShape radius="<?lua print(j * 2300 + 450) ?>" />
36      </collisionShapes>
37    </MovableEntity>
38<?lua
39end
40?>
41-->
42
43
44<MovableEntity position="0,0,0" collisionType=dynamic linearDamping=0.8 angularDamping=0 scale=5 collisiondamage=1 enablecollisiondamage=true> 
45  <attached>
46    <Model position="0,0,0" scale=10 mass=100 mesh="ast1.mesh" />
47  </attached>
48    <collisionShapes>
49      <SphereCollisionShape radius=150 />
50    </collisionShapes>
51</MovableEntity>
52
53
54<ForceField position="0,-500,0" direction="0,1,0" diameter=500 velocity=70>
55  <attached>
56    <ParticleEmitter source="Orxonox/ForceFieldPurple" startdelay=0 />
57  </attached>         
58 </ForceField>
59 
60
61 <ForceField position="1000,-500,0" direction="0,1,1" diameter=500 velocity=30>
62  <attached>
63    <ParticleEmitter source="Orxonox/ForceFieldGreen" startdelay=0 />
64  </attached>         
65 </ForceField>
66 
67 <ForceField position="1800,-300,-300" direction="0,0,1" diameter=800 velocity=100>
68  <attached>
69    <ParticleEmitter source="Orxonox/ForceFieldBlue" startdelay=0 />
70  </attached>         
71 </ForceField>
72
73
74
75<CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=20 />
76
77
78<CheckPoint name=trigger2 position="1100,300,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
79  <events>
80    <activity>
81      <EventListener event=trigger1 />
82    </activity>
83  </events>
84  <attached>
85    <Billboard material="Flares/lensflare" colour="1,0,0">
86      <events>
87        <visibility>
88          <EventTrigger invert=true>
89            <events>
90              <trigger>
91                <EventListener event=trigger1 />
92              </trigger>
93            </events>
94          </EventTrigger>
95        </visibility>
96      </events>
97    </Billboard>
98    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
99      <events>
100        <visibility>
101          <EventTrigger>
102            <events>
103              <trigger>
104                <EventListener event=trigger1 />
105              </trigger>
106            </events>
107            <EventTrigger invert=true>
108              <events>
109                <trigger>
110                  <EventListener event=trigger2 />
111                </trigger>
112              </events>
113            </EventTrigger>
114          </EventTrigger>
115        </visibility>
116      </events>
117    </BlinkingBillboard>
118    <Billboard material="Flares/lensflare" colour="0,1,0">
119      <events>
120        <visibility>
121          <EventListener event=trigger2 />
122        </visibility>
123      </events>
124    </Billboard>
125  </attached>
126</CheckPoint>
127
128
129<CheckPoint name=trigger3 position="2100,0,200" scale=3 isdestination=false stayactive=true distance=100 addtime=10>
130  <events>
131    <activity>
132      <EventListener event=trigger2 />
133    </activity>
134  </events>
135  <attached>
136    <Billboard material="Flares/lensflare" colour="1,0,0">
137      <events>
138        <visibility>
139          <EventTrigger invert=true>
140            <events>
141              <trigger>
142                <EventListener event=trigger2 />
143              </trigger>
144            </events>
145          </EventTrigger>
146        </visibility>
147      </events>
148    </Billboard>
149    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
150      <events>
151        <visibility>
152          <EventTrigger>
153            <events>
154              <trigger>
155                <EventListener event=trigger2 />
156              </trigger>
157            </events>
158            <EventTrigger invert=true>
159              <events>
160                <trigger>
161                  <EventListener event=trigger3 />
162                </trigger>
163              </events>
164            </EventTrigger>
165          </EventTrigger>
166        </visibility>
167      </events>
168    </BlinkingBillboard>
169    <Billboard material="Flares/lensflare" colour="0,1,0">
170      <events>
171        <visibility>
172          <EventListener event=trigger3 />
173        </visibility>
174      </events>
175    </Billboard>
176  </attached>
177</CheckPoint>
178
179
180<CheckPoint name=trigger4 position="2800,200,0" scale=3 isdestination=false stayactive=true distance=100 addtime=7>
181  <events>
182    <activity>
183      <EventListener event=trigger3 />
184    </activity>
185  </events>
186  <attached>
187    <Billboard material="Flares/lensflare" colour="1,0,0">
188      <events>
189        <visibility>
190          <EventTrigger invert=true>
191            <events>
192              <trigger>
193                <EventListener event=trigger3 />
194              </trigger>
195            </events>
196          </EventTrigger>
197        </visibility>
198      </events>
199    </Billboard>
200    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
201      <events>
202        <visibility>
203          <EventTrigger>
204            <events>
205              <trigger>
206                <EventListener event=trigger3 />
207              </trigger>
208            </events>
209            <EventTrigger invert=true>
210              <events>
211                <trigger>
212                  <EventListener event=trigger4 />
213                </trigger>
214              </events>
215            </EventTrigger>
216          </EventTrigger>
217        </visibility>
218      </events>
219    </BlinkingBillboard>
220    <Billboard material="Flares/lensflare" colour="0,1,0">
221      <events>
222        <visibility>
223          <EventListener event=trigger4 />
224        </visibility>
225      </events>
226    </Billboard>
227  </attached>
228</CheckPoint>
229
230
231<CheckPoint name=trigger5 position="3600,300,-100" scale=3 isdestination=false stayactive=true distance=100 addtime=6>
232  <events>
233    <activity>
234      <EventListener event=trigger4 />
235    </activity>
236  </events>
237  <attached>
238    <Billboard material="Flares/lensflare" colour="1,0,0">
239      <events>
240        <visibility>
241          <EventTrigger invert=true>
242            <events>
243              <trigger>
244                <EventListener event=trigger4 />
245              </trigger>
246            </events>
247          </EventTrigger>
248        </visibility>
249      </events>
250    </Billboard>
251    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
252      <events>
253        <visibility>
254          <EventTrigger>
255            <events>
256              <trigger>
257                <EventListener event=trigger4 />
258              </trigger>
259            </events>
260            <EventTrigger invert=true>
261              <events>
262                <trigger>
263                  <EventListener event=trigger5 />
264                </trigger>
265              </events>
266            </EventTrigger>
267          </EventTrigger>
268        </visibility>
269      </events>
270    </BlinkingBillboard>
271    <Billboard material="Flares/lensflare" colour="0,1,0">
272      <events>
273        <visibility>
274          <EventListener event=trigger5 />
275        </visibility>
276      </events>
277    </Billboard>
278  </attached>
279</CheckPoint>
280
281
282<CheckPoint name=trigger6 position="4600, 800,-400" scale=3 isdestination=false stayactive=true distance=100 addtime=6>
283  <events>
284    <activity>
285      <EventListener event=trigger5 />
286    </activity>
287  </events>
288  <attached>
289    <Billboard material="Flares/lensflare" colour="1,0,0">
290      <events>
291        <visibility>
292          <EventTrigger invert=true>
293            <events>
294              <trigger>
295                <EventListener event=trigger5 />
296              </trigger>
297            </events>
298          </EventTrigger>
299        </visibility>
300      </events>
301    </Billboard>
302    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
303      <events>
304        <visibility>
305          <EventTrigger>
306            <events>
307              <trigger>
308                <EventListener event=trigger5 />
309              </trigger>
310            </events>
311            <EventTrigger invert=true>
312              <events>
313                <trigger>
314                  <EventListener event=trigger6 />
315                </trigger>
316              </events>
317            </EventTrigger>
318          </EventTrigger>
319        </visibility>
320      </events>
321    </BlinkingBillboard>
322    <Billboard material="Flares/lensflare" colour="0,1,0">
323      <events>
324        <visibility>
325          <EventListener event=trigger6 />
326        </visibility>
327      </events>
328    </Billboard>
329  </attached>
330</CheckPoint>
331
332
333<Model position="3800,1200,-900" scale=10 mesh="Carrier.mesh" pitch=180>
334  <attached>
335    <CheckPoint position="-10,0,0" name=trigger7 scale=0.1 isdestination=true stayactive=true distance=100>
336  <events>
337    <activity>
338      <EventListener event=trigger6 />
339    </activity>
340  </events>
341  <attached>
342    <Billboard material="Flares/lensflare" colour="1,0,0">
343      <events>
344        <visibility>
345          <EventTrigger invert=true>
346            <events>
347              <trigger>
348                <EventListener event=trigger6 />
349              </trigger>
350            </events>
351          </EventTrigger>
352        </visibility>
353      </events>
354    </Billboard>
355    <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0">
356      <events>
357        <visibility>
358          <EventTrigger>
359            <events>
360              <trigger>
361                <EventListener event=trigger6 />
362              </trigger>
363            </events>
364            <EventTrigger invert=true>
365              <events>
366                <trigger>
367                  <EventListener event=trigger7 />
368                </trigger>
369              </events>
370            </EventTrigger>
371          </EventTrigger>
372        </visibility>
373      </events>
374    </BlinkingBillboard>
375    <Billboard material="Flares/lensflare" colour="0,1,0">
376      <events>
377        <visibility>
378          <EventListener event=trigger7 />
379        </visibility>
380      </events>
381    </Billboard>
382  </attached>
383</CheckPoint>
384  </attached>
385</Model>
386
387  </Scene>
388</Level>
Note: See TracBrowser for help on using the repository browser.