Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/presentationDM.oxw @ 10256

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

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 5.1 KB
RevLine 
[7648]1<LevelInfo
2 name = "Presentation DM"
3 description = "Presentation Level"
4 tags = "presentation"
[9016]5 screenshot = "presentationdm.png"
[7648]6/>
7
[5378]8<?lua
[7679]9  include("HUDTemplates3.oxo")
[5654]10  include("stats.oxo")
[7679]11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipH2.oxt")
13  include("templates/lodInformation.oxt")
[5378]14?>
15
16<Level
[9016]17 gametype = "Deathmatch"
[5378]18>
[7163]19  <templates>
20    <Template link=lodtemplate_default />
21  </templates>
[8706]22  <?lua include("includes/notifications.oxi") ?>
[7163]23
[5378]24  <Scene
25   ambientlight = "0.5, 0.5, 0.5"
[9348]26   skybox       = "Orxonox/skyBoxBasic"
[5378]27  >
28    <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" />
29
[5519]30
[7163]31    <?lua
32      for i = 1, 10, 1 do
33    ?>
34      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
35    <?lua end ?>
[5383]36
37    <GlobalShader compositor="Bloom" visible=false>
38      <events>
39        <visibility>
40          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
41        </visibility>
42      </events>
43    </GlobalShader>
[5502]44
[7163]45    <?lua
46      for i = 1, 100, 1 do
47        j = math.random()
[8858]48        scale = j * 50 + 5
[7163]49    ?>
[8858]50      <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
[7163]51        <attached>
[8858]52          <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
[7163]53        </attached>
54        <collisionShapes>
[8858]55          <SphereCollisionShape radius="<?lua print(scale * 2.5) ?>" />
[7163]56        </collisionShapes>
57      </MovableEntity>
58    <?lua end ?>
[5513]59
[5464]60<!--
[7163]61    <?lua
62      for i = 1, 70, 1 do
63    ?>
64      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
65        <attached>
66          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
67        </attached>
68      </MovableEntity>
69      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
70        <attached>
71          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
72        </attached>
73      </MovableEntity>
[5383]74
[7163]75      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
76        <attached>
77          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
78        </attached>
79      </MovableEntity>
80      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
81        <attached>
82          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
83        </attached>
84      </MovableEntity>
[5383]85
[7163]86      <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
87        <attached>
88          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
89        </attached>
90      </MovableEntity>
91      <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
92        <attached>
93          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
94        </attached>
95      </MovableEntity>
96    <?lua end ?>
[5464]97-->
[7163]98
[5378]99  </Scene>
100</Level>
Note: See TracBrowser for help on using the repository browser.