Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11478 was 10624, checked in by landauf, 9 years ago

merged branch core7 back to trunk

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