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 | <MovableEntity position="0,0,0" scale=300 pitch=-90 rotationaxis="8,1,0" rotationrate="1"> |
---|
126 | <attached> |
---|
127 | <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f /> |
---|
128 | </attached> |
---|
129 | </MovableEntity> |
---|
130 | <StaticEntity position="0,0,0" collisionType=static> |
---|
131 | <collisionShapes> |
---|
132 | <SphereCollisionShape radius="399" /> |
---|
133 | </collisionShapes> |
---|
134 | </StaticEntity> |
---|
135 | |
---|
136 | <!-- ---------------asteroid ellipse----------------- --> |
---|
137 | <?lua |
---|
138 | max = 20 |
---|
139 | for i = 0, max, 1 |
---|
140 | do |
---|
141 | y = math.sin(i/max*6)*2000 |
---|
142 | z = math.cos(i/max*6)*2500 |
---|
143 | x = 0 |
---|
144 | ?> |
---|
145 | <?lua |
---|
146 | for k = 1, 15, 1 |
---|
147 | do |
---|
148 | j = math.random() |
---|
149 | ?> |
---|
150 | |
---|
151 | <MovableEntity |
---|
152 | position = "<?lua print(x + math.random() * 500) ?>,<?lua print(y + math.random() * 500) ?>,<?lua print(z + math.random() * 1000) ?>" |
---|
153 | collisionType = "dynamic" |
---|
154 | linearDamping = "0.5" |
---|
155 | angularDamping = "0.01" |
---|
156 | collisiondamage = "0.01" |
---|
157 | enablecollisiondamage = "true" |
---|
158 | scale="<?lua print(j * 5) ?>" > |
---|
159 | <attached> |
---|
160 | <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> |
---|
161 | <?lua if k == 5 then ?><attached><!-- ---------asteroid fog----- --> |
---|
162 | <ParticleEmitter position="0,0,0" source="Orxonox/Steam" /> |
---|
163 | </attached> <?lua end ?> |
---|
164 | </Model> |
---|
165 | </attached> |
---|
166 | <collisionShapes> |
---|
167 | <SphereCollisionShape radius="<?lua print(j * 80) ?>" /> |
---|
168 | </collisionShapes> |
---|
169 | </MovableEntity> |
---|
170 | <?lua |
---|
171 | end |
---|
172 | ?> |
---|
173 | <?lua end ?> |
---|
174 | |
---|
175 | <!-- ---------------ForceFields----------------- --> |
---|
176 | <ForceField position="0,-700,2700" direction="0,1,0" diameter=500 velocity=2000 length=600 /> |
---|
177 | <MovableEntity position="0,-400,2700"> |
---|
178 | <attached> |
---|
179 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
180 | <?lua for i=0,15,1 do ?> |
---|
181 | <Billboard position="-200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
182 | <Billboard position="200,<?lua print(i*40) ?>,0" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
183 | <?lua end ?> |
---|
184 | </attached> |
---|
185 | </MovableEntity> |
---|
186 | |
---|
187 | <ForceField position="0,2500,2000" direction="0,0,-1" diameter=250 velocity=2000 length=600 /> |
---|
188 | <MovableEntity position="0,2500,2000"> |
---|
189 | <attached> |
---|
190 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
191 | <?lua for i=0,15,1 do ?> |
---|
192 | <Billboard position="-100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
193 | <Billboard position="100,0,-<?lua print(i*40) ?>" material="Examples/Flare" colour="0.5,0,0" scale=1/> |
---|
194 | <?lua end ?> |
---|
195 | </attached> |
---|
196 | </MovableEntity> |
---|
197 | |
---|
198 | <ForceField position="0,1300,-800" direction="0,-1,-1" diameter=250 velocity=2000 length=800 /> |
---|
199 | <MovableEntity position="0,1300,-800"> |
---|
200 | <attached> |
---|
201 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
202 | <?lua for i=0,20,1 do ?> |
---|
203 | <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/> |
---|
204 | <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/> |
---|
205 | <?lua end ?> |
---|
206 | </attached> |
---|
207 | </MovableEntity> |
---|
208 | |
---|
209 | <ForceField position="0,-1400,-700" direction="0,-1,1" diameter=250 velocity=2000 length=600 /> |
---|
210 | <MovableEntity position="0,-1400,-700"> |
---|
211 | <attached> |
---|
212 | <Billboard position="0,0,0" material="Flares/ringflare2" colour="0.5,0,0" scale=2/> |
---|
213 | <?lua for i=0,15,1 do ?> |
---|
214 | <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/> |
---|
215 | <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/> |
---|
216 | <?lua end ?> |
---|
217 | </attached> |
---|
218 | </MovableEntity> |
---|
219 | |
---|
220 | |
---|
221 | |
---|
222 | </Scene> |
---|
223 | </Level> |
---|
224 | |
---|