Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/animated_space_boundaries/data/levels/dynamicMatch.oxw @ 10108

Last change on this file since 10108 was 8637, checked in by dafrick, 14 years ago

Merging tutoriallevel3 branch into presentation branch.

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