Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/presentation09b.oxw @ 7007

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

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

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