Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/dynamicMatch.oxw @ 8783

Last change on this file since 8783 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
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>
[8637]18  <?lua include("includes/notifications.oxi") ?>
[7062]19
[6955]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
[6987]26<!-- ------------------Planet needs gravity----------------- -->
[6955]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>
[6987]30        <SphereCollisionShape radius="499" />
[6955]31      </collisionShapes>
32    </StaticEntity>
33
[6987]34<!-- -----------12-Spawnpoints around the planet------------- -->
[6955]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/>
[6987]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/>
[6955]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  ?>
[6987]52<!-- ----------------Rotating satellite--------------- -->
[6955]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              ?>
[7063]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/>
[6955]63            </attached>
64          </StaticEntity>
65        </attached>
66</MovableEntity>
67
[6987]68<!-- ---------------asteroid ellypse----------------- -->
[6955]69<?lua
70max = 20
[7655]71for i = 0, max, 1
[6955]72do
73    y = math.sin(i/max*6)*4000
74    z = math.cos(i/max*6)*5000
[7655]75    x = 0
[6955]76    ?>
77<?lua
78for k = 1, 25, 1
79do
80j = math.random()
81?>
82
[8079]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) ?>" >
[6955]84      <attached>
[8079]85        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
[6987]86          <attached><!-- ---------asteroid fog----- -->
87            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
88          </attached>
89        </Model>
[6955]90      </attached>
91      <?lua if i == 5 then ?><collisionShapes>
92        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
93      </collisionShapes> <?lua end ?>
[6987]94    </StaticEntity>
[6955]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>
[6987]107<!-- ----------------random fog --- not in use
[6955]108<?lua
109for i = 1, 100, 1
110do
111j = math.random()
112?>
113
[6987]114    <StaticEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>">
[6955]115      <attached>
[6987]116        <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
[6955]117      </attached>
[6987]118    </StaticEntity>
119
[6955]120<?lua
121end
122?>
123-->
124  </Scene>
125</Level>
Note: See TracBrowser for help on using the repository browser.