Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel3/data/levels/presentation09b.oxw @ 8636

Last change on this file since 8636 was 8636, checked in by dafrick, 13 years ago

Making NotificationQueue XML-loadable. Adding notifications to all levels.

  • Property svn:eol-style set to native
File size: 13.4 KB
Line 
1<LevelInfo
2 name = "Presentation X2"
3 description = "2nd Presentation level for Orxonox Convention X"
4 tags = "presentation"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/spaceshipH2.oxt")
12  include("templates/spaceshipPirate.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
14  include("templates/lodInformation.oxt")
15?>
16
17<Level
18 name         = "Presentation09"
19 description  = "presentation level for Orxonox Convention X"
20 gametype     = TeamDeathmatch
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27  <Scene
28   ambientlight = "0.5, 0.5, 0.5"
29   skybox       = "Orxonox/skypanoramagen2"
30  >
31
32    <?lua
33      include("includes/pickups.oxi")
34    ?>
35   
36    <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" />
37
38    <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670"  spawnclass=SpaceShip pawndesign=spaceshipassff />
39
40    <SpaceShip position="-3900,3000,1000">
41      <templates>
42        <Template link=spaceshipHtwo/>
43      </templates>
44      <controller>
45        <WaypointPatrolController alertnessradius=100 team=0>
46          <waypoints>
47            <StaticEntity position="-3850,2800,1450" />
48          </waypoints>
49        </WaypointPatrolController>
50      </controller>
51    </SpaceShip>
52
53    <SpaceShip position="-4100,2600,1600">
54      <templates>
55        <Template link=spaceshipHtwo/>
56      </templates>
57      <controller>
58        <WaypointPatrolController alertnessradius=100 team=0>
59          <waypoints>
60            <StaticEntity position="-3850,2800,1450" />
61          </waypoints>
62        </WaypointPatrolController>
63      </controller>
64    </SpaceShip>
65
66    <SpaceShip position="-4000,2500,1500">
67      <templates>
68        <Template link=spaceshipHtwo/>
69      </templates>
70      <controller>
71        <WaypointPatrolController alertnessradius=100 team=0>
72          <waypoints>
73            <StaticEntity position="-3850,2800,1450" />
74          </waypoints>
75        </WaypointPatrolController>
76      </controller>
77    </SpaceShip>
78
79    <SpaceShip position="-4100,2700,1500">
80      <templates>
81        <Template link=spaceshipHtwo/>
82      </templates>
83      <controller>
84        <WaypointPatrolController alertnessradius=100 team=0 />
85      </controller>
86    </SpaceShip>
87
88    <SpaceShip position="-4150,2750,1550">
89      <templates>
90        <Template link=spaceshipHtwo/>
91      </templates>
92      <controller>
93        <WaypointPatrolController alertnessradius=100 team=0 />
94      </controller>
95    </SpaceShip>
96
97    <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
98      <pickup>
99        <SpeedPickup template=smalljumppickup />
100      </pickup>
101    </PickupSpawner>
102
103    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
104    <PickupRepresentation
105      pickupName = "Medium Health Pack"
106      pickupDescription = "Once used adds a medium amout of health to the ship."
107      spawnerTemplate = "mediumhealthpickupRepresentation"
108      inventoryRepresentation = "MediumHealth"
109    >
110      <pickup>
111        <HealthPickup health=100 activationType="onUse" durationType="once" />
112      </pickup>
113    </PickupRepresentation>
114
115    <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5">
116      <pickup>
117        <HealthPickup health=100 activationType=onUse durationType=once />
118      </pickup>
119    </PickupSpawner>
120
121    <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20">
122      <pickup>
123        <HealthPickup template=mediumhealthpickup />
124      </pickup>
125    </PickupSpawner>
126
127    <Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
128    <EventDispatcher>
129      <targets>
130        <EventTarget target=pirates />
131      </targets>
132      <events>
133        <activity>
134          <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true />
135        </activity>
136      </events>
137    </EventDispatcher>
138
139    <?lua
140      for i = 1, 10, 1 do
141    ?>
142      <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
143        <templates>
144          <Template link=spaceshippirate />
145        </templates>
146        <controller>
147          <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
148            <waypoints>
149              <StaticEntity position="3100, 2000, 1500" />
150            </waypoints>
151          </WaypointPatrolController>
152        </controller>
153      </SpaceShip>
154    <?lua end ?>
155
156    <?lua
157      for i = 1, 12, 1 do
158    ?>
159      <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
160        <templates>
161          <Template link=spaceshipassff />
162        </templates>
163        <controller>
164          <WaypointPatrolController alertnessradius=1000 team=0>
165            <waypoints>
166              <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
167            </waypoints>
168          </WaypointPatrolController>
169        </controller>
170      </SpaceShip>
171    <?lua end ?>
172
173    <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
174    <EventDispatcher>
175      <targets>
176        <EventTarget target=attacker />
177      </targets>
178      <events>
179        <activity>
180          <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true />
181        </activity>
182      </events>
183    </EventDispatcher>
184
185    <?lua
186      for i = 1, 12, 1 do
187    ?>
188      <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
189        <templates>
190          <Template link=spaceshipassff />
191        </templates>
192        <controller>
193          <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false>
194            <waypoints>
195              <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
196              <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
197              <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
198            </waypoints>
199          </WaypointPatrolController>
200        </controller>
201      </SpaceShip>
202    <?lua end ?>
203
204    <StaticEntity position="2800, 2500, 2500">
205      <attached>
206        <CheckPoint />
207        <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
208        <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
209      </attached>
210    </StaticEntity>
211
212<!--
213    <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
214      <attached>
215        <CheckPoint />
216        <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
217        <Backlight
218          mainstate=activity
219          active=false
220          scale=0.4
221          name=bltest
222          position=" 7.6, 0, 6"
223          colour="0.2, 0.65, 1.0, 1.0"
224          width=15
225          length=1500
226          lifetime=2
227          elements=50
228          trailmaterial="Trail/backlighttrail"
229          turnontime=1
230          turnofftime=1
231          material="Flares/ThrusterFlare1"
232        />
233      </attached>
234      <collisionShapes>
235        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
236        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
237        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
238        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
239        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
240        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
241        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
242      </collisionShapes>
243    </Destroyer>
244-->
245
246    <Destroyer
247      position          = "6500,-2000,-1000"
248      collisionType     = dynamic
249      mass              = 100000
250      angularDamping    = 0.9999999
251      health            = 1000
252      maxhealth         = 1000
253      initialhealth     = 1000
254    >
255      <controller>
256        <WaypointPatrolController team=1 />
257      </controller>
258      <attached>
259        <Model mesh="Carrier.mesh" scale="5" />
260        <Backlight
261          mainstate=activity
262          active=false
263          scale=0.4
264          name=bltest
265          position=" 7.6, 0, 6"
266          colour="0.2, 0.65, 1.0, 1.0"
267          width=15
268          length=1500
269          lifetime=2
270          elements=50
271          trailmaterial="Trail/backlighttrail"
272          turnontime=1
273          turnofftime=1
274          material="Flares/ThrusterFlare1"
275        />
276
277        <?lua
278          for i=0,8,1 do
279        ?>
280          <BlinkingBillboard
281            position="<?lua print(200-270/8*i)?> ,15,2"
282            material="Examples/Flare"
283            colour="1.0, 0.5, 0.3"
284            phase="<?lua print(-360/8*i)?>"
285            amplitude=0.1
286            frequency=0.5
287            quadratic=1
288          />
289
290          <BlinkingBillboard
291            position="<?lua print(200-270/8*i)?>,-15,2"
292            material="Examples/Flare"
293            colour="1.0, 0.5, 0.3"
294            phase="<?lua print(-360/8*i)?>"
295            amplitude=0.1
296            frequency=0.5
297            quadratic=1
298          />
299        <?lua end ?>
300
301        <Backlight
302          scale=1
303          position=" 169, 75, -15"
304          colour="1, 0.85, 0.5, 0.5"
305          width=40
306          length=1000
307          lifetime=5
308          elements=15
309          trailmaterial="Trail/backlighttrail"
310          material="Examples/Flare"
311        />
312        <Backlight
313          scale=1
314          position=" 169, -75, -15"
315          colour="1, 0.85, 0.5, 0.5"
316          width=40
317          length=1000
318          lifetime=5
319          elements=15
320          trailmaterial="Trail/backlighttrail"
321          material="Examples/Flare" />
322      </attached>
323      <collisionShapes>
324        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
325        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
326        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
327        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
328        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
329        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
330        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
331      </collisionShapes>
332    </Destroyer>
333
334    <?lua
335      for i = 1, 10, 1 do
336    ?>
337      <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
338        <templates>
339          <Template link=spaceshippirate />
340        </templates>
341        <controller>
342          <WaypointPatrolController alertnessradius=1000 team=1>
343            <waypoints>
344              <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
345            </waypoints>
346          </WaypointPatrolController>
347        </controller>
348      </SpaceShip>
349    <?lua end ?>
350
351    <?lua
352      for i = 1, 200, 1 do
353        x = math.random() * 100  + (i-70) * 100
354        y = math.random() * 3000 - 1500
355        z = math.random() * 3000 - 1500 + (i-100) * 10
356        s = math.random() * 60 + 30
357    ?>
358      <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
359        <attached>
360          <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
361        </attached>
362      </MovableEntity>
363    <?lua end ?>
364
365    <?lua
366      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
367      sizes = {4, 4, 4, 4, 4, 10, 20}
368     
369      elements.length = function()
370        return table.getn(elements)
371      end
372     
373      for i = 1, 150, 1 do
374        x = math.random() * 750 - 4500
375        y = math.random() * 1000 + 2000
376        z = math.random() * 500 + 1000
377        e = math.floor(math.random()*elements.length()+1)
378    ?>
379
380      <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>">
381        <attached>
382          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
383        </attached>
384      </MovableEntity>
385    <?lua end ?>
386
387  </Scene>
388</Level>
Note: See TracBrowser for help on using the repository browser.