Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9630 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

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