Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/turretFS14/data/levels/presentation09b.oxw @ 10045

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

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 13.2 KB
Line 
1<LevelInfo
2 name = "Presentation X2"
3 description = "2nd Presentation level for Orxonox Convention X"
4 tags = "presentation"
5 screenshot = "presentationx2.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>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27   ambientlight = "0.5, 0.5, 0.5"
28   skybox       = "Orxonox/skyBoxSomeNebula"
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 pickup=smalljumppickup position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
97
98    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
99    <PickupRepresentation
100      name = "MediumHealth"
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
107    <Template name=onusehealthpickup baseclass=HealthPickup>
108      <HealthPickup representation="MediumHealth" health=100 activationType=onUse durationType=once />
109    </Template>
110
111    <PickupSpawner pickup=onusehealthpickup position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
112
113    <PickupSpawner pickup=mediumhealthpickup position="2300, 4300, 2400" respawnTime="5" triggerDistance="20" />
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.