Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/Presentation_FS18/data/levels/presentationHS09.oxw @ 12225

Last change on this file since 12225 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

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