Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/screenshot.oxw @ 8254

Last change on this file since 8254 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

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