Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

changed level file

File size: 11.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/spaceshipAssff.oxt")
13
14?>
15
16<?lua
17  include("templates/spaceshipAssff2.oxt")
18  include("templates/fastship.oxt")
19  include("templates/spaceshipPirate.oxt")
20?>
21
22<Level
23 plugins = "gametypes"
24 gametype = "OldSpaceRace"
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <Scene
32    ambientlight = "0.8, 0.8, 0.8"
33    skybox       = "Orxonox/skyBoxMoreNebula"
34  >
35 
36
37
38  <!-- SOUNDS & MUSIC -->
39 
40 
41<WorldSound name="Countdown" position="0,0,0" source="sounds/Countdown.ogg" >
42      <events>
43        <play>
44          <EventListener event="start1" />
45        </play>
46      </events>
47    </WorldSound>
48
49
50<WorldSound name="Go" position="0,0,0" source="sounds/Go.ogg" >
51      <events>
52        <play>
53          <EventListener event="go" />
54        </play>
55      </events>
56    </WorldSound>
57
58
59    <DistanceTrigger name="start1" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
60    <DistanceTrigger name="go" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.5  />
61
62    <DistanceTrigger name="racetheme" position="0,0,0"  target="Pawn" distance=100 stayActive="true" delay=10.75  />
63
64
65
66     
67      <WorldAmbientSound source="racetheme.ogg" looping="true" playOnLoad="false" >
68    <events>
69        <play>
70          <EventListener event="racetheme" />
71        </play>
72      </events>
73    </WorldAmbientSound>
74
75
76
77  <!-- Das erste Bot -->
78    <SpaceShip position="20,0,0" lookat="25,0,0">
79      <templates>
80        <Template link=fastship />
81      </templates>
82      <controller>
83        <WaypointPatrolController alertnessradius=1 team=10>
84          <waypoints>
85            <Model mesh="cube.mesh" scale=0 position="1000,0,0" />
86            <Model mesh="cube.mesh" scale=0 position="1500,1000,250" />
87            <Model mesh="cube.mesh" scale=0 position="0,400,300" />
88          </waypoints>
89        </WaypointPatrolController>
90      </controller>
91    </SpaceShip>
92
93
94
95
96
97
98  <!--   <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" /> -->
99 
100
101    <?lua math.randomseed(98) ?>
102
103    <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"/>
104
105    <SimpleNotification message="Reach the last check point within 150 seconds!!" />
106
107    <!-- ------------------SpawnPoint----------------- -->
108    <SpawnPoint position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=fastship active="true" >
109    </SpawnPoint>
110
111        <Model mesh="axes.mesh" scale="10" position="600,0,0"/>
112        <Model mesh="axes.mesh" scale="10" position="800,0,0"/>
113        <Model mesh="axes.mesh" scale="10" position="1000,0,0"/>
114        <Model mesh="axes.mesh" scale="10" position="1100,0,0"/>
115        <Model mesh="axes.mesh" scale="10" position="1200,0,0"/>
116        <Model mesh="axes.mesh" scale="10" position="1300,0,0"/>
117        <Model mesh="axes.mesh" scale="10" position="1400,0,0"/>
118        <Model mesh="axes.mesh" scale="10" position="1500,0,0"/>
119        <Model mesh="axes.mesh" scale="10" position="1600,0,0"/>
120        <Model mesh="axes.mesh" scale="10" position="1700,0,0"/>
121
122
123    <!-- Launch station -->
124  <StaticEntity mass="50" position="-400,-20,0" direction="0,-90,0" collisionType="static">
125    <attached>
126      <Model scale="20" mesh="Carrier.mesh" />
127    </attached>
128      <collisionShapes>
129        <BoxCollisionShape position="280,0,-100"      halfExtents="600, 200, 100" />
130        <BoxCollisionShape position="380,300,-64"     halfExtents="280, 40, 48" />
131        <BoxCollisionShape position="380,-300,-64"    halfExtents="280, 40, 48" />
132        <BoxCollisionShape position="308, 188,120"      halfExtents="440, 80, 120" />
133        <BoxCollisionShape position="308,-188,120"     halfExtents="440, 80, 120" />
134        <BoxCollisionShape position="308,0,200"       halfExtents="440, 180, 24" />
135        <BoxCollisionShape position="668,0,280"      halfExtents="108, 80, 80" />
136      </collisionShapes>
137  </StaticEntity>
138
139   <!-- ---------------asteroid ellipse1----------------- -->
140    <?lua
141    max = 50
142    for i = 0, max, 1
143    do
144    x = i*1000
145    y = math.cos(i)*20
146    z = math.sin(i)*20
147    ?>
148    <?lua
149    for k = 1, 15, 1
150    do
151    j = math.random()
152    ?>
153
154    <MovableEntity
155      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
156      collisionType = "dynamic"
157      linearDamping = "0.5"
158      angularDamping = "0.01"
159      collisiondamage = "0.01"
160      enablecollisiondamage = "true"
161      scale="<?lua print(j * 5) ?>" >
162      <attached>
163        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
164      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
165            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
166          </attached> <?lua end ?>
167        </Model>
168      </attached>
169      <collisionShapes>
170        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
171      </collisionShapes>
172    </MovableEntity>
173    <?lua
174    end
175    ?>
176    <?lua end ?>
177
178   <!-- ---------------asteroid ellipse1----------------- -->
179    <?lua
180    max = 50
181    for i = 0, max, 1
182    do
183    x = i*1000
184    y = math.cos(i)*-20
185    z = math.sin(i)*-20
186    ?>
187    <?lua
188    for k = 1, 15, 1
189    do
190    j = math.random()
191    ?>
192
193    <MovableEntity
194      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
195      collisionType = "dynamic"
196      linearDamping = "0.5"
197      angularDamping = "0.01"
198      collisiondamage = "0.01"
199      enablecollisiondamage = "true"
200      scale="<?lua print(j * 5) ?>" >
201      <attached>
202        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
203      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
204            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
205          </attached> <?lua end ?>
206        </Model>
207      </attached>
208      <collisionShapes>
209        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
210      </collisionShapes>
211    </MovableEntity>
212    <?lua
213    end
214    ?>
215    <?lua end ?>
216
217
218    <!-- ---------------ForceFields----------------- -->
219    <ForceField position="0,0,0" direction="0,-1,0" diameter=500 velocity=2000 length=1200/>
220
221   <!-- ------------------CheckPoints----------------- -->
222   <OldRaceCheckPoint name="checkpoint1" direction="0,2,0" position="800,20,0" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false">
223        <attached>
224            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
225        </attached>
226        <collisionShapes>
227            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
228            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
229            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
230            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
231        </collisionShapes>
232    </OldRaceCheckPoint>
233
234    <OldRaceCheckPoint name="checkpoint2" position="1600,60,40" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false">
235        <attached>
236            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
237        </attached>
238        <collisionShapes>
239            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
240            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
241            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
242            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
243        </collisionShapes>
244    </OldRaceCheckPoint>
245
246    <OldRaceCheckPoint name="checkpoint3" position="2400,100,70" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false">
247        <attached>
248            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
249        </attached>
250        <collisionShapes>
251            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
252            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
253            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
254            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
255        </collisionShapes>
256    </OldRaceCheckPoint>     
257
258    <OldRaceCheckPoint name="checkpoint4" position="3200,150,120" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="false">
259        <attached>
260            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
261        </attached>
262        <collisionShapes>
263            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
264            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
265            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
266            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
267        </collisionShapes>
268    </OldRaceCheckPoint>   
269
270    <OldRaceCheckPoint name="checkpoint5" position="4000,200,140" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="4" islast="false">
271        <attached>
272            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
273        </attached>
274        <collisionShapes>
275            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
276            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
277            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
278            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
279        </collisionShapes>
280    </OldRaceCheckPoint> 
281
282    <OldRaceCheckPoint name="checkpoint6" position="4800,100,100" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="5" islast="false">
283        <attached>
284            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
285        </attached>
286        <collisionShapes>
287            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
288            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
289            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
290            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
291        </collisionShapes>
292    </OldRaceCheckPoint>
293
294    <OldRaceCheckPoint name="checkpoint7" position="5600,0,-20" stayActive="true" collisionType="static" scale="1" distance="40" checkpointindex="6" islast="true">
295        <attached>
296            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
297        </attached>
298        <collisionShapes>
299            <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
300            <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
301            <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
302            <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
303        </collisionShapes>
304    </OldRaceCheckPoint>
305
306  </Scene>
307</Level>
Note: See TracBrowser for help on using the repository browser.