Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/questlog/data/levels/dynamicMatch.oxw @ 10087

Last change on this file since 10087 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

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