Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/dynamicMatch.oxw @ 8945

Last change on this file since 8945 was 8931, checked in by jo, 14 years ago

Adding new tags: 'gametype' and 'minigame'.

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