Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/dynamicMatch.oxw @ 7767

Last change on this file since 7767 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

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