Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ai2/data/levels/presentationHS09.oxw @ 8740

Last change on this file since 8740 was 8706, checked in by dafrick, 14 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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