Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/dynamicMatch.oxw @ 10058

Last change on this file since 10058 was 9939, checked in by jo, 11 years ago

presentationHS13 branch merged into trunk

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