Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5516 was 5516, checked in by Aurelian, 15 years ago

nice forcefield particles, level file is not really working, work is ongoing

File size: 4.3 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<SpawnPoint position="-300,300,0" name="playerstart" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
21
22
23
24<?lua
25for i = 1, 100, 1
26do ?>
27  <Model scale="<?lua print(math.random() * 150 + 30) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" position="<?lua print(math.random() *      10000 ) ?>,<?lua print(math.random() * 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>">
28   
29</Model>
30<?lua
31end
32?>
33
34
35
36<ForceField position="0,-300,0" direction="0,-1,0" diameter=500 velocity=70>
37  <attached>
38    <ParticleEmitter source="Orxonox/forcefield" startdelay=0 />
39  </attached>         
40 </ForceField>
41 
42 <!--
43 <ForceField position="1000,-100,0" direction="0,1,1" diameter=500 velocity=30>
44  <attached>
45    <ParticleEmitter source="Orxonox/forcefield" startdelay=0 />
46  </attached>         
47 </ForceField>
48 
49 <ForceField position="1800,300,-300" direction="0,0,1" diameter=800 velocity=100>
50  <attached>
51    <ParticleEmitter source="Orxonox/forcefield" startdelay=0 />
52  </attached>         
53 </ForceField>
54-->
55
56
57<CheckPoint name=trigger1 position="-200,300,0" scale=5 isdestination=false isfirst=true stayactive=true distance=50 addtime=20>
58  <attached>
59    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="1,0,0">
60    </Billboard>
61  </attached>
62</CheckPoint>
63
64
65<CheckPoint name=trigger2 position="1000,300,0" scale=5 isdestination=false stayactive=true distance=100 addtime=5>
66  <events>
67    <activity>
68      <EventListener event=trigger1 />
69    </activity>
70  </events>
71  <attached>
72    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="1,0,0" />
73  </attached>
74  <attached>
75    <BlinkingBillboard frequency=0.2 amplitude=1 position="0,0,1" scale=1 material="Flares/lensflare" colour="1,1,0">
76      <events>
77        <visibility>
78          <EventListener event=trigger1 />
79        </visibility>
80      </events>
81    </BlinkingBillboard>
82  </attached>
83  <attached>
84    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="0,1,0">
85      <events>
86        <visibility>
87          <EventListener event=trigger2 />
88        </visibility>
89      </events>
90    </Billboard>
91  </attached>
92</CheckPoint>
93
94
95<CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=100 addtime=5>
96  <events>
97    <activity>
98      <EventListener event=trigger2 />
99    </activity>
100  </events>
101  <attached>
102    <BlinkingBillboard frequency=0.2 amplitude=1 position="0,0,0" scale=1 material="Flares/lensflare" colour="1,1,0">
103      <events>
104        <visibility>
105          <EventListener event=trigger2 />
106        </visibility>
107      </events>
108    </BlinkingBillboard>
109  </attached>
110  <attached>
111    <Billboard position="0,0,0" scale=1 material="Flares/lensflare" colour="1,0,0" />
112  </attached>
113</CheckPoint>
114
115
116
117
118
119<!--
120<CheckPoint name=trigger1 position="-300,300,0" scale=5 isdestination=false isfirst=true stayactive=true distance=50 addtime=5 visibillity=false />
121
122
123<CheckPoint name=trigger2 position="1000,300,0" scale=5 isdestination=false stayactive=true distance=100 addtime=5>
124  <events>
125    <activity>
126      <EventListener event=trigger1 />
127    </activity>
128  </events>
129</CheckPoint>
130
131
132<CheckPoint name=trigger3 position="1800,300,800" stayactive=true distance=100 addtime=5>
133  <events>
134    <activity>
135      <EventListener event=trigger2 />
136    </activity>
137  </events>
138</CheckPoint>
139
140
141
142
143<CheckPoint name=trigger4 position="2600,400,1100" stayactive=true distance=100 addtime=25>
144  <events>
145    <activity>
146      <EventListener event=trigger3 />
147    </activity>
148  </events>
149</CheckPoint>
150
151
152
153<Model position="3800,400,1800" scale=10 mesh="Carrier.mesh" pitch=180>
154  <attached>
155    <CheckPoint position="-10,0,0" name=trigger5 stayactive=true distance=80 isdestination=true scal=1>
156      <events>
157        <activity>
158          <EventListener event=trigger4 />
159        </activity>
160      </events>
161    </CheckPoint>
162  </attached>
163</Model>
164-->
165
166
167  </Scene>
168</Level>
Note: See TracBrowser for help on using the repository browser.