Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/dynamicmatch/data/levels/gametype_dynamicmatch.oxw @ 6987

Last change on this file since 6987 was 6987, checked in by jo, 14 years ago

additional infomassages, improved level

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