Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/dynamicMatch.oxw @ 8927

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

Changed some level tags.

  • Property svn:eol-style set to native
File size: 4.9 KB
Line 
1<LevelInfo
2 name = "Dynamic Match"
3 description = "In progress - Level for dynamicmatch"
4 tags = "test"
5 screenshot = "dynamicMatch.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipGhost.oxt")
13  include("dynamicMatchHUD.oxo")
14  include("templates/lodInformation.oxt")
15?>
16
17<Level
18 name         = "Dynamic Match"
19 description  = "In progress -level for dynamicmatch"
20 gametype     = "Dynamicmatch"
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27  <Scene
28   ambientlight = "0.5, 0.5, 0.5"
29   skybox       = "Orxonox/Starbox"
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
33<!-- ------------------Planet needs gravity----------------- -->
34<Planet position="0,0,0" scale=500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
35<StaticEntity position="0,0,0" collisionType=static>
36      <collisionShapes>
37        <SphereCollisionShape radius="499" />
38      </collisionShapes>
39    </StaticEntity>
40
41<!-- -----------12-Spawnpoints around the planet------------- -->
42<TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
43<TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
44<TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
45<TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
46<TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
47<TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
48<!--outer Spawnpoints -->
49<TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff/>
50<TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff/>
51<TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
52<TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
53<TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
54<TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
55
56<?lua
57    dofile("includes/CuboidSpaceStation.lua")
58  ?>
59<!-- ----------------Rotating satellite--------------- -->
60<MovableEntity position="1,1,1" rotationrate="-4.5" rotationaxis="0,0,1">
61        <attached>
62          <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
63            <attached>
64              <?lua
65                createSpaceStationPar(0,2,1,2,1,4,1,50)
66              ?>
67                <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
68                <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
69                <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
70            </attached>
71          </StaticEntity>
72        </attached>
73</MovableEntity>
74
75<!-- ---------------asteroid ellypse----------------- -->
76<?lua
77max = 20
78for i = 0, max, 1
79do
80    y = math.sin(i/max*6)*4000
81    z = math.cos(i/max*6)*5000
82    x = 0
83    ?>
84<?lua
85for k = 1, 25, 1
86do
87j = math.random()
88?>
89
90    <StaticEntity position="<?lua print(x + math.random() * 1000-500) ?>,<?lua print(y + math.random() * 1000-500) ?>,<?lua print(z + math.random() * 5000-2500) ?>" scale="<?lua print(j * 5) ?>" >
91      <attached>
92        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
93          <attached><!-- ---------asteroid fog----- -->
94            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
95          </attached>
96        </Model>
97      </attached>
98      <?lua if i == 5 then ?><collisionShapes>
99        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
100      </collisionShapes> <?lua end ?>
101    </StaticEntity>
102<?lua
103end
104?>
105<?lua end ?>
106
107    <GlobalShader compositor="Bloom" visible=false>
108      <events>
109        <visibility>
110          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
111        </visibility>
112      </events>
113    </GlobalShader>
114<!-- ----------------random fog --- not in use
115<?lua
116for i = 1, 100, 1
117do
118j = math.random()
119?>
120
121    <StaticEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>">
122      <attached>
123        <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
124      </attached>
125    </StaticEntity>
126
127<?lua
128end
129?>
130-->
131  </Scene>
132</Level>
Note: See TracBrowser for help on using the repository browser.