Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS14merge/data/levels/presentationHS09b.oxw @ 10224

Last change on this file since 10224 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

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