Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menu/data/levels/presentationHS09.oxw @ 7663

Last change on this file since 7663 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

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