Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentation09b.oxw @ 12398

Last change on this file since 12398 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
RevLine 
[7648]1<LevelInfo
2 name = "Presentation X2"
3 description = "2nd Presentation level for Orxonox Convention X"
4 tags = "presentation"
[9016]5 screenshot = "presentationx2.png"
[7648]6/>
7
[5700]8<?lua
[7679]9  include("HUDTemplates3.oxo")
[5700]10  include("stats.oxo")
[7679]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")
[5700]16?>
[5575]17
[5700]18<Level
[9016]19 gametype = "TeamDeathmatch"
[5700]20>
[7163]21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
[8706]24  <?lua include("includes/notifications.oxi") ?>
[7163]25
[5700]26  <Scene
27   ambientlight = "0.5, 0.5, 0.5"
[9348]28   skybox       = "Orxonox/skyBoxSomeNebula"
[5700]29  >
[7163]30
31    <?lua
32      include("includes/pickups.oxi")
33    ?>
34   
[5700]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
[5738]37    <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670"  spawnclass=SpaceShip pawndesign=spaceshipassff />
[5700]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>
[5575]50    </SpaceShip>
[5700]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>
[6417]95
[9348]96    <PickupSpawner pickup=smalljumppickup position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
[6417]97
[7163]98    <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi -->
99    <PickupRepresentation
[9348]100      name = "MediumHealth"
[7163]101      pickupName = "Medium Health Pack"
102      pickupDescription = "Once used adds a medium amout of health to the ship."
103      spawnerTemplate = "mediumhealthpickupRepresentation"
104      inventoryRepresentation = "MediumHealth"
[9348]105    />
[7163]106
[9348]107    <Template name=onusehealthpickup baseclass=HealthPickup>
108      <HealthPickup representation="MediumHealth" health=100 activationType=onUse durationType=once />
109    </Template>
[6417]110
[9348]111    <PickupSpawner pickup=onusehealthpickup position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5" />
[5700]112
[9348]113    <PickupSpawner pickup=mediumhealthpickup position="2300, 4300, 2400" respawnTime="5" triggerDistance="20" />
114
[5700]115    <Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
116    <EventDispatcher>
117      <targets>
[5929]118        <EventTarget target=pirates />
[5700]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
[7163]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 ?>
[5700]143
[7163]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 ?>
[5700]160
161    <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
162    <EventDispatcher>
163      <targets>
[5929]164        <EventTarget target=attacker />
[5700]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
[7163]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 ?>
[5700]191
192    <StaticEntity position="2800, 2500, 2500">
[7163]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>
[5700]198    </StaticEntity>
[7163]199
[5700]200<!--
201    <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
[7163]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>
[5700]231    </Destroyer>
232-->
[7163]233
[5700]234    <Destroyer
[7163]235      position          = "6500,-2000,-1000"
236      collisionType     = dynamic
237      mass              = 100000
238      angularDamping    = 0.9999999
239      health            = 1000
240      maxhealth         = 1000
241      initialhealth     = 1000
[5700]242    >
[7163]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        />
[5700]264
[7163]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"
[8079]272            phase="<?lua print(-360/8*i)?>"
[7163]273            amplitude=0.1
274            frequency=0.5
275            quadratic=1
276          />
[5700]277
[7163]278          <BlinkingBillboard
279            position="<?lua print(200-270/8*i)?>,-15,2"
280            material="Examples/Flare"
281            colour="1.0, 0.5, 0.3"
[8079]282            phase="<?lua print(-360/8*i)?>"
[7163]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>
[5700]320    </Destroyer>
321
[7163]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 ?>
[5700]338
[7163]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>
[8079]348          <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[7163]349        </attached>
350      </MovableEntity>
351    <?lua end ?>
[6417]352
[7163]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    ?>
[5700]367
[7163]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 ?>
[6417]374
[5700]375  </Scene>
376</Level>
Note: See TracBrowser for help on using the repository browser.