Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/environment3/data/levels/presentationHS09b.oxw @ 9215

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

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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