Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/dynamicMatch.oxw @ 10057

Last change on this file since 10057 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

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