Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/presentation09b.oxw @ 8945

Last change on this file since 8945 was 8916, checked in by baermatt, 13 years ago

Associated each screenshot to the correct level

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