Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/presentationHS09.oxw @ 8938

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