Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationHS12.oxw @ 9663

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

Updating the levels.

File size: 23.3 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="-900,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="100" 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="100" 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="100" checkpointindex="2" islast="false" nextcheckpoints="4,-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="100" checkpointindex="3" islast="false" nextcheckpoints="5,-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,0,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="4" islast="false" nextcheckpoints="7,8,-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,-500,400" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="5" islast="false" nextcheckpoints="9,-1,-1">
101                <attached>
102                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
103                </attached>
104            </RaceCheckPoint>
105
106
107<!--- third generation --->
108
109            <RaceCheckPoint name="checkpoint7" position="5000,0,-3000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="6" islast="false" nextcheckpoints="11,-1,-1">
110                <attached>
111                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=135 />
112                </attached>
113            </RaceCheckPoint>
114
115            <RaceCheckPoint name="checkpoint8" position="3500,800,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="7" islast="false" nextcheckpoints="10,-1,-1">
116                <attached>
117                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
118                </attached>
119            </RaceCheckPoint>
120
121            <RaceCheckPoint name="checkpoint9" position="3500,-800,0" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="8" islast="false" nextcheckpoints="10,-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,0,1000" direction="0,-1,1" collisionType="static" scale="1" distance="100" 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<!-- Intermediate Solo Gate -->
134            <RaceCheckPoint name="checkpoint11" position="4500,0,-100" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="10" islast="false" nextcheckpoints="11,-1,-1">
135                <attached>
136                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=90 />
137                </attached>
138            </RaceCheckPoint>
139
140<!----  First Common Point  ---->
141            <RaceCheckPoint name="checkpoint12" position="6000,0,2000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="11" islast="false" nextcheckpoints="12,14,-1">
142                <attached>
143                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=45 />
144                </attached>
145            </RaceCheckPoint>
146
147<!-- Two Paths (1) -->
148            <RaceCheckPoint name="checkpoint13" position="7500,-1500,2500" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="12" islast="false" nextcheckpoints="14,-1,-1">
149                <attached>
150                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=130 roll=1 />
151                </attached>
152            </RaceCheckPoint>
153
154            <RaceCheckPoint name="checkpoint14" position="7500,-1500,1500" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="13" islast="false" nextcheckpoints="15,-1,-1">
155                <attached>
156                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=90 />
157                </attached>
158            </RaceCheckPoint>
159
160<!-- Two Paths (2) -->
161            <RaceCheckPoint name="checkpoint15" position="9000,-3000, 3000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="14" islast="false" nextcheckpoints="16,-1,-1">
162                <attached>
163                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=130 roll=1 />
164                </attached>
165            </RaceCheckPoint>
166
167            <RaceCheckPoint name="checkpoint16" position="9000,-3000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="15" islast="false" nextcheckpoints="16,-1,-1">
168                <attached>
169                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=110 />
170                </attached>
171            </RaceCheckPoint>
172
173<!-- GOAL -->
174            <RaceCheckPoint name="checkpoint17" position="12000,-4000,2000" direction="0,-1,1" collisionType="static" scale="1" distance="100" checkpointindex="16" islast="true">
175                <attached>
176                    <Model mass="50" scale="6" mesh="BigSpacegate.mesh" yaw=100 pitch=135 />
177                </attached>
178            </RaceCheckPoint>
179        </checkpoints>
180    </SpaceRaceManager>
181
182
183<!-- Simplify paths -->
184    <!-- PORTALS -->
185
186    <Template name=PortalDefault>
187        <PortalEndPoint>
188            <attached>
189                <Billboard material="Portals/Default" scale="3"/>
190            </attached>
191        </PortalEndPoint>
192    </Template>
193
194    <PortalEndPoint position="2000,0,-1000" id="3" distance="60" target="MobileEntity" design="PortalDefault" />
195    <PortalEndPoint position="4500,0,-3400" id="4" distance="60" target="MobileEntity" design="PortalDefault" />
196    <PortalLink fromID="3" toID="4" />
197    <PortalLink fromID="4" toID="3" />
198
199
200    <!-- ForceField -->
201800,400,0
202        <ForceField position="1200,-400,0" direction="8,4,0" diameter=500 velocity=2000 length=500 />
203        <MovableEntity position="1200,-400,0">
204            <attached>
205                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.1,0.1,0.1" scale=1/>
206                <?lua for i=0,4,1 do ?>
207                    <Billboard position="<?lua print(i*200) ?>,<?lua print(i*100) ?>,-100" material="Examples/Flare" colour="0.1,0.1,0.1" scale=1/>
208                    <Billboard position="<?lua print(i*200) ?>,<?lua print(i*100) ?>,100" material="Examples/Flare" colour="0.1,0.1,0.1" scale=1/>
209                <?lua end ?>
210                </attached>
211        </MovableEntity>
212
213
214   <!-- Pickup -->
215   <PickupSpawner pickup=smallspeedpickup position="5300,0,-2300" triggerDistance="60" respawnTime="10" maxSpawnedItems="99" scale="12" />
216
217
218<!--- SCENERY --->
219    <!-- @Objects: HYDROGEN FARMER-->
220    <StaticEntity position="5700,0,-3700" mass=10000 >
221      <attached>
222        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
223        <ParticleEmitter position="0,0,0" source="Orxonox/ThrusterFire" scale=1.2 />
224   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
225        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
226        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
227        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
228        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
229        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
230        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
231        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
232        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
233        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
234        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
235        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
236        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
237        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
238        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
239        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
240      </attached>
241      <collisionShapes>
242        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
243        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
244        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
245        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
246        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
247        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
248        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
249        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
250        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
251        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
252        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
253        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
254        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
255        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
256        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
257        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
258      </collisionShapes>
259    </StaticEntity>
260
261    <StaticEntity position="2800,0,0" mass=10000 pitch=0 roll=45 yaw=240 >
262      <attached>
263        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsBody.mesh" />
264        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsDuseL.mesh" />
265        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsDuseR.mesh" />
266        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsKuppelV.mesh" />
267        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsKuppelK.mesh" />
268        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsAntL.mesh" />
269        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsAntR.mesh" />
270        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsGarage.mesh" />
271        <Model position="0,0,0" yaw=0 pitch=180 roll=0 scale=40 mesh="bsStation.mesh" />
272
273        <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 />
274        <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 />
275        <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 />
276        <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 />
277        <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 />
278        <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 />
279        <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 />
280        <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 />
281        <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 />
282        <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 />
283        <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 />
284        <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 />
285      </attached>
286    </StaticEntity>
287
288   <!-- Docking -->
289    <Dock position="2830,20,50" roll=0 yaw=0 >
290        <animations>
291            <MoveToDockingTarget target="destroyer" />
292        </animations>
293        <effects>
294            <DockToShip target="spaceShip" />
295        </effects>
296        <events>
297            <execute>
298                <EventListener event="dockMe" />
299            </execute>
300            <activity>
301                <EventListener event=notGameEnd />
302            </activity>
303        </events>
304        <attached>
305                    <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=1 />
306        <BlinkingBillboard position="10,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
307        <BlinkingBillboard position="20,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
308        <BlinkingBillboard position="30,0,0" material="Examples/Flare" colour="1, 0.3, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
309        <BlinkingBillboard position="0,10,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
310        <BlinkingBillboard position="0,20,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
311        <BlinkingBillboard position="0,30,0" material="Examples/Flare" colour="0.3, 1, 1, 0.1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
312        <BlinkingBillboard position="0,0,10" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
313        <BlinkingBillboard position="0,0,20" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
314        <BlinkingBillboard position="0,0,30" material="Examples/Flare" colour="0.3, 0.3, 1, 1" amplitude=0.2 frequency=0.4 phase=0 quadratic=1 />
315            <DistanceTrigger position="0,0,0" distance="200" target="Pawn"
316                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
317            />
318        </attached>
319
320    </Dock>
321    <SpaceShip
322        template            = "spaceshipcollateraldamage"
323        team                = "0"
324        position            = "2890,-40,6"
325        orientation         = "-0.14, 0.68, 0.68, 0.223"
326        lookat              = "0,0,0"
327        roll                = "180"
328        name                = "collateralDamage"
329        radarname           = "Collateral Damage" >
330        <!--
331        pitch               = "90"
332        yaw                 = "0"-->
333      <attached>
334        <DockingTarget name="spaceShip" />
335        <DistanceTriggerBeacon name="bcnDestroyer" />
336        <DockingTarget name="destroyer" />
337      </attached>
338    </SpaceShip>
339
340    <!-- triple large belt around the planet  -->
341    <?lua
342        dofile("includes/asteroidField.lua")
343        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 7190, 7800, 250, 1)
344    ?>
345    <?lua
346        dofile("includes/asteroidField.lua")
347        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 10000, 11000, 300, 1)
348    ?>
349    <?lua
350        dofile("includes/asteroidField.lua")
351        asteroidBelt(15000, 0, 0, 30, 0, 30, 30, 50, 14000, 15000, 350, 1)
352    ?>
353
354    <Planet
355      position="15000,0,-1000"
356      scale="5000"
357      collisionType="dynamic"
358      linearDamping="0.8"
359      angularDamping="0"
360      mass="10000000"
361      pitch="0"
362      mesh="planets/ganymede.mesh"
363      atmosphere="atmosphere1"
364      rotationaxis="1,0,0"
365      rotationrate="1.0"
366      atmospheresize="80.0f"
367      imagesize="1024.0f"
368      collisiondamage = 2
369      enablecollisiondamage = true
370    >
371      <attached>
372        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
373      </attached>
374      <collisionShapes>
375        <SphereCollisionShape radius="5000" position="0,0,0" />
376      </collisionShapes>
377    </Planet>
378
379<StaticEntity position="6750,-750,2000" yaw=0 pitch=0>
380    <attached>
381        <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
382        <Model position="0,0,0" mesh="turretSocketIn.mesh"    scale3D="10,10,10" />
383        <Model position="0,0,0" mesh="turretSocketTop.mesh"   scale3D="10,10,10" />
384        <Model position="0,0,0" mesh="turretSocketLeft.mesh"  scale3D="10,10,10" />
385        <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
386    </attached>
387</StaticEntity>
388<SpaceShip position="6750,-740,2000" pitch="90" yaw="0" roll="0" radarname="Automatic Turret">
389    <templates>
390        <Template link=spaceshipturret />
391    </templates>
392    <controller>
393        <WaypointPatrolController alertnessradius=1000 team=10>
394        </WaypointPatrolController>
395     </controller>
396</SpaceShip>
397
398
399    <!--- Some Randomn Asteroids  --->
400    <?lua
401      for i = 1, 250, 1
402      do
403      j = math.random()
404    ?>
405
406    <MovableEntity
407      position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>"
408      collisionType = dynamic
409      linearDamping = 0.8
410      angularDamping = 0
411      scale = "<?lua print(j * 150)?>"
412      collisiondamage = 1
413      enablecollisiondamage = true
414    >
415      <attached>
416        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
417      </attached>
418      <collisionShapes>
419        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
420      </collisionShapes>
421    </MovableEntity>
422
423    <?lua
424      end
425    ?>
426
427
428
429
430
431
432<!-- INTERACTIVE PART -->
433    <DistanceTrigger name="start" position="-900,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
434    <DistanceTrigger name="spawnBots" position="-900,0,0"  target="Pawn" distance=100 stayActive="true" delay=4.5 />
435    <DistanceTrigger name="creditPetar" position="2000,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
436    <DistanceTrigger name="creditDario" position="4500,0,-100"  target="Pawn" distance=200 stayActive="true" delay=5 />
437
438    <SimpleNotification message="Sound Effetcs by Mike." broadcast="true">
439        <events>
440            <trigger>
441                <EventListener event=start />
442            </trigger>
443        </events>
444    </SimpleNotification>
445
446    <SimpleNotification message="Racing Bots by Michael." broadcast="true">
447        <events>
448            <trigger>
449                <EventListener event=spawnBots />
450            </trigger>
451        </events>
452    </SimpleNotification>
453
454    <SimpleNotification message="Planetary Destroyer by Petar." broadcast="true">
455        <events>
456            <trigger>
457                <EventListener event=creditPetar />
458            </trigger>
459        </events>
460    </SimpleNotification>
461
462    <SimpleNotification message="Collateral Damage by Raphael." broadcast="true">
463        <events>
464            <trigger>
465                <EventListener event=dockMe />
466            </trigger>
467        </events>
468    </SimpleNotification>
469
470    <SimpleNotification message="Automatic Turret by Dario." broadcast="true">
471        <events>
472            <trigger>
473                <EventListener event=creditDario />
474            </trigger>
475        </events>
476    </SimpleNotification>
477
478    <Script code="addBots 3" onLoad="false">
479        <events>
480            <trigger>
481                <EventListener event=spawnBots />
482            </trigger>
483        </events>
484    </Script>
485
486
487<!-- SOUNDS & MUSIC -->
488            <WorldSound name="scoreSound" position="-920,0,0" source="sounds/ReadyGo.ogg" >
489              <events>
490                <play>
491                  <EventListener event="start" />
492                </play>
493              </events>
494            </WorldSound>
495
496
497
498
499  </Scene>
500</Level>
501
Note: See TracBrowser for help on using the repository browser.