Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9215 was 7962, checked in by rgrieder, 14 years ago

Added some meaningless quotation marks. Does not make a difference at all…

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