Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel3/data/levels/screenshot.oxw @ 8703

Last change on this file since 8703 was 8636, checked in by dafrick, 14 years ago

Making NotificationQueue XML-loadable. Adding notifications to all levels.

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