Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS12/data/levels/presentationHS12.oxw @ 9521

Last change on this file since 9521 was 9521, checked in by jo, 12 years ago

Improved level version.

File size: 18.5 KB
Line 
1<!-- NEW FEATURES:
2- Three new Spaceships: collateralDamage; planetDestroyer; lightEscortship;
3- Shaders (not included here, since the ogre plugin is missing on Ubuntu)
4- Sound Effects (not included)
5- Animation (not included)
6- HUD aiming assistant
7- Turret
8- Racing Bots
9-->
10<LevelInfo
11 name = "Presentation HS 2012"
12 description = "New Features: new Spaceships, Racing AI, HUD Aiming Assistant, Turret, Shaders, Sound Effects"
13 tags = "presentation"
14 screenshot = "emptylevel.png"
15/>
16
17<?lua
18  include("stats.oxo")
19  include("HUDTemplates3.oxo")
20  include("templates/lodInformation.oxt")
21  include("templates/pickupRepresentationTemplates.oxt")
22?>
23
24<?lua
25  include("templates/spaceshipAssff.oxt")
26  include("templates/spaceshipPirate.oxt")
27  include("templates/spaceshipEscort.oxt")
28  include("templates/bigship.oxt")
29  include("templates/spaceshipTurret.oxt")
30  include("templates/spaceshipCollateralDamage.oxt")
31?>
32
33<Level
34  gametype = SpaceRace
35>
36  <templates>
37    <Template link=lodtemplate_default />
38  </templates>
39  <?lua include("includes/notifications.oxi") ?>
40
41  <NotificationQueueCEGUI
42    name="narrative"
43    targets="simpleNotification"
44    size=1
45    displayTime=30
46    position="0.2, 0, 0.1, 0"
47    fontSize="24"
48    fontColor="0.3, 1, 0.2, 0.8"
49    alignment="HorzCentred"
50    displaySize="0.6, 0, 0, 0"
51    />
52
53  <Scene
54    ambientlight = "0.8, 0.8, 0.8"
55    skybox       = "Orxonox/skyBoxMoreNebula"
56  > <!-- Orxonox/Starbox -->
57    <?lua
58      include("includes/pickups.oxi")
59    ?>
60
61    <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"/>
62    <SpawnPoint team=0 position="-800,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
63    <!--SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=bigship /-->
64    <!--SpawnPoint team=0 position="-900,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage /-->
65    <!--SpawnPoint team=0 position="6000,0,2000" lookat="1,1,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage /-->
66   
67    <SpaceRaceManager>
68        <checkpoints>
69            <RaceCheckPoint name="checkpoint1" position="000,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="0" islast="false" nextcheckpoints="1,2,3">
70                <attached>
71                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
72                </attached>
73            </RaceCheckPoint>
74<!--- first three alternative paths --->
75            <RaceCheckPoint name="checkpoint2" position="1300,0,-800" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="1" islast="false" nextcheckpoints="7,-1,-1">
76                <attached>
77                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90/>
78                </attached>
79            </RaceCheckPoint>
80
81            <RaceCheckPoint name="checkpoint3" position="1200,-400,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="2" islast="false" nextcheckpoints="5,-1,-1">
82                <attached>
83                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
84                </attached>
85            </RaceCheckPoint>
86
87            <RaceCheckPoint name="checkpoint4" position="1200,100,700" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="3" islast="false" nextcheckpoints="6,-1,-1">
88                <attached>
89                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
90                </attached>
91            </RaceCheckPoint>
92
93<!--- second three alternative paths --->
94            <!--RaceCheckPoint name="checkpoint5" position="2000,500,-400" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="4" islast="false" nextcheckpoints="7,-1,-1">
95                <attached>
96                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
97                </attached>
98            </RaceCheckPoint-->
99
100            <RaceCheckPoint name="checkpoint6" position="2000,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="5" islast="false" nextcheckpoints="8,9,-1">
101                <attached>
102                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
103                </attached>
104            </RaceCheckPoint>
105
106            <RaceCheckPoint name="checkpoint7" position="2000,-500,400" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="6" islast="false" nextcheckpoints="10,-1,-1">
107                <attached>
108                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
109                </attached>
110            </RaceCheckPoint>
111
112
113<!--- third generation --->
114
115            <RaceCheckPoint name="checkpoint8" position="5000,0,-3000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="7" islast="false" nextcheckpoints="12,-1,-1">
116                <attached>
117                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=135 />
118                </attached>
119            </RaceCheckPoint>
120
121            <RaceCheckPoint name="checkpoint9" position="3500,800,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="8" islast="false" nextcheckpoints="11,-1,-1">
122                <attached>
123                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
124                </attached>
125            </RaceCheckPoint>
126
127            <RaceCheckPoint name="checkpoint10" position="3500,-800,0" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="9" islast="false" nextcheckpoints="11,-1,-1">
128                <attached>
129                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
130                </attached>
131            </RaceCheckPoint>
132
133            <RaceCheckPoint name="checkpoint11" position="3500,0,1000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="10" islast="false" nextcheckpoints="12,-1,-1">
134                <attached>
135                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
136                </attached>
137            </RaceCheckPoint>
138
139<!-- Intermediate Solo Gate -->
140            <RaceCheckPoint name="checkpoint12" position="4500,0,-100" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="11" islast="false" nextcheckpoints="12,-1,-1">
141                <attached>
142                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
143                </attached>
144            </RaceCheckPoint>
145
146<!----  First Common Point  ---->
147            <RaceCheckPoint name="checkpoint13" position="6000,0,2000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="12" islast="false" nextcheckpoints="13,14,-1">
148                <attached>
149                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=45 />
150                </attached>
151            </RaceCheckPoint>
152
153<!-- Two Paths (1) -->
154            <RaceCheckPoint name="checkpoint14" position="7500,-1500,2500" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="13" islast="false" nextcheckpoints="15,-1,-1">
155                <attached>
156                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=130 roll=1 />
157                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.6,0.4,0.1" scale=3 />
158                </attached>
159            </RaceCheckPoint>
160
161            <RaceCheckPoint name="checkpoint15" position="7500,-1500,1500" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="14" islast="false" nextcheckpoints="16,-1,-1">
162                <attached>
163                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=90 />
164                </attached>
165            </RaceCheckPoint>
166
167<!-- Two Paths (2) -->
168            <RaceCheckPoint name="checkpoint16" position="9000,-3000, 3000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="15" islast="false" nextcheckpoints="17,-1,-1">
169                <attached>
170                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=130 roll=1 />
171                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=3 />
172                </attached>
173            </RaceCheckPoint>
174
175            <RaceCheckPoint name="checkpoint17" position="9000,-3000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="16" islast="false" nextcheckpoints="17,-1,-1">
176                <attached>
177                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=110 />
178                </attached>
179            </RaceCheckPoint>
180
181<!-- GOAL -->
182            <RaceCheckPoint name="checkpoint18" position="12000,-4000,2000" direction="0,-1,1" collisionType="static" scale="1" distance="70" checkpointindex="17" islast="true">
183                <attached>
184                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=135 />
185                </attached>
186            </RaceCheckPoint>
187        </checkpoints>
188    </SpaceRaceManager>
189
190
191
192
193
194<!-- Simplify paths -->
195    <!-- PORTALS -->
196
197    <Template name=PortalDefault>
198        <PortalEndPoint>
199            <attached>
200                <Billboard material="Portals/Default" scale="3"/>
201            </attached>
202        </PortalEndPoint>
203    </Template>
204
205    <PortalEndPoint position="2000,0,-1000" id="3" distance="60" target="MobileEntity" design="PortalDefault" />
206    <PortalEndPoint position="4500,0,-3400" id="4" distance="60" target="MobileEntity" design="PortalDefault" />
207    <PortalLink fromID="3" toID="4" />
208    <PortalLink fromID="4" toID="3" />
209
210
211    <!-- ForceField -->
212800,400,0
213        <ForceField position="1200,-400,0" direction="8,4,0" diameter=500 velocity=2000 length=500 />
214        <MovableEntity position="1200,-400,0">
215            <attached>
216                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.1,0.1,0.1" scale=1/>
217                <?lua for i=0,4,1 do ?>
218                    <Billboard position="<?lua print(i*200) ?>,<?lua print(i*100) ?>,-100" material="Examples/Flare" colour="0.1,0.1,0.1" scale=1/>
219                    <Billboard position="<?lua print(i*200) ?>,<?lua print(i*100) ?>,100" material="Examples/Flare" colour="0.1,0.1,0.1" scale=1/>
220                <?lua end ?>
221                </attached>
222        </MovableEntity>
223
224
225   <!-- Pickup -->
226   <PickupSpawner pickup=smallspeedpickup position="5300,0,-2300" triggerDistance="60" respawnTime="10" maxSpawnedItems="99" scale="12" />
227
228
229<!--- SCENERY --->
230    <!-- @Objects: HYDROGEN FARMER-->
231    <StaticEntity position="5700,0,-3700" mass=10000 >
232      <attached>
233        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
234        <ParticleEmitter position="0,0,0" source="Orxonox/ThrusterFire" scale=1.2 />
235   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
236        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
237        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
238        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
239        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
240        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
241        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
242        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
243        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
244        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
245        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
246        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
247        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
248        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
249        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
250        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
251      </attached>
252      <collisionShapes>
253        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
254        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
255        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
256        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
257        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
258        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
259        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
260        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
261        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
262        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
263        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
264        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
265        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
266        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
267        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
268        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
269      </collisionShapes>
270    </StaticEntity>
271
272    <StaticEntity position="2800,0,0" mass=10000 pitch=0 roll=45 yaw=240 >
273      <attached>
274        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsBody.mesh" />
275        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsDuseL.mesh" />
276        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsDuseR.mesh" />
277        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsKuppelV.mesh" />
278        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsKuppelK.mesh" />
279        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsAntL.mesh" />
280        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsAntR.mesh" />
281        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsGarage.mesh" />
282        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsStation.mesh" />
283
284        <BlinkingBillboard position="20,-24,160" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
285        <BlinkingBillboard position="-20,-24,160" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
286        <BlinkingBillboard position="20,-25,190" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=40 quadratic=1 />
287        <BlinkingBillboard position="-20,-25,190" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=40 quadratic=1 />
288        <BlinkingBillboard position="20,-25,220" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=80 quadratic=0 />
289        <BlinkingBillboard position="-20,-25,220" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=80 quadratic=0 />
290        <BlinkingBillboard position="20,-26,250" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=120 quadratic=0 />
291        <BlinkingBillboard position="-20,-26,250" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=120 quadratic=0 />
292        <BlinkingBillboard position="20,-26,28" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=160 quadratic=0 />
293        <BlinkingBillboard position="-20,-26,28" material="Examples/Flare" colour="0.3, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=160 quadratic=0 />
294        <BlinkingBillboard position="29,-35,142" material="Examples/Flare" colour="1, 0.4, 0.4, 0.1" amplitude=0.2 frequency=30 phase=0 quadratic=0 />
295        <BlinkingBillboard position="-29,-35,142" material="Examples/Flare" colour="1, 0.4, 0.4, 0.1" amplitude=0.2 frequency=30 phase=0 quadratic=0 />
296      </attached>
297    </StaticEntity>
298    <!-- triple large belt around the planet  -->
299    <?lua
300        dofile("includes/asteroidField.lua")
301        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
302    ?>
303    <?lua
304        dofile("includes/asteroidField.lua")
305        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
306    ?>
307    <?lua
308        dofile("includes/asteroidField.lua")
309        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
310    ?>
311
312    <Planet
313      position="15000,0,-1000"
314      scale="5000"
315      collisionType="dynamic"
316      linearDamping="0.8"
317      angularDamping="0"
318      mass="10000000"
319      pitch="0"
320      mesh="planets/ganymede.mesh"
321      atmosphere="atmosphere1"
322      rotationaxis="1,0,0"
323      rotationrate="1.0"
324      atmospheresize="80.0f"
325      imagesize="1024.0f"
326      collisiondamage = 2
327      enablecollisiondamage = true
328    >
329      <attached>
330        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
331      </attached>
332      <collisionShapes>
333        <SphereCollisionShape radius="5000" position="0,0,0" />
334      </collisionShapes>
335    </Planet>
336
337
338<!-- INTERACTIVE LEVEL -->
339    <DistanceTrigger name="start" position="-900,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
340    <DistanceTrigger name="spawnBots" position="-900,0,0"  target="Pawn" distance=100 stayActive="true" delay=4.5 />
341
342    <SimpleNotification message="Sound Effetcs by Mike." broadcast="true">
343        <events>
344            <trigger>
345                <EventListener event=start />
346            </trigger>
347        </events>
348    </SimpleNotification>
349
350    <Script code="addBots 3" onLoad="false">
351        <events>
352            <trigger>
353                <EventListener event=spawnBots />
354            </trigger>
355        </events>
356    </Script>
357
358
359<!-- SOUNDS & MUSIC -->
360            <WorldSound name="scoreSound" position="-900,0,0" source="sounds/ReadyGo.ogg" >
361              <events>
362                <play>
363                  <EventListener event="start" />
364                </play>
365              </events>
366            </WorldSound>
367
368
369
370
371  </Scene>
372</Level>
373
Note: See TracBrowser for help on using the repository browser.