Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/screenshot.oxw @ 8945

Last change on this file since 8945 was 8927, checked in by baermatt, 14 years ago

Changed some level tags.

  • Property svn:eol-style set to native
File size: 7.3 KB
Line 
1<LevelInfo
2 name = "Screenshot"
3 description = "Level to make awesome screenshots in."
4 tags = "test, showcase"
5 screenshot = "screenshot.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipH2.oxt")
13  include("templates/spaceshipPirate.oxt")
14  include("templates/lodInformation.oxt")
15?>
16
17<Level
18 name         = "Waypoints"
19 description  = "Testing waypoings for AI controlled spaceships."
20 gametype     = TeamDeathmatch
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27  <Scene
28   ambientlight = "0.7, 0.6, 0.6"
29   skybox       = "Orxonox/skypanoramagen1"
30  >
31    <!--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" /-->
32    <Light type=directional position="1100, 11000, -7000" lookat="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
33
34    <TeamSpawnPoint team=0 position="1100, 11000, -7000" orientation="0.509856, -0.379863, 0.650825, 0.414944" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
35
36    <SpaceShip position="1170, 11250, -6780" roll=90>
37      <templates>
38        <Template link=spaceshipassff />
39      </templates>
40      <controller>
41        <WaypointPatrolController alertnessradius=1100 team=0>
42          <waypoints>
43            <StaticEntity position="1000,10300,-7000" />
44          </waypoints>
45        </WaypointPatrolController>
46      </controller>
47    </SpaceShip>
48
49    <SpaceShip position="1100,10700,-7000" roll=90>
50      <templates>
51        <Template link=spaceshippirate />
52      </templates>
53      <controller>
54        <WaypointPatrolController alertnessradius=0 team=0 />
55      </controller>
56    </SpaceShip>
57    <SpaceShip position="1100,10600,-7000" roll=90>
58      <templates>
59        <Template link=spaceshippirate />
60      </templates>
61    </SpaceShip>
62
63<!--
64    <TeamSpawnPoint team=1 position="2000,  0,0" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
65    <TeamSpawnPoint team=1 position="2000, 50,0" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
66    <TeamSpawnPoint team=1 position="2000,100,0" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
67    <TeamSpawnPoint team=1 position="2000,150,0" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
68
69    <TeamSpawnPoint team=2 position="1000,  0,1500" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipHtwo />
70    <TeamSpawnPoint team=2 position="1000, 50,1500" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipHtwo />
71    <TeamSpawnPoint team=2 position="1000,100,1500" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipHtwo />
72    <TeamSpawnPoint team=2 position="1000,150,1500" direction="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipHtwo />
73-->
74
75    <StaticEntity position="1100,9700,-7500" lookat="1500, 10000, -6700" yaw="-90" pitch="-90">
76      <attached>
77        <Model scale=10 mesh="Carrier.mesh" />
78        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
79        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
80      </attached>
81    </StaticEntity>
82
83    <?lua
84      elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
85      sizes = {4, 4, 4, 4, 4, 10, 20}
86     
87      elements.length = function()
88        return table.getn(elements)
89      end
90     
91      for i = 1, 150, 1 do
92        x = math.random() * 750 - 375 + 1000
93        y = math.random() * 1000 - 500 + 10200
94        z = math.random() * 500 - 250 - 6600
95        e = math.floor(math.random()*elements.length()+1)
96    ?>
97
98      <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) ?>">
99        <attached>
100          <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
101        </attached>
102      </MovableEntity>
103    <?lua end ?>
104
105    <?lua
106      for i = 1, 70, 1 do
107    ?>
108      <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) ?>">
109        <attached>
110          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
111        </attached>
112      </MovableEntity>
113      <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) ?>">
114        <attached>
115          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
116        </attached>
117      </MovableEntity>
118
119      <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) ?>">
120        <attached>
121          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
122        </attached>
123      </MovableEntity>
124      <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) ?>">
125        <attached>
126          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
127        </attached>
128      </MovableEntity>
129
130      <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) ?>">
131        <attached>
132          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
133        </attached>
134      </MovableEntity>
135      <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) ?>">
136        <attached>
137          <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
138        </attached>
139      </MovableEntity>
140    <?lua end ?>
141
142  </Scene>
143</Level>
Note: See TracBrowser for help on using the repository browser.