Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spaceNavigation/data/levels/dynamicMatch.oxw @ 10000

Last change on this file since 10000 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 5.0 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/spaceshipSwallow.oxt")
13  include("templates/spaceshipPirate.oxt")
14  include("templates/spaceshipGhost.oxt")
15  include("dynamicMatchHUD.oxo")
16  include("templates/lodInformation.oxt")
17?>
18
19<Level
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<!-- inner Spawnpoints -->
43<TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
44<TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
45<TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
46<TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
47<TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
48<TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
49<!--outer Spawnpoints -->
50<TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshippirate/>
51<TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshippirate/>
52<TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
53<TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
54<TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
55<TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
56
57<?lua
58    dofile("includes/CuboidSpaceStation.lua")
59  ?>
60<!-- ----------------Rotating satellite--------------- -->
61<MovableEntity position="1,1,1" rotationrate="-4.5" rotationaxis="0,0,1">
62        <attached>
63          <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
64            <attached>
65              <?lua
66                createSpaceStationPar(0,2,1,2,1,4,1,50)
67              ?>
68                <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
69                <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
70                <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
71            </attached>
72          </StaticEntity>
73        </attached>
74</MovableEntity>
75
76<!-- ---------------asteroid ellypse----------------- -->
77<?lua
78max = 20
79for i = 0, max, 1
80do
81    y = math.sin(i/max*6)*4000
82    z = math.cos(i/max*6)*5000
83    x = 0
84    ?>
85<?lua
86for k = 1, 25, 1
87do
88j = math.random()
89?>
90
91    <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) ?>" >
92      <attached>
93        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
94          <attached><!-- ---------asteroid fog----- -->
95            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
96          </attached>
97        </Model>
98      </attached>
99      <?lua if i == 5 then ?><collisionShapes>
100        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
101      </collisionShapes> <?lua end ?>
102    </StaticEntity>
103<?lua
104end
105?>
106<?lua end ?>
107
108    <GlobalShader compositor="Bloom" visible=false>
109      <events>
110        <visibility>
111          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
112        </visibility>
113      </events>
114    </GlobalShader>
115<!-- ----------------random fog --- not in use
116<?lua
117for i = 1, 100, 1
118do
119j = math.random()
120?>
121
122    <StaticEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>">
123      <attached>
124        <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
125      </attached>
126    </StaticEntity>
127
128<?lua
129end
130?>
131-->
132  </Scene>
133</Level>
Note: See TracBrowser for help on using the repository browser.