Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/usability/data/levels/presentation09b.oxw @ 9911

Last change on this file since 9911 was 7962, checked in by rgrieder, 14 years ago

Added some meaningless quotation marks. Does not make a difference at all…

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