Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/presentationHS09b.oxw @ 8916

Last change on this file since 8916 was 8916, checked in by baermatt, 13 years ago

Associated each screenshot to the correct level

  • Property svn:eol-style set to native
File size: 9.2 KB
Line 
1<LevelInfo
2 name = "Presentation X 2nd"
3 description = "2nd Presentation level for Orxonox Convention X"
4 tags = "presentation"
5 screenshot = "presentationx2nd.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12?>
13
14<?lua
15  include("templates/spaceshipAssff.oxt")
16  include("templates/spaceshipPirate.oxt")
17  include("templates/spaceshipGhost.oxt")
18  include("templates/spaceshipHXY.oxt")
19  include("templates/spaceshipTransporter.oxt")
20  include("templates/spaceshipHXYSL.oxt")
21  include("templates/spaceshipTransporterSL.oxt")
22?>
23
24<Level
25 name         = "Sample"
26 description  = "Just a few tests"
27 gametype     = TeamDeathmatch
28>
29  <templates>
30    <Template link=lodtemplate_default />
31  </templates>
32  <?lua include("includes/notifications.oxi") ?>
33
34  <Scene
35    ambientlight = "0.8, 0.8, 0.8"
36    skybox       = "Orxonox/Starbox"
37  >
38
39    <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" />
40
41   <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
42   
43    <?lua
44      for i = 1, 50, 1 do
45        x = math.random() * 2000  + 4000
46        y = math.random() * 4000 - 2000
47        z = math.random() * 2000 - 1000
48        s = math.random() * 100
49    ?>
50      <MovableEntity collisiontype=dynamic mass="<?lua print(s*10)?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
51        <attached>
52          <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="asteroid_UV.mesh" />
53        </attached>
54        <collisionShapes>
55          <SphereCollisionShape radius="<?lua print(s*0.9) ?>" />
56        </collisionShapes>
57      </MovableEntity>
58      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
59    <?lua end ?>
60
61    <?lua
62      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
63      sizes = {4, 4, 4, 4, 4, 10, 20}
64     
65      elements.length = function()
66        return table.getn(elements)
67      end
68     
69      for i = 1, 100, 1 do
70        x = math.random() * 750 - 4500
71        y = math.random() * 1000 + 2000
72        z = math.random() * 500 + 1000
73        e = math.floor(math.random()*elements.length()+1)
74    ?>
75      <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) ?>">
76        <attached>
77          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
78        </attached>
79      </MovableEntity>
80    <?lua end ?>
81
82    <?lua
83      for i = 1,12, 1 do
84    ?>
85      <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
86        <templates>
87          <Template link=spaceshipHXYSL />
88        </templates>
89        <controller>
90          <WaypointPatrolController alertnessradius=4000 team=0 active=true>
91            <waypoints>
92              <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" />
93            </waypoints>
94          </WaypointPatrolController>
95        </controller>
96      </SpaceShip>
97    <?lua end ?>
98
99    <SpaceShip position="5000,100,100" >
100      <templates>
101        <Template link=spaceshipTransporterSL />
102      </templates>
103      <controller>
104        <WaypointPatrolController name=pirate  target=pirate alertnessradius=1000 team=0 active=false>
105          <waypoints>
106            <StaticEntity position="5000,100,1100" />
107          </waypoints>
108        </WaypointPatrolController>
109      </controller>
110    </SpaceShip>
111
112    <Destroyer
113      position          = "-5000,100 ,100"
114      collisionType     = dynamic
115      mass              = 100000
116      angularDamping    = 0.9999999
117      health            = 1000
118      maxhealth         = 1000
119      initialhealth     = 1000
120    >
121      <controller>
122        <WaypointPatrolController team=1 />
123      </controller>
124      <attached>
125        <Model mesh="Carrier.mesh" scale="5" />
126        <Backlight
127          mainstate=activity
128          active=false
129          scale=0.4
130          name=bltest
131          position=" 7.6, 0, 6"
132          colour="0.2, 0.65, 1.0, 1.0"
133          width=15
134          length=1500
135          lifetime=2
136          elements=50
137          trailmaterial="Trail/backlighttrail"
138          turnontime=1
139          turnofftime=1
140          material="Flares/ThrusterFlare1"
141        />
142        <?lua
143          for i=0,8,1 do
144        ?>
145          <BlinkingBillboard
146            position="<?lua print(200-270/8*i)?> ,15,2"
147            material="Examples/Flare"
148            colour="1.0, 0.5, 0.3"
149            phase="<?lua print(-360/8*i)?>"
150            amplitude=0.1
151            frequency=0.5
152            quadratic=1
153          />
154
155          <BlinkingBillboard
156            position="<?lua print(200-270/8*i)?>,-15,2"
157            material="Examples/Flare"
158            colour="1.0, 0.5, 0.3"
159            phase="<?lua print(-360/8*i)?>"
160            amplitude=0.1
161            frequency=0.5
162            quadratic=1
163          />
164        <?lua end ?>
165
166        <Backlight
167          scale=1
168          position=" 169, 75, -15"
169          colour="1, 0.85, 0.5, 0.5"
170          width=40
171          length=1000
172          lifetime=5
173          elements=15
174          trailmaterial="Trail/backlighttrail"
175          material="Examples/Flare"
176        />
177        <Backlight
178          scale=1
179          position=" 169, -75, -15"
180          colour="1, 0.85, 0.5, 0.5"
181          width=40
182          length=1000
183          lifetime=5
184          elements=15
185          trailmaterial="Trail/backlighttrail"
186          material="Examples/Flare"
187        />
188      </attached>
189      <collisionShapes>
190        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
191        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
192        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
193        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
194        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
195        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
196        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
197      </collisionShapes>
198    </Destroyer>
199
200    <?lua
201      for i = 1, 50, 1 do
202        x = -(math.random() * 2000  + 4000)
203        y = math.random() * 4000 - 2000
204        z = math.random() * 2000 - 1000
205        s = math.random() * 100
206    ?>
207      <MovableEntity collisiontype=dynamic mass="<?lua print(s*10)?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
208        <attached>
209          <Model position="0,0,0" scale="<?lua print(s) ?>" mesh="asteroid_ice.mesh" />
210        </attached>
211        <collisionShapes>
212          <SphereCollisionShape radius="<?lua print(s*0.9)?>" />
213        </collisionShapes>
214      </MovableEntity>
215      <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
216    <?lua end ?>
217
218    <!-- EventDispatcher>
219      <targets>
220        <EventTarget target=attack />
221        <EventTarget target=wait />
222      </targets>
223      <events>
224        <activity>
225          <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=true />
226        </activity>
227      </events>
228    </EventDispatcher>
229
230    <EventDispatcher>
231      <targets>
232        <EventTarget target=wait />
233      </targets>
234      <events>
235        <activity>
236          <DistanceTrigger position="0, 0, 4500" distance=100 target="SpaceShip" stayactive=false />
237        </activity>
238      </events>
239    </EventDispatcher -->
240
241    <?lua
242      for i = 1,25, 1 do
243    ?>
244      <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" >
245        <templates>
246          <Template link=spaceshipghost />
247        </templates>
248        <controller>
249          <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false>
250            <events>
251              <activity>
252                <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />
253              </activity>
254            </events>
255          </WaypointPatrolController>
256        </controller>
257      </SpaceShip>
258    <?lua end ?>
259
260    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="false">
261      <events>
262        <activity>
263          <DistanceTrigger position="2000,0,0" distance=500 target="Camera" />
264        </activity>
265      </events>
266    </WorldAmbientSound>
267
268    <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0 />
269   
270  </Scene>
271</Level>
Note: See TracBrowser for help on using the repository browser.