Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamecontent/data/levels/dynamicMatch.oxw @ 9066

Last change on this file since 9066 was 8922, checked in by jo, 13 years ago

fix quest structure (almost finished).

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