Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/screenshot.oxw @ 7194

Last change on this file since 7194 was 7129, checked in by rgrieder, 14 years ago

svn:eol-style "native" for all text-based files.

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