Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/WorldMap_HS18/data/levels/dynamicMatch.oxw @ 12110

Last change on this file since 12110 was 11795, checked in by landauf, 7 years ago

merged ogre1.9 (including cegui0.8) into new branch

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