Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/campaignHS15/data/levels/Spacerace2.oxw @ 10861

Last change on this file since 10861 was 10624, checked in by landauf, 9 years ago

merged branch core7 back to trunk

  • Property svn:eol-style set to native
File size: 9.3 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
17
18<?lua
19  include("templates/spaceshipAssff2.oxt")
20  include("templates/spaceshipPirate.oxt")
21?>
22
23<Level
24 name         = "Spacerace2"
25 description  = "Just a few tests"
26 plugins = gametypes
27 gametype = 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        <!-- SOUNDS & MUSIC -->
113    <WorldSound name="scoreSound" position="-200,0,0" source="sounds/ReadyGo.ogg" >
114      <events>
115        <play>
116          <EventListener event="start" />
117        </play>
118      </events>
119    </WorldSound>
120    <DistanceTrigger name="start" position="-200,0,0"  target="Pawn" distance=100 stayActive="true" delay=0.5 />
121   
122    <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true" />
123
124    <!-- ------------------Planet----------------- -->
125    <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 />
126    <StaticEntity position="0,0,0" collisionType=static>
127        <collisionShapes>
128            <SphereCollisionShape radius="399" />
129        </collisionShapes>
130    </StaticEntity>
131
132    <!-- ---------------asteroid ellipse----------------- -->
133    <?lua
134    max = 20
135    for i = 0, max, 1
136    do
137    y = math.sin(i/max*6)*2000
138    z = math.cos(i/max*6)*2500
139    x = 0
140    ?>
141    <?lua
142    for k = 1, 15, 1
143    do
144    j = math.random()
145    ?>
146
147    <MovableEntity
148      position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>"
149      collisionType = "dynamic"
150      linearDamping = "0.5"
151      angularDamping = "0.01"
152      collisiondamage = "0.01"
153      enablecollisiondamage = "true"
154      scale="<?lua print(j * 5) ?>" >
155      <attached>
156        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
157      <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- -->
158            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
159          </attached> <?lua end ?>
160        </Model>
161      </attached>
162      <collisionShapes>
163        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
164      </collisionShapes>
165    </MovableEntity>
166    <?lua
167    end
168    ?>
169    <?lua end ?>
170
171    <!-- ---------------ForceFields----------------- -->
172    <ForceField position="0,-700,2700" direction="0,1,0" diameter=500 velocity=2000 length=600 />
173        <MovableEntity position="0,-400,2700">
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="-200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
178                    <Billboard position="200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/>
179                <?lua end ?>
180                </attached>
181        </MovableEntity>
182
183     <ForceField position="0,2500,2000" direction="0,0,-1" diameter=250 velocity=2000 length=600 />
184        <MovableEntity position="0,2500,2000">
185            <attached>
186                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
187                <?lua for i=0,15,1 do ?>
188                    <Billboard position="-100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
189                    <Billboard position="100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/>
190                <?lua end ?>
191                </attached>
192        </MovableEntity>
193
194    <ForceField position="0,1300,-800" direction="0,-1,-1" diameter=250 velocity=2000 length=800 />
195        <MovableEntity position="0,1300,-800">
196            <attached>
197                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
198                <?lua for i=0,20,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    <ForceField position="0,-1400,-700" direction="0,-1,1" diameter=250 velocity=2000 length=600 />
206        <MovableEntity position="0,-1400,-700">
207            <attached>
208                <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/>
209                <?lua for i=0,15,1 do ?>
210                    <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/>
211                    <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/>
212                <?lua end ?>
213                </attached>
214        </MovableEntity>
215
216
217
218  </Scene>
219</Level>
220
Note: See TracBrowser for help on using the repository browser.