Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationHS09.oxw @ 6815

Last change on this file since 6815 was 6417, checked in by rgrieder, 15 years ago

Merged presentation2 branch back to trunk.
Major new features:

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