Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12227 was 11795, checked in by landauf, 7 years ago

merged ogre1.9 (including cegui0.8) into new branch

  • Property svn:eol-style set to native
File size: 5.2 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----------------- -->
[11795]35    <MovableEntity position="0,0,0" scale=500 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
36      <attached>
37        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
38      </attached>
39    </MovableEntity>
40    <StaticEntity position="0,0,0" collisionType=static>
[6955]41      <collisionShapes>
[6987]42        <SphereCollisionShape radius="499" />
[6955]43      </collisionShapes>
44    </StaticEntity>
45
[6987]46<!-- -----------12-Spawnpoints around the planet------------- -->
[9016]47<!-- inner Spawnpoints -->
[9348]48<TeamSpawnPoint team=0 position="1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
49<TeamSpawnPoint team=0 position="-1000,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
50<TeamSpawnPoint team=0 position="0,1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
51<TeamSpawnPoint team=0 position="0,-1000,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
52<TeamSpawnPoint team=0 position="0,0,1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
53<TeamSpawnPoint team=0 position="0,0,-1000" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
[6987]54<!--outer Spawnpoints -->
[9348]55<TeamSpawnPoint team=0 position="2000,0,0" lookat="0,0,1" spawnclass=SpaceShip pawndesign=spaceshippirate/>
56<TeamSpawnPoint team=0 position="-2000,0,0" lookat="0,0,-1" spawnclass=SpaceShip pawndesign=spaceshippirate/>
57<TeamSpawnPoint team=0 position="0,2000,0" lookat="0,1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
58<TeamSpawnPoint team=0 position="0,-2000,0" lookat="0,-1,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
59<TeamSpawnPoint team=0 position="0,0,2000" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
60<TeamSpawnPoint team=0 position="0,0,-2000" lookat="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
[6955]61
62<?lua
63    dofile("includes/CuboidSpaceStation.lua")
64  ?>
[6987]65<!-- ----------------Rotating satellite--------------- -->
[6955]66<MovableEntity position="1,1,1" rotationrate="-4.5" rotationaxis="0,0,1">
67        <attached>
68          <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
69            <attached>
70              <?lua
71                createSpaceStationPar(0,2,1,2,1,4,1,50)
72              ?>
[9348]73                <TeamSpawnPoint team=2 position="20,20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
74                <TeamSpawnPoint team=2 position="-20,-20,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
75                <TeamSpawnPoint team=2 position="-10,10,20" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate/>
[6955]76            </attached>
77          </StaticEntity>
78        </attached>
79</MovableEntity>
80
[6987]81<!-- ---------------asteroid ellypse----------------- -->
[6955]82<?lua
83max = 20
[7655]84for i = 0, max, 1
[6955]85do
86    y = math.sin(i/max*6)*4000
87    z = math.cos(i/max*6)*5000
[7655]88    x = 0
[6955]89    ?>
90<?lua
91for k = 1, 25, 1
92do
93j = math.random()
94?>
95
[8079]96    <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]97      <attached>
[8079]98        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
[9348]99          <attached><!-- ---------asteroid fog----- -->
[6987]100            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
101          </attached>
[9348]102        </Model>
[6955]103      </attached>
104      <?lua if i == 5 then ?><collisionShapes>
105        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
106      </collisionShapes> <?lua end ?>
[6987]107    </StaticEntity>
[6955]108<?lua
109end
110?>
111<?lua end ?>
112
113    <GlobalShader compositor="Bloom" visible=false>
114      <events>
115        <visibility>
116          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
117        </visibility>
118      </events>
119    </GlobalShader>
[6987]120<!-- ----------------random fog --- not in use
[6955]121<?lua
122for i = 1, 100, 1
123do
124j = math.random()
125?>
126
[6987]127    <StaticEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>">
[6955]128      <attached>
[6987]129        <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
[6955]130      </attached>
[6987]131    </StaticEntity>
132
[6955]133<?lua
134end
135?>
136-->
137  </Scene>
138</Level>
Note: See TracBrowser for help on using the repository browser.