Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/sfxThilo/data/levels/Spacerace2.oxw @ 9889

Last change on this file since 9889 was 9889, checked in by thiweber, 10 years ago

A few changes..

  • Property svn:eol-style set to native
File size: 8.9 KB
Line 
1<LevelInfo
2 name = "Spacerace 2"
3 description = "New Spacerace with Multiple Paths."
4 tags = "gametype"
5 screenshot = "spacerace2.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12
13  include("templates/spaceshipAssff.oxt")
14
15?>
16<WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" />
17
18
19<?lua
20  include("templates/spaceshipAssff2.oxt")
21  include("templates/spaceshipPirate.oxt")
22?>
23
24<Level
25 name         = "Spacerace2"
26 description  = "Just a few tests"
27gametype = SpaceRace
28>
29  <templates>
30    <Template link=lodtemplate_default />
31  </templates>
32  <?lua include("includes/notifications.oxi") ?>
33
34  <Scene
35    ambientlight = "0.8, 0.8, 0.8"
36    skybox       = "Orxonox/Starbox"
37  >
38
39    <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"/>
40
41
42    <SpaceRaceManager>
43        <checkpoints>
44            <RaceCheckPoint name="checkpoint1" position="0,-2000,1000" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="0" islast="false" nextcheckpoints="1,2,-1">
45                <attached>
46                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
47                </attached>
48                <collisionShapes>
49                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
50                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
51                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
52                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
53                </collisionShapes>
54            </RaceCheckPoint>
55
56            <RaceCheckPoint name="checkpoint2" position="0,2100,2300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="1" islast="false" nextcheckpoints="3,-1,-1">
57                <attached>
58                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
59                </attached>
60                <collisionShapes>
61                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
62                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
63                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
64                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
65                </collisionShapes>
66            </RaceCheckPoint>
67
68            <RaceCheckPoint name="checkpoint3" position="0,700,2700" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
69                <attached>
70                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
71                </attached>
72                <collisionShapes>
73                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
74                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
75                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
76                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
77                </collisionShapes>
78            </RaceCheckPoint>
79
80            <RaceCheckPoint name="checkpoint4" position="0,-400,300" direction="0,-1,1" collisionType="static" scale="1" distance="40" checkpointindex="3" islast="true">
81                <attached>
82                    <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
83                </attached>
84                <collisionShapes>
85                    <BoxCollisionShape position="0,0,55"      halfExtents="55, 10, 10" />
86                    <BoxCollisionShape position="0,0,-55"     halfExtents="55, 10, 10" />
87                    <BoxCollisionShape position="55,0,0"      halfExtents="10, 10, 55" />
88                    <BoxCollisionShape position="-55,0,0"     halfExtents="10, 10, 55" />
89                </collisionShapes>
90            </RaceCheckPoint>
91        </checkpoints>
92    </SpaceRaceManager>
93
94
95    <SpaceShip position="0,0,200" lookat="0,0,0">
96      <templates>
97        <Template link=spaceshipassff />
98      </templates>
99      <controller>
100        <WaypointPatrolController alertnessradius=0 team=10>
101          <waypoints>
102            <Model mesh="cube.mesh" scale=0 position="0,-2000,1000" />
103            <Model mesh="cube.mesh" scale=0 position="0,2100,2300" />
104            <Model mesh="cube.mesh" scale=0 position="0,-400,300" />
105          </waypoints>
106        </WaypointPatrolController>
107      </controller>
108    </SpaceShip>
109
110    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
111
112
113    <!-- ------------------Planet----------------- -->
114    <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
115    <StaticEntity position="0,0,0" collisionType=static>
116        <collisionShapes>
117            <SphereCollisionShape radius="399" />
118        </collisionShapes>
119    </StaticEntity>
120
121    <!-- ---------------asteroid ellipse----------------- -->
122    <?lua
123    max = 20
124    for i = 0, max, 1
125    do
126    y = math.sin(i/max*6)*2000
127    z = math.cos(i/max*6)*2500
128    x = 0
129    ?>
130    <?lua
131    for k = 1, 15, 1
132    do
133    j = math.random()
134    ?>
135
136    <MovableEntity
137      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
138      collisionType = "dynamic"
139      linearDamping = "0.5"
140      angularDamping = "0.01"
141      collisiondamage = "0.01"
142      enablecollisiondamage = "true"
143      scale="<?lua print(j * 5) ?>" >
144      <attached>
145        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
146      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
147            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
148          </attached> <?lua end ?>
149        </Model>
150      </attached>
151      <collisionShapes>
152        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
153      </collisionShapes>
154    </MovableEntity>
155    <?lua
156    end
157    ?>
158    <?lua end ?>
159
160    <!-- ---------------ForceFields----------------- -->
161    <ForceField position="0,-700,2700" direction="0,1,0" diameter=500 velocity=2000 length=600 />
162        <MovableEntity position="0,-400,2700">
163            <attached>
164                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
165                <?lua for i=0,15,1 do ?>
166                    <Billboard position="-200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
167                    <Billboard position="200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
168                <?lua end ?>
169                </attached>
170        </MovableEntity>
171
172     <ForceField position="0,2500,2000" direction="0,0,-1" diameter=250 velocity=2000 length=600 />
173        <MovableEntity position="0,2500,2000">
174            <attached>
175                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
176                <?lua for i=0,15,1 do ?>
177                    <Billboard position="-100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
178                    <Billboard position="100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
179                <?lua end ?>
180                </attached>
181        </MovableEntity>
182
183    <ForceField position="0,1300,-800" direction="0,-1,-1" diameter=250 velocity=2000 length=800 />
184        <MovableEntity position="0,1300,-800">
185            <attached>
186                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
187                <?lua for i=0,20,1 do ?>
188                    <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
189                    <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(-i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
190                <?lua end ?>
191                </attached>
192        </MovableEntity>
193
194    <ForceField position="0,-1400,-700" direction="0,-1,1" diameter=250 velocity=2000 length=600 />
195        <MovableEntity position="0,-1400,-700">
196            <attached>
197                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
198                <?lua for i=0,15,1 do ?>
199                    <Billboard position="-100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
200                    <Billboard position="100,<?lua print(-i*40*0.7071) ?>,<?lua print(i*40*0.7071) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
201                <?lua end ?>
202                </attached>
203        </MovableEntity>
204
205
206
207  </Scene>
208</Level>
209
Note: See TracBrowser for help on using the repository browser.