Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9215 was 8958, checked in by baermatt, 13 years ago

Removing unused Level attributes.

  • 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
[8958]18 gametype = "Dynamicmatch"
[6955]19>
[7062]20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
[8706]23  <?lua include("includes/notifications.oxi") ?>
[7062]24
[6955]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
[6987]31<!-- ------------------Planet needs gravity----------------- -->
[6955]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>
[6987]35        <SphereCollisionShape radius="499" />
[6955]36      </collisionShapes>
37    </StaticEntity>
38
[6987]39<!-- -----------12-Spawnpoints around the planet------------- -->
[6955]40<TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
41<TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
42<TeamSpawnPoint team=0 position="0,1000,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,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
45<TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
[6987]46<!--outer Spawnpoints -->
47<TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshipassff/>
48<TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshipassff/>
[6955]49<TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" 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,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
52<TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
53
54<?lua
55    dofile("includes/CuboidSpaceStation.lua")
56  ?>
[6987]57<!-- ----------------Rotating satellite--------------- -->
[6955]58<MovableEntity position="1,1,1" rotationrate="-4.5" rotationaxis="0,0,1">
59        <attached>
60          <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
61            <attached>
62              <?lua
63                createSpaceStationPar(0,2,1,2,1,4,1,50)
64              ?>
[7063]65                <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
66                <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
67                <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff/>
[6955]68            </attached>
69          </StaticEntity>
70        </attached>
71</MovableEntity>
72
[6987]73<!-- ---------------asteroid ellypse----------------- -->
[6955]74<?lua
75max = 20
[7655]76for i = 0, max, 1
[6955]77do
78    y = math.sin(i/max*6)*4000
79    z = math.cos(i/max*6)*5000
[7655]80    x = 0
[6955]81    ?>
82<?lua
83for k = 1, 25, 1
84do
85j = math.random()
86?>
87
[8079]88    <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]89      <attached>
[8079]90        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
[6987]91          <attached><!-- ---------asteroid fog----- -->
92            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
93          </attached>
94        </Model>
[6955]95      </attached>
96      <?lua if i == 5 then ?><collisionShapes>
97        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
98      </collisionShapes> <?lua end ?>
[6987]99    </StaticEntity>
[6955]100<?lua
101end
102?>
103<?lua end ?>
104
105    <GlobalShader compositor="Bloom" visible=false>
106      <events>
107        <visibility>
108          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
109        </visibility>
110      </events>
111    </GlobalShader>
[6987]112<!-- ----------------random fog --- not in use
[6955]113<?lua
114for i = 1, 100, 1
115do
116j = math.random()
117?>
118
[6987]119    <StaticEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>">
[6955]120      <attached>
[6987]121        <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
[6955]122      </attached>
[6987]123    </StaticEntity>
124
[6955]125<?lua
126end
127?>
128-->
129  </Scene>
130</Level>
Note: See TracBrowser for help on using the repository browser.