Changeset 7163 for code/trunk/data/levels
- Timestamp:
- Aug 11, 2010, 8:55:13 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 6 deleted
- 27 edited
- 15 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/data/levels/empty_level.oxw
r6560 r7163 2 2 include("stats.oxo") 3 3 include("hudtemplates3.oxo") 4 include("templates/lodinformation.oxt") 4 5 ?> 5 6 … … 13 14 description = "Just a few tests" 14 15 > 16 <templates> 17 <Template link=lodtemplate_default /> 18 </templates> 19 15 20 <Scene 16 21 ambientlight = "0.8, 0.8, 0.8" 17 22 skybox = "Orxonox/Starbox" 18 23 > 24 25 <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"/> 26 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 19 27 20 <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" />21 <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />22 28 </Scene> 23 29 </Level> 30 -
code/trunk/data/levels/events.oxw
r6417 r7163 4 4 include("templates/spaceship_assff.oxt") 5 5 include("templates/spaceship_H2.oxt") 6 include("templates/lodinformation.oxt") 6 7 ?> 7 8 … … 10 11 description = "A simple level to test the event-system (with comments)" 11 12 > 13 <templates> 14 <Template link=lodtemplate_default /> 15 </templates> 16 12 17 <Scene 13 18 ambientlight = "0.5, 0.5, 0.5" -
code/trunk/data/levels/gametype_asteroids.oxw
r6417 r7163 3 3 include("stats.oxo") 4 4 include("templates/spaceship_assff.oxt") 5 include("templates/lodinformation.oxt") 5 6 ?> 6 7 … … 10 11 gametype = Asteroids 11 12 > 12 <Scene 13 ambientlight = "0.5, 0.5, 0.5" 14 skybox = "Orxonox/Starbox" 15 > 16 17 <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" /> 18 19 20 21 <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 22 23 24 <?lua 25 for i = 1, 250, 1 26 do 27 j = math.random() 28 ?> 13 <templates> 14 <Template link=lodtemplate_default /> 15 </templates> 16 17 <Scene 18 ambientlight = "0.5, 0.5, 0.5" 19 skybox = "Orxonox/Starbox" 20 > 21 22 <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" /> 23 24 <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 25 26 <?lua 27 for i = 1, 250, 1 28 do 29 j = math.random() 30 ?> 29 31 30 32 <MovableEntity 31 position="<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" collisionType=dynamic 32 linearDamping=0.8 33 angularDamping=0 34 scale=<?lua print(j * 150)?> 35 collisiondamage=1 36 enablecollisiondamage=true> 33 position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" 34 collisionType = dynamic 35 linearDamping = 0.8 36 angularDamping = 0 37 scale = <?lua print(j * 150)?> 38 collisiondamage = 1 39 enablecollisiondamage = true 40 > 37 41 <attached> 38 42 <Model mass=<?lua print(j * 1000) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> … … 42 46 </collisionShapes> 43 47 </MovableEntity> 44 <?lua 45 end 46 ?> 48 49 <?lua 50 end 51 ?> 47 52 48 53 <!-- 49 <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>50 <attached>51 <Model mass=100 mesh="ast1.mesh" />52 </attached>53 <collisionShapes>54 <SphereCollisionShape radius=11.75 />55 </collisionShapes>56 </MovableEntity>57 58 59 <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>60 <attached>61 <Model mass=100 mesh="ast1.mesh" />62 </attached>63 <collisionShapes>64 <SphereCollisionShape radius=22.5 />65 </collisionShapes>66 </MovableEntity>67 68 69 <MovableEntity position="0,600,0" scale=34 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>70 <attached>71 <Model mass=100 mesh="ast1.mesh" />72 </attached>73 <collisionShapes>74 <SphereCollisionShape radius=76.5 />75 </collisionShapes>76 </MovableEntity>77 78 <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>79 <attached>80 <Model mass=100 mesh="ast1.mesh" />81 </attached>82 <collisionShapes>83 <SphereCollisionShape radius=200 />84 </collisionShapes>85 </MovableEntity>54 <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> 55 <attached> 56 <Model mass=100 mesh="ast1.mesh" /> 57 </attached> 58 <collisionShapes> 59 <SphereCollisionShape radius=11.75 /> 60 </collisionShapes> 61 </MovableEntity> 62 63 64 <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> 65 <attached> 66 <Model mass=100 mesh="ast1.mesh" /> 67 </attached> 68 <collisionShapes> 69 <SphereCollisionShape radius=22.5 /> 70 </collisionShapes> 71 </MovableEntity> 72 73 74 <MovableEntity position="0,600,0" scale=34 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> 75 <attached> 76 <Model mass=100 mesh="ast1.mesh" /> 77 </attached> 78 <collisionShapes> 79 <SphereCollisionShape radius=76.5 /> 80 </collisionShapes> 81 </MovableEntity> 82 83 <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> 84 <attached> 85 <Model mass=100 mesh="ast1.mesh" /> 86 </attached> 87 <collisionShapes> 88 <SphereCollisionShape radius=200 /> 89 </collisionShapes> 90 </MovableEntity> 86 91 --> 87 92 88 <SpaceShip position="2000,200,0" lookat="0,0,0" > 89 <templates> 90 <Template link=spaceshipassff /> 91 </templates> 92 <controller> 93 <AIController /> 94 </controller> 95 </SpaceShip> 96 97 <SpaceShip position="8000,300,700" lookat="0,0,0" > 98 <templates> 99 <Template link=spaceshipassff /> 100 </templates> 101 <controller> 102 <AIController /> 103 </controller> 104 </SpaceShip> 105 106 <SpaceShip position="10200,400,-600" lookat="0,0,0" > 107 <templates> 108 <Template link=spaceshipassff /> 109 </templates> 110 <controller> 111 <AIController /> 112 </controller> 113 </SpaceShip> 114 115 <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120> 116 <attached> 117 <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 /> 118 </attached> 119 </ForceField> 120 121 <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200> 122 <attached> 123 <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 /> 124 </attached> 125 </ForceField> 126 127 <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400> 128 <attached> 129 <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 /> 130 </attached> 131 </ForceField> 132 133 <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300> 134 <attached> 135 <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 /> 136 </attached> 137 </ForceField> 138 139 140 <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=13 /> 141 142 143 <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10> 144 <events> 145 <activity> 146 <EventListener event=trigger1 /> 147 </activity> 148 </events> 149 <attached> 150 <Billboard material="Flares/lensflare" colour="1,0,0"> 93 <SpaceShip position="2000,200,0" lookat="0,0,0" > 94 <templates> 95 <Template link=spaceshipassff /> 96 </templates> 97 <controller> 98 <AIController /> 99 </controller> 100 </SpaceShip> 101 102 <SpaceShip position="8000,300,700" lookat="0,0,0" > 103 <templates> 104 <Template link=spaceshipassff /> 105 </templates> 106 <controller> 107 <AIController /> 108 </controller> 109 </SpaceShip> 110 111 <SpaceShip position="10200,400,-600" lookat="0,0,0" > 112 <templates> 113 <Template link=spaceshipassff /> 114 </templates> 115 <controller> 116 <AIController /> 117 </controller> 118 </SpaceShip> 119 120 <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120> 121 <attached> 122 <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 /> 123 </attached> 124 </ForceField> 125 126 <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200> 127 <attached> 128 <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 /> 129 </attached> 130 </ForceField> 131 132 <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400> 133 <attached> 134 <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 /> 135 </attached> 136 </ForceField> 137 138 <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300> 139 <attached> 140 <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 /> 141 </attached> 142 </ForceField> 143 144 145 <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=26 /> 146 147 148 <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=20> 151 149 <events> 152 <visibility> 153 <EventTrigger invert=true> 154 <events> 155 <trigger> 156 <EventListener event=trigger1 /> 157 </trigger> 158 </events> 159 </EventTrigger> 160 </visibility> 150 <activity> 151 <EventListener event=trigger1 /> 152 </activity> 161 153 </events> 162 </Billboard> 163 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 154 <attached> 155 <Billboard material="Flares/lensflare" colour="1,0,0"> 156 <events> 157 <visibility> 158 <EventTrigger invert=true> 159 <events> 160 <trigger> 161 <EventListener event=trigger1 /> 162 </trigger> 163 </events> 164 </EventTrigger> 165 </visibility> 166 </events> 167 </Billboard> 168 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 169 <events> 170 <visibility> 171 <EventTrigger> 172 <events> 173 <trigger> 174 <EventListener event=trigger1 /> 175 </trigger> 176 </events> 177 <EventTrigger invert=true> 178 <events> 179 <trigger> 180 <EventListener event=trigger2 /> 181 </trigger> 182 </events> 183 </EventTrigger> 184 </EventTrigger> 185 </visibility> 186 </events> 187 </BlinkingBillboard> 188 <Billboard material="Flares/lensflare" colour="0,1,0"> 189 <events> 190 <visibility> 191 <EventListener event=trigger2 /> 192 </visibility> 193 </events> 194 </Billboard> 195 </attached> 196 </CheckPoint> 197 198 199 <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=18> 164 200 <events> 165 <visibility> 166 <EventTrigger> 167 <events> 168 <trigger> 169 <EventListener event=trigger1 /> 170 </trigger> 171 </events> 172 <EventTrigger invert=true> 201 <activity> 202 <EventListener event=trigger2 /> 203 </activity> 204 </events> 205 <attached> 206 <Billboard material="Flares/lensflare" colour="1,0,0"> 207 <events> 208 <visibility> 209 <EventTrigger invert=true> 210 <events> 211 <trigger> 212 <EventListener event=trigger2 /> 213 </trigger> 214 </events> 215 </EventTrigger> 216 </visibility> 217 </events> 218 </Billboard> 219 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 220 <events> 221 <visibility> 222 <EventTrigger> 223 <events> 224 <trigger> 225 <EventListener event=trigger2 /> 226 </trigger> 227 </events> 228 <EventTrigger invert=true> 229 <events> 230 <trigger> 231 <EventListener event=trigger3 /> 232 </trigger> 233 </events> 234 </EventTrigger> 235 </EventTrigger> 236 </visibility> 237 </events> 238 </BlinkingBillboard> 239 <Billboard material="Flares/lensflare" colour="0,1,0"> 240 <events> 241 <visibility> 242 <EventListener event=trigger3 /> 243 </visibility> 244 </events> 245 </Billboard> 246 </attached> 247 </CheckPoint> 248 249 250 <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=18> 251 <events> 252 <activity> 253 <EventListener event=trigger3 /> 254 </activity> 255 </events> 256 <attached> 257 <Billboard material="Flares/lensflare" colour="1,0,0"> 258 <events> 259 <visibility> 260 <EventTrigger invert=true> 261 <events> 262 <trigger> 263 <EventListener event=trigger3 /> 264 </trigger> 265 </events> 266 </EventTrigger> 267 </visibility> 268 </events> 269 </Billboard> 270 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 271 <events> 272 <visibility> 273 <EventTrigger> 274 <events> 275 <trigger> 276 <EventListener event=trigger3 /> 277 </trigger> 278 </events> 279 <EventTrigger invert=true> 280 <events> 281 <trigger> 282 <EventListener event=trigger4 /> 283 </trigger> 284 </events> 285 </EventTrigger> 286 </EventTrigger> 287 </visibility> 288 </events> 289 </BlinkingBillboard> 290 <Billboard material="Flares/lensflare" colour="0,1,0"> 291 <events> 292 <visibility> 293 <EventListener event=trigger4 /> 294 </visibility> 295 </events> 296 </Billboard> 297 </attached> 298 </CheckPoint> 299 300 301 <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=18> 302 <events> 303 <activity> 304 <EventListener event=trigger4 /> 305 </activity> 306 </events> 307 <attached> 308 <Billboard material="Flares/lensflare" colour="1,0,0"> 309 <events> 310 <visibility> 311 <EventTrigger invert=true> 312 <events> 313 <trigger> 314 <EventListener event=trigger4 /> 315 </trigger> 316 </events> 317 </EventTrigger> 318 </visibility> 319 </events> 320 </Billboard> 321 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 322 <events> 323 <visibility> 324 <EventTrigger> 325 <events> 326 <trigger> 327 <EventListener event=trigger4 /> 328 </trigger> 329 </events> 330 <EventTrigger invert=true> 331 <events> 332 <trigger> 333 <EventListener event=trigger5 /> 334 </trigger> 335 </events> 336 </EventTrigger> 337 </EventTrigger> 338 </visibility> 339 </events> 340 </BlinkingBillboard> 341 <Billboard material="Flares/lensflare" colour="0,1,0"> 342 <events> 343 <visibility> 344 <EventListener event=trigger5 /> 345 </visibility> 346 </events> 347 </Billboard> 348 </attached> 349 </CheckPoint> 350 351 352 <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=20> 353 <events> 354 <activity> 355 <EventListener event=trigger5 /> 356 </activity> 357 </events> 358 <attached> 359 <Billboard material="Flares/lensflare" colour="1,0,0"> 360 <events> 361 <visibility> 362 <EventTrigger invert=true> 363 <events> 364 <trigger> 365 <EventListener event=trigger5 /> 366 </trigger> 367 </events> 368 </EventTrigger> 369 </visibility> 370 </events> 371 </Billboard> 372 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 373 <events> 374 <visibility> 375 <EventTrigger> 376 <events> 377 <trigger> 378 <EventListener event=trigger5 /> 379 </trigger> 380 </events> 381 <EventTrigger invert=true> 382 <events> 383 <trigger> 384 <EventListener event=trigger6 /> 385 </trigger> 386 </events> 387 </EventTrigger> 388 </EventTrigger> 389 </visibility> 390 </events> 391 </BlinkingBillboard> 392 <Billboard material="Flares/lensflare" colour="0,1,0"> 393 <events> 394 <visibility> 395 <EventListener event=trigger6 /> 396 </visibility> 397 </events> 398 </Billboard> 399 </attached> 400 </CheckPoint> 401 402 403 <Model position="11200,400,-1800" scale=10 pitch=-90 mesh="Carrier.mesh"> 404 <attached> 405 <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100> 406 <events> 407 <activity> 408 <EventListener event=trigger6 /> 409 </activity> 410 </events> 411 <attached> 412 <Billboard material="Flares/lensflare" colour="1,0,0"> 173 413 <events> 174 <trigger> 175 <EventListener event=trigger2 /> 176 </trigger> 414 <visibility> 415 <EventTrigger invert=true> 416 <events> 417 <trigger> 418 <EventListener event=trigger6 /> 419 </trigger> 420 </events> 421 </EventTrigger> 422 </visibility> 177 423 </events> 178 </EventTrigger> 179 </EventTrigger> 180 </visibility> 181 </events> 182 </BlinkingBillboard> 183 <Billboard material="Flares/lensflare" colour="0,1,0"> 184 <events> 185 <visibility> 186 <EventListener event=trigger2 /> 187 </visibility> 188 </events> 189 </Billboard> 190 </attached> 191 </CheckPoint> 192 193 194 <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=9> 195 <events> 196 <activity> 197 <EventListener event=trigger2 /> 198 </activity> 199 </events> 200 <attached> 201 <Billboard material="Flares/lensflare" colour="1,0,0"> 202 <events> 203 <visibility> 204 <EventTrigger invert=true> 205 <events> 206 <trigger> 207 <EventListener event=trigger2 /> 208 </trigger> 209 </events> 210 </EventTrigger> 211 </visibility> 212 </events> 213 </Billboard> 214 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 215 <events> 216 <visibility> 217 <EventTrigger> 218 <events> 219 <trigger> 220 <EventListener event=trigger2 /> 221 </trigger> 222 </events> 223 <EventTrigger invert=true> 424 </Billboard> 425 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 224 426 <events> 225 <trigger> 226 <EventListener event=trigger3 /> 227 </trigger> 427 <visibility> 428 <EventTrigger> 429 <events> 430 <trigger> 431 <EventListener event=trigger6 /> 432 </trigger> 433 </events> 434 <EventTrigger invert=true> 435 <events> 436 <trigger> 437 <EventListener event=trigger7 /> 438 </trigger> 439 </events> 440 </EventTrigger> 441 </EventTrigger> 442 </visibility> 228 443 </events> 229 </EventTrigger> 230 </EventTrigger> 231 </visibility> 232 </events> 233 </BlinkingBillboard> 234 <Billboard material="Flares/lensflare" colour="0,1,0"> 235 <events> 236 <visibility> 237 <EventListener event=trigger3 /> 238 </visibility> 239 </events> 240 </Billboard> 241 </attached> 242 </CheckPoint> 243 244 245 <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=9> 246 <events> 247 <activity> 248 <EventListener event=trigger3 /> 249 </activity> 250 </events> 251 <attached> 252 <Billboard material="Flares/lensflare" colour="1,0,0"> 253 <events> 254 <visibility> 255 <EventTrigger invert=true> 256 <events> 257 <trigger> 258 <EventListener event=trigger3 /> 259 </trigger> 260 </events> 261 </EventTrigger> 262 </visibility> 263 </events> 264 </Billboard> 265 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 266 <events> 267 <visibility> 268 <EventTrigger> 269 <events> 270 <trigger> 271 <EventListener event=trigger3 /> 272 </trigger> 273 </events> 274 <EventTrigger invert=true> 444 </BlinkingBillboard> 445 <Billboard material="Flares/lensflare" colour="0,1,0"> 275 446 <events> 276 < trigger>277 <EventListener event=trigger 4/>278 </ trigger>447 <visibility> 448 <EventListener event=trigger7 /> 449 </visibility> 279 450 </events> 280 </EventTrigger> 281 </EventTrigger> 282 </visibility> 283 </events> 284 </BlinkingBillboard> 285 <Billboard material="Flares/lensflare" colour="0,1,0"> 286 <events> 287 <visibility> 288 <EventListener event=trigger4 /> 289 </visibility> 290 </events> 291 </Billboard> 292 </attached> 293 </CheckPoint> 294 295 296 <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=8> 297 <events> 298 <activity> 299 <EventListener event=trigger4 /> 300 </activity> 301 </events> 302 <attached> 303 <Billboard material="Flares/lensflare" colour="1,0,0"> 304 <events> 305 <visibility> 306 <EventTrigger invert=true> 307 <events> 308 <trigger> 309 <EventListener event=trigger4 /> 310 </trigger> 311 </events> 312 </EventTrigger> 313 </visibility> 314 </events> 315 </Billboard> 316 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 317 <events> 318 <visibility> 319 <EventTrigger> 320 <events> 321 <trigger> 322 <EventListener event=trigger4 /> 323 </trigger> 324 </events> 325 <EventTrigger invert=true> 326 <events> 327 <trigger> 328 <EventListener event=trigger5 /> 329 </trigger> 330 </events> 331 </EventTrigger> 332 </EventTrigger> 333 </visibility> 334 </events> 335 </BlinkingBillboard> 336 <Billboard material="Flares/lensflare" colour="0,1,0"> 337 <events> 338 <visibility> 339 <EventListener event=trigger5 /> 340 </visibility> 341 </events> 342 </Billboard> 343 </attached> 344 </CheckPoint> 345 346 347 <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=10> 348 <events> 349 <activity> 350 <EventListener event=trigger5 /> 351 </activity> 352 </events> 353 <attached> 354 <Billboard material="Flares/lensflare" colour="1,0,0"> 355 <events> 356 <visibility> 357 <EventTrigger invert=true> 358 <events> 359 <trigger> 360 <EventListener event=trigger5 /> 361 </trigger> 362 </events> 363 </EventTrigger> 364 </visibility> 365 </events> 366 </Billboard> 367 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 368 <events> 369 <visibility> 370 <EventTrigger> 371 <events> 372 <trigger> 373 <EventListener event=trigger5 /> 374 </trigger> 375 </events> 376 <EventTrigger invert=true> 377 <events> 378 <trigger> 379 <EventListener event=trigger6 /> 380 </trigger> 381 </events> 382 </EventTrigger> 383 </EventTrigger> 384 </visibility> 385 </events> 386 </BlinkingBillboard> 387 <Billboard material="Flares/lensflare" colour="0,1,0"> 388 <events> 389 <visibility> 390 <EventListener event=trigger6 /> 391 </visibility> 392 </events> 393 </Billboard> 394 </attached> 395 </CheckPoint> 396 397 398 <Model position="11200,400,-1800" scale=10 pitch=-90 mesh="Carrier.mesh"> 399 <attached> 400 <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100> 401 <events> 402 <activity> 403 <EventListener event=trigger6 /> 404 </activity> 405 </events> 406 <attached> 407 <Billboard material="Flares/lensflare" colour="1,0,0"> 408 <events> 409 <visibility> 410 <EventTrigger invert=true> 411 <events> 412 <trigger> 413 <EventListener event=trigger6 /> 414 </trigger> 415 </events> 416 </EventTrigger> 417 </visibility> 418 </events> 419 </Billboard> 420 <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> 421 <events> 422 <visibility> 423 <EventTrigger> 424 <events> 425 <trigger> 426 <EventListener event=trigger6 /> 427 </trigger> 428 </events> 429 <EventTrigger invert=true> 430 <events> 431 <trigger> 432 <EventListener event=trigger7 /> 433 </trigger> 434 </events> 435 </EventTrigger> 436 </EventTrigger> 437 </visibility> 438 </events> 439 </BlinkingBillboard> 440 <Billboard material="Flares/lensflare" colour="0,1,0"> 441 <events> 442 <visibility> 443 <EventListener event=trigger7 /> 444 </visibility> 445 </events> 446 </Billboard> 447 </attached> 448 </CheckPoint> 449 </attached> 450 </Model> 451 </Billboard> 452 </attached> 453 </CheckPoint> 454 </attached> 455 </Model> 451 456 452 457 </Scene> -
code/trunk/data/levels/gametype_underattack.oxw
r5781 r7163 4 4 include("underattackhud.oxo") 5 5 include("templates/spaceship_assff.oxt") 6 include("templates/lodinformation.oxt") 6 7 ?> 7 8 … … 11 12 gametype = UnderAttack 12 13 > 14 <templates> 15 <Template link=lodtemplate_default /> 16 </templates> 17 13 18 <Scene 14 19 ambientlight = "0.5, 0.5, 0.5" … … 18 23 19 24 <?lua for i = 1, 30, 1 do ?> 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 25 <MovableEntity 26 position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>" 27 velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>" 28 > 29 <attached> 30 <Model 31 <?lua x = math.random() * 150 + 30 ?> 32 scale="<?lua print(x) ?>" 33 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" 34 position="0,0,0" 35 /> 36 </attached> 37 <collisionShapes> 38 <SphereCollisionShape radius=<?lua print(x) ?> position="0,0,0" /> 39 </collisionShapes> 40 </MovableEntity> 36 41 <?lua end ?> 37 42 38 43 <Destroyer 39 40 41 42 43 44 45 46 44 position = "100,150,0" 45 collisionType = dynamic 46 mass = 100000 47 velocity = "-35,0,0" 48 angularDamping = 0.9999999 49 health = 10000 50 maxhealth = 10000 51 initialhealth = 10000 47 52 > 48 53 49 50 51 52 53 54 55 56 57 58 59 60 61 62 54 <attached> 55 <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 56 <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 57 <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 58 <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 59 <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 60 <?lua for i = 1, 100, 1 do ?> 61 <TeamSpawnPoint 62 team=0 63 position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>" 64 lookat="0,0,0" 65 spawnclass=SpaceShip 66 pawndesign=spaceshipassff 67 /> 63 68 64 65 66 67 68 69 70 71 72 69 <!--more spawnpoints for team1--> 70 <!-- 71 <TeamSpawnPoint 72 team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>" 73 lookat="0,0,0" 74 spawnclass=SpaceShip 75 pawndesign=spaceshipassff 76 />--> 77 <?lua end ?> 73 78 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 79 <Model mesh="Carrier.mesh" scale="5" /> 80 <Backlight 81 mainstate=activity 82 active=false 83 scale=0.4 84 name=bltest 85 position=" 7.6, 0, 6" 86 colour="0.2, 0.65, 1.0, 1.0" 87 width=15 88 length=1500 89 lifetime=2 90 elements=50 91 trailmaterial="Trail/backlighttrail" 92 turnontime=1 93 turnofftime=1 94 material="Flares/ThrusterFlare1" 95 /> 96 <?lua for i=0,8,1 do ?> 97 <BlinkingBillboard 98 position="<?lua print(200-270/8*i)?> ,15,2" 99 material="Examples/Flare" 100 colour="1.0, 0.5, 0.3" 101 phase=<?lua print(-360/8*i)?> 102 amplitude=0.1 103 frequency=0.5 104 quadratic=1 105 /> 101 106 102 103 104 105 106 107 108 109 110 111 107 <BlinkingBillboard 108 position="<?lua print(200-270/8*i)?>,-15,2" 109 material="Examples/Flare" 110 colour="1.0, 0.5, 0.3" 111 phase=<?lua print(-360/8*i)?> 112 amplitude=0.1 113 frequency=0.5 114 quadratic=1 115 /> 116 <?lua end ?> 112 117 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 118 <Backlight 119 scale=1 120 position=" 169, 75, -15" 121 colour="1, 0.85, 0.5, 0.5" 122 width=40 123 length=1000 124 lifetime=5 125 elements=15 126 trailmaterial="Trail/backlighttrail" 127 material="Examples/Flare" 128 /> 129 <Backlight 130 scale=1 131 position=" 169, -75, -15" 132 colour="1, 0.85, 0.5, 0.5" 133 width=40 134 length=1000 135 lifetime=5 136 elements=15 137 trailmaterial="Trail/backlighttrail" 138 material="Examples/Flare" /> 139 </attached> 140 <collisionShapes> 141 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 142 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 143 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 144 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 145 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 146 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 147 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 148 </collisionShapes> 144 149 </Destroyer> 145 150 … … 158 163 </collisionShapes> 159 164 </StaticEntity> 165 160 166 </Scene> 161 167 </Level> -
code/trunk/data/levels/includes/CuboidSpaceStation.lua
r5781 r7163 329 329 -- Insert the SatelliteDish. 330 330 topPartsIndex[2]=8 331 bodyParts[topPartsIndex[2]][0][0][0][4]=" SatelliteDish.mesh"331 bodyParts[topPartsIndex[2]][0][0][0][4]="satellitedish.mesh" 332 332 bodyParts[topPartsIndex[2]][0][0][0][5]="pitch=-90" 333 333 bodyParts[topPartsIndex[2]][0][0][0][8]="rotationaxis=\"0,1,0\" rotationrate=5" -
code/trunk/data/levels/includes/pickups.oxi
- Property svn:eol-style set to native
r6725 r7163 1 2 <!-- Shield pickups --> 3 4 <PickupRepresentation 5 pickupName = "Small Shield Pickup" 6 pickupDescription = "Gives you a small-sized shield for 30 seconds." 7 inventoryRepresentation = "SmallShield" 8 spawnerTemplate = "smallshieldpickupRepresentation" 9 > 10 <pickup> 11 <ShieldPickup template=smallshieldpickup /> 12 </pickup> 13 </PickupRepresentation> 14 15 <PickupRepresentation 16 pickupName = "Medium Shield Pickup" 17 pickupDescription = "Gives you a medium-sized shield for 30 seconds." 18 inventoryRepresentation = "MediumShield" 19 spawnerTemplate = "mediumshieldpickupRepresentation" 20 > 21 <pickup> 22 <ShieldPickup template=mediumshieldpickup /> 23 </pickup> 24 </PickupRepresentation> 25 26 <PickupRepresentation 27 pickupName = "Huge Shield Pickup" 28 pickupDescription = "Gives you a big shield for 60 seconds." 29 inventoryRepresentation = "HugeShield" 30 spawnerTemplate = "hugeshieldpickupRepresentation" 31 > 32 <pickup> 33 <ShieldPickup template=hugeshieldpickup /> 34 </pickup> 35 </PickupRepresentation> 1 36 2 37 <!-- Health pickups --> … … 73 108 74 109 <PickupRepresentation 75 name = "Small Speed Boost"76 description = "Multiplies Speed of the Ship by a small amount."110 pickupName = "Small Speed Boost" 111 pickupDescription = "Multiplies Speed of the Ship by a small amount." 77 112 spawnerTemplate = "smallspeedpickupRepresentation" 113 inventoryRepresentation = "SmallSpeed" 78 114 > 79 115 <pickup> … … 83 119 84 120 <PickupRepresentation 85 name = "Medium Speed Boost"86 description = "Multiplies Speed of the Ship by a bigger amount."121 pickupName = "Medium Speed Boost" 122 pickupDescription = "Multiplies Speed of the Ship by a bigger amount." 87 123 spawnerTemplate = "mediumspeedpickupRepresentation" 124 inventoryRepresentation = "MediumSpeed" 88 125 > 89 126 <pickup> … … 93 130 94 131 <PickupRepresentation 95 name = "Huge Speed Boost"96 description = "Multiplies Speed of the Ship by a huge amount."132 pickupName = "Huge Speed Boost" 133 pickupDescription = "Multiplies Speed of the Ship by a huge amount." 97 134 spawnerTemplate = "hugespeedpickupRepresentation" 135 inventoryRepresentation = "HugeSpeed" 98 136 > 99 137 <pickup> … … 103 141 104 142 <PickupRepresentation 105 name = "Small Jump Boost"106 description = "Boosts the Ship with a massive amount for a very short time."143 pickupName = "Small Jump Boost" 144 pickupDescription = "Boosts the Ship with a massive amount for a very short time." 107 145 spawnerTemplate = "smalljumppickupRepresentation" 146 inventoryRepresentation = "SmallSpeed" 108 147 > 109 148 <pickup> … … 115 154 116 155 <PickupRepresentation 117 name = "small Invisibility"118 description = "Makes you invisible for 5 seconds."156 pickupName = "Small Invisibility" 157 pickupDescription = "Makes you invisible for 5 seconds." 119 158 spawnerTemplate = "smallinvisiblepickupRepresentation" 159 inventoryRepresentation = "SmallInvisible" 120 160 > 121 161 <pickup> … … 125 165 126 166 <PickupRepresentation 127 name = "medium Invisibility"128 description = "Makes you invisible for 10 seconds."167 pickupName = "Medium Invisibility" 168 pickupDescription = "Makes you invisible for 10 seconds." 129 169 spawnerTemplate = "mediuminvisiblepickupRepresentation" 170 inventoryRepresentation = "MediumInvisible" 130 171 > 131 172 <pickup> … … 135 176 136 177 <PickupRepresentation 137 name = "hunge Invisibility"138 description = "Makes you invisible for 20 seconds."178 pickupName = "Huge Invisibility" 179 pickupDescription = "Makes you invisible for 20 seconds." 139 180 spawnerTemplate = "hugeinvisiblepickupRepresentation" 181 inventoryRepresentation = "HugeInvisible" 140 182 > 141 183 <pickup> … … 147 189 148 190 <PickupRepresentation 149 pickupName = "Tri plePickup"191 pickupName = "Tri Pickup" 150 192 pickupDescription = "Adds health, speed and invisibility." 151 193 spawnerTemplate = "triplehealthspeedinvisibilitypickupRepresentation" … … 156 198 </PickupRepresentation> 157 199 200 <!-- Drone Pickup --> 201 202 <PickupRepresentation 203 pickupName = "Drone Pickup" 204 pickupDescription = "Adds a Drone to the Players Spaceship" 205 spawnerTemplate = "dronepickupRepresentation" 206 > 207 <pickup> 208 <DronePickup template=dronepickup /> 209 </pickup> 210 </PickupRepresentation> 211 -
code/trunk/data/levels/includes/weaponsettings3.oxi
r6417 r7163 8 8 <WeaponSet firemode=1 /> 9 9 <WeaponSet firemode=2 /> 10 <WeaponSet firemode=3 /> 10 11 </weaponsets> 11 12 <weapons> … … 15 16 <DefaultWeaponmodeLink firemode=1 weaponmode=1 /> 16 17 <DefaultWeaponmodeLink firemode=2 weaponmode=2 /> 18 <DefaultWeaponmodeLink firemode=3 weaponmode=3 /> 17 19 </links> 18 20 <Weapon> 19 21 <attached> 20 <Model mesh="LightningGun.mesh" pitch=" 78" roll="90" yaw="90" position="0,-1.3,0" />22 <Model mesh="LightningGun.mesh" pitch="100" roll="90" yaw="90" position="0,-1.3,0" /> 21 23 <Model mesh="LightningGun-s.mesh" pitch="78" roll="90" yaw="90" position="0.2,-1.3,0" /> 22 <Model mesh="hs-w01.mesh" roll="195" position="0,1,0" scale=2 /> 23 <Model mesh="hs-w01s.mesh" roll="195" position="0.1,0.5,0" scale=2 /> 24 <Model mesh="hs-w01_reduced.mesh" roll="90" pitch="-76" yaw="-90" position="-1.5,1,0.3" scale=0.6 /> 24 25 </attached> 25 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.7, 1.5,-4" />26 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" muzzleoffset="-0.9, 1.1,-4" />27 <LightningGun mode=1 muzzleoffset="0,0,0" />26 <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 0.1, 1.6,-2" /> 27 <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-1.6, 1.3,-2" /> 28 <LightningGun mode=1 muzzleoffset="0,0,0" damage=23 /> 28 29 </Weapon> 29 30 <Weapon> … … 31 32 <Model mesh="LightningGun.mesh" pitch="103" roll="90" yaw="90" position="0,-1.35,0" /> 32 33 <Model mesh="LightningGun-s.mesh" pitch="103" roll="90" yaw="90" position="0.2,-1.35,0" /> 33 <Model mesh="hs-w01.mesh" roll="165" position="0,1,0" scale=2 /> 34 <Model mesh="hs-w01s.mesh" roll="165" position="-0.1,0.5,0" scale=2 /> 34 <Model mesh="hs-w01_reduced.mesh" roll="90" pitch="-104" yaw="-90" position="0,1.3,0.3" scale=0.6 /> 35 35 </attached> 36 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" muzzleoffset=" 0.9, 1.1, -4.0" />37 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset="-0.7, 1.5, -4.0" />38 <LightningGun mode=1 muzzleoffset="0,0,0" />36 <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 1.6, 1.3, -2.0" /> 37 <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-0.1, 1.6, -2.0" /> 38 <LightningGun mode=1 muzzleoffset="0,0,0" damage=23 /> 39 39 </Weapon> 40 40 <Weapon> 41 <RocketFire mode=2 muzzleoffset="0,0,0" /> 41 <SimpleRocketFire mode=2 muzzleoffset="0,0,0" damage=50 /> 42 <RocketFire mode=3 muzzleoffset="0,0,0" damage=100 /> 42 43 </Weapon> 43 44 </WeaponPack> -
code/trunk/data/levels/includes/weaponsettings_H2.oxi
r5781 r7163 18 18 <Model mesh="hs-w01s.mesh" roll="180" position="0.1, 0.0, 0.0" scale=2 /> 19 19 </attached> 20 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.8, 0.9,-4" />21 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" muzzleoffset="-0.8, 0.9,-4" />20 <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=2.5 material="Flares/point_lensflare" muzzleoffset=" 0.8, 0.9,-4" /> 21 <HsW01 mode=0 munitionpershot=0 delay=0 damage=2.5 material="Flares/point_lensflare" muzzleoffset="-0.8, 0.9,-4" /> 22 22 </Weapon> 23 23 <Weapon> … … 26 26 <Model mesh="hs-w01s.mesh" roll="180" position="-0.1, 0.0, 0.0" scale=2 /> 27 27 </attached> 28 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" muzzleoffset=" 0.8, 0.9, -4.0" />29 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset="-0.8, 0.9, -4.0" />28 <HsW01 mode=0 munitionpershot=0 delay=0 damage=2.5 material="Flares/point_lensflare" muzzleoffset=" 0.8, 0.9, -4.0" /> 29 <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=2.5 material="Flares/point_lensflare" muzzleoffset="-0.8, 0.9, -4.0" /> 30 30 </Weapon> 31 31 </WeaponPack> -
code/trunk/data/levels/includes/weaponsettings_HXY.oxi
r6417 r7163 14 14 </links> 15 15 <Weapon> 16 <HsW01 mode=0 munitionpershot=0 d elay=0 material="Flares/point_lensflare" />17 <HsW01 mode=0 munitionpershot=0 d elay=0.1 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />16 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0 material="Flares/point_lensflare" /> 17 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0.1 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" /> 18 18 <LightningGun mode=1 muzzleoffset="0,0,0" /> 19 19 </Weapon> 20 20 <Weapon> 21 <HsW01 mode=0 munitionpershot=0 d elay=0 material="Flares/point_lensflare" />22 <HsW01 mode=0 munitionpershot=0 d elay=0.1 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />21 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0 material="Flares/point_lensflare" /> 22 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0.1 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" /> 23 23 <LightningGun mode=1 muzzleoffset="0,0,0" /> 24 24 </Weapon> -
code/trunk/data/levels/includes/weaponsettings_ghost.oxi
r6417 r7163 14 14 </links> 15 15 <Weapon> 16 <HsW01 mode=0 munitionpershot=0 d elay=0 material="Flares/point_lensflare" />17 <HsW01 mode=0 munitionpershot=0 d elay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />16 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0 material="Flares/point_lensflare" /> 17 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" /> 18 18 <LightningGun mode=1 muzzleoffset="0,0,0" /> 19 19 </Weapon> 20 20 <Weapon> 21 <HsW01 mode=0 munitionpershot=0 d elay=0 material="Flares/point_lensflare" />22 <HsW01 mode=0 munitionpershot=0 d elay=0.125 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />21 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0 material="Flares/point_lensflare" /> 22 <HsW01 mode=0 munitionpershot=0 damage=2.5 delay=0.125 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" /> 23 23 <LightningGun mode=1 muzzleoffset="0,0,0" /> 24 24 </Weapon> -
code/trunk/data/levels/includes/weaponsettings_pirate.oxi
r5781 r7163 14 14 </links> 15 15 <Weapon> 16 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />17 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />16 <HsW01 mode=0 munitionpershot=0 delay=0 damage=2.5 material="Flares/point_lensflare" /> 17 <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=2.5 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" /> 18 18 </Weapon> 19 19 <Weapon> 20 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />21 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />20 <HsW01 mode=0 munitionpershot=0 delay=0 damage=2.5 material="Flares/point_lensflare" /> 21 <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=2.5 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" /> 22 22 </Weapon> 23 23 </WeaponPack> -
code/trunk/data/levels/presentation.oxw
r6417 r7163 3 3 include("stats.oxo") 4 4 include("templates/spaceship_assff.oxt") 5 include("templates/lodinformation.oxt") 5 6 ?> 6 7 … … 9 10 description = "Just a few tests" 10 11 > 12 <templates> 13 <Template link=lodtemplate_default /> 14 </templates> 15 11 16 <Scene 12 17 ambientlight = "0.3, 0.3, 0.3" -
code/trunk/data/levels/presentation09.oxw
r6417 r7163 4 4 include("templates/spaceship_assff.oxt") 5 5 include("templates/spaceship_H2.oxt") 6 include("templates/lodinformation.oxt") 6 7 ?> 7 8 … … 11 12 12 13 > 14 <templates> 15 <Template link=lodtemplate_default /> 16 </templates> 17 13 18 <Scene 14 19 ambientlight = "0.5, 0.5, 0.5" 15 20 skybox = "Orxonox/skypanoramagen1" 16 21 > 22 17 23 <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" /> 18 24 19 25 20 <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />26 <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 21 27 22 28 23 <?lua24 max = 2025 for i = 1, max, 126 do27 x = math.sin(i/max*6)*4000028 y = math.cos(i/max*6)*4000029 z = i*10029 <?lua 30 max = 20 31 for i = 1, max, 1 32 do 33 x = math.sin(i/max*6)*40000 34 y = math.cos(i/max*6)*40000 35 z = i*100 30 36 ?> 31 <?lua32 for k = 1, 25, 133 do34 j = math.random()35 ?>37 <?lua 38 for k = 1, 25, 1 39 do 40 j = math.random() 41 ?> 36 42 37 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">38 <attached>39 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />40 </attached>41 <?lua if i == 5 then ?><collisionShapes>42 <SphereCollisionShape radius="<?lua print(j * 70) ?>" />43 </collisionShapes> <?lua end ?>44 </MovableEntity>45 <?lua 46 end 47 ?>48 <?lua end ?> 43 <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 44 <attached> 45 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 46 </attached> 47 <?lua if i == 5 then ?><collisionShapes> 48 <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> 49 </collisionShapes> <?lua end ?> 50 </MovableEntity> 51 52 <?lua end ?> 53 <?lua end ?> 54 49 55 <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 50 56 -
code/trunk/data/levels/presentation09b.oxw
r6417 r7163 5 5 include("templates/spaceship_H2.oxt") 6 6 include("templates/spaceship_pirate.oxt") 7 include("templates/pickup_representation_templates.oxt") 8 include("templates/lodinformation.oxt") 7 9 ?> 8 10 … … 12 14 gametype = TeamDeathmatch 13 15 > 16 <templates> 17 <Template link=lodtemplate_default /> 18 </templates> 19 14 20 <Scene 15 21 ambientlight = "0.5, 0.5, 0.5" 16 22 skybox = "Orxonox/skypanoramagen2" 17 23 > 24 25 <?lua 26 include("includes/pickups.oxi") 27 ?> 28 18 29 <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" /> 19 20 <Template name="JumpItem" baseclass="Jump">21 <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />22 </Template>23 <Template name="HealthImmediateItem" baseclass="HealthImmediate">24 <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />25 </Template>26 <Template name="HealthUsableItem" baseclass="HealthUsable">27 <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />28 </Template>29 30 30 31 <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff /> … … 87 88 </SpaceShip> 88 89 89 <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500"> 90 <attached> 91 <!--<Model mesh="jumpthrust.mesh" scale="1.0" /> 92 <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />--> 93 </attached> 90 <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 91 <pickup> 92 <SpeedPickup template=smalljumppickup /> 93 </pickup> 94 94 </PickupSpawner> 95 95 96 <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550"> 97 <attached> 98 <Model mesh="gwrench.mesh" scale="1.0" /> 99 <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" /> 100 </attached> 96 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 97 <PickupRepresentation 98 pickupName = "Medium Health Pack" 99 pickupDescription = "Once used adds a medium amout of health to the ship." 100 spawnerTemplate = "mediumhealthpickupRepresentation" 101 inventoryRepresentation = "MediumHealth" 102 > 103 <pickup> 104 <HealthPickup health=100 activationType="onUse" durationType="once" /> 105 </pickup> 106 </PickupRepresentation> 107 108 <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 109 <pickup> 110 <HealthPickup health=100 activationType=onUse durationType=once /> 111 </pickup> 101 112 </PickupSpawner> 102 113 103 <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400"> 104 <attached> 105 <Model mesh="gwrench.mesh" scale="1.0" /> 106 <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" /> 107 </attached> 114 <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20"> 115 <pickup> 116 <HealthPickup template=mediumhealthpickup /> 117 </pickup> 108 118 </PickupSpawner> 109 119 … … 120 130 </EventDispatcher> 121 131 122 <?lua 123 for i = 1, 10, 1 124 do 125 ?> 126 <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> 127 <templates> 128 <Template link=spaceshippirate /> 129 </templates> 130 <controller> 131 <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> 132 <waypoints> 133 <StaticEntity position="3100, 2000, 1500" /> 134 </waypoints> 135 </WaypointPatrolController> 136 </controller> 137 </SpaceShip> 138 <?lua 139 end 140 ?> 141 142 <?lua 143 for i = 1, 12, 1 144 do 145 ?> 146 <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > 147 <templates> 148 <Template link=spaceshipassff /> 149 </templates> 150 <controller> 151 <WaypointPatrolController alertnessradius=1000 team=0> 152 <waypoints> 153 <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> 154 </waypoints> 155 </WaypointPatrolController> 156 </controller> 157 </SpaceShip> 158 <?lua 159 end 160 ?> 132 <?lua 133 for i = 1, 10, 1 do 134 ?> 135 <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> 136 <templates> 137 <Template link=spaceshippirate /> 138 </templates> 139 <controller> 140 <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> 141 <waypoints> 142 <StaticEntity position="3100, 2000, 1500" /> 143 </waypoints> 144 </WaypointPatrolController> 145 </controller> 146 </SpaceShip> 147 <?lua end ?> 148 149 <?lua 150 for i = 1, 12, 1 do 151 ?> 152 <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > 153 <templates> 154 <Template link=spaceshipassff /> 155 </templates> 156 <controller> 157 <WaypointPatrolController alertnessradius=1000 team=0> 158 <waypoints> 159 <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> 160 </waypoints> 161 </WaypointPatrolController> 162 </controller> 163 </SpaceShip> 164 <?lua end ?> 161 165 162 166 <Billboard position="2300, 4400, 2500" material="Examples/Flare" /> … … 172 176 </EventDispatcher> 173 177 174 <?lua 175 for i = 1, 12, 1 176 do 177 ?> 178 <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > 179 <templates> 180 <Template link=spaceshipassff /> 181 </templates> 182 <controller> 183 <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false> 184 <waypoints> 185 <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> 186 <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> 187 <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> 188 </waypoints> 189 </WaypointPatrolController> 190 </controller> 191 </SpaceShip> 192 <?lua 193 end 194 ?> 178 <?lua 179 for i = 1, 12, 1 do 180 ?> 181 <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > 182 <templates> 183 <Template link=spaceshipassff /> 184 </templates> 185 <controller> 186 <WaypointPatrolController name=attacker alertnessradius=1000 team=0 active=false> 187 <waypoints> 188 <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> 189 <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> 190 <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> 191 </waypoints> 192 </WaypointPatrolController> 193 </controller> 194 </SpaceShip> 195 <?lua end ?> 195 196 196 197 <StaticEntity position="2800, 2500, 2500"> 197 198 199 200 201 198 <attached> 199 <CheckPoint /> 200 <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/> 201 <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/> 202 </attached> 202 203 </StaticEntity> 204 203 205 <!-- 204 206 <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500> 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 207 <attached> 208 <CheckPoint /> 209 <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/> 210 <Backlight 211 mainstate=activity 212 active=false 213 scale=0.4 214 name=bltest 215 position=" 7.6, 0, 6" 216 colour="0.2, 0.65, 1.0, 1.0" 217 width=15 218 length=1500 219 lifetime=2 220 elements=50 221 trailmaterial="Trail/backlighttrail" 222 turnontime=1 223 turnofftime=1 224 material="Flares/ThrusterFlare1" 225 /> 226 </attached> 227 <collisionShapes> 228 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 229 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 230 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 231 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 232 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 233 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 234 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 235 </collisionShapes> 234 236 </Destroyer> 235 237 --> 238 236 239 <Destroyer 237 238 239 240 241 242 243 240 position = "6500,-2000,-1000" 241 collisionType = dynamic 242 mass = 100000 243 angularDamping = 0.9999999 244 health = 1000 245 maxhealth = 1000 246 initialhealth = 1000 244 247 > 248 <controller> 249 <WaypointPatrolController team=1 /> 250 </controller> 251 <attached> 252 <Model mesh="Carrier.mesh" scale="5" /> 253 <Backlight 254 mainstate=activity 255 active=false 256 scale=0.4 257 name=bltest 258 position=" 7.6, 0, 6" 259 colour="0.2, 0.65, 1.0, 1.0" 260 width=15 261 length=1500 262 lifetime=2 263 elements=50 264 trailmaterial="Trail/backlighttrail" 265 turnontime=1 266 turnofftime=1 267 material="Flares/ThrusterFlare1" 268 /> 269 270 <?lua 271 for i=0,8,1 do 272 ?> 273 <BlinkingBillboard 274 position="<?lua print(200-270/8*i)?> ,15,2" 275 material="Examples/Flare" 276 colour="1.0, 0.5, 0.3" 277 phase=<?lua print(-360/8*i)?> 278 amplitude=0.1 279 frequency=0.5 280 quadratic=1 281 /> 282 283 <BlinkingBillboard 284 position="<?lua print(200-270/8*i)?>,-15,2" 285 material="Examples/Flare" 286 colour="1.0, 0.5, 0.3" 287 phase=<?lua print(-360/8*i)?> 288 amplitude=0.1 289 frequency=0.5 290 quadratic=1 291 /> 292 <?lua end ?> 293 294 <Backlight 295 scale=1 296 position=" 169, 75, -15" 297 colour="1, 0.85, 0.5, 0.5" 298 width=40 299 length=1000 300 lifetime=5 301 elements=15 302 trailmaterial="Trail/backlighttrail" 303 material="Examples/Flare" 304 /> 305 <Backlight 306 scale=1 307 position=" 169, -75, -15" 308 colour="1, 0.85, 0.5, 0.5" 309 width=40 310 length=1000 311 lifetime=5 312 elements=15 313 trailmaterial="Trail/backlighttrail" 314 material="Examples/Flare" /> 315 </attached> 316 <collisionShapes> 317 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 318 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 319 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 320 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 321 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 322 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 323 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 324 </collisionShapes> 325 </Destroyer> 326 327 <?lua 328 for i = 1, 10, 1 do 329 ?> 330 <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > 331 <templates> 332 <Template link=spaceshippirate /> 333 </templates> 245 334 <controller> 246 <WaypointPatrolController team=1 /> 335 <WaypointPatrolController alertnessradius=1000 team=1> 336 <waypoints> 337 <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> 338 </waypoints> 339 </WaypointPatrolController> 247 340 </controller> 341 </SpaceShip> 342 <?lua end ?> 343 344 <?lua 345 for i = 1, 200, 1 do 346 x = math.random() * 100 + (i-70) * 100 347 y = math.random() * 3000 - 1500 348 z = math.random() * 3000 - 1500 + (i-100) * 10 349 s = math.random() * 60 + 30 350 ?> 351 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 248 352 <attached> 249 <Model mesh="Carrier.mesh" scale="5" /> 250 <Backlight 251 mainstate=activity 252 active=false 253 scale=0.4 254 name=bltest 255 position=" 7.6, 0, 6" 256 colour="0.2, 0.65, 1.0, 1.0" 257 width=15 258 length=1500 259 lifetime=2 260 elements=50 261 trailmaterial="Trail/backlighttrail" 262 turnontime=1 263 turnofftime=1 264 material="Flares/ThrusterFlare1" 265 /> 266 <?lua for i=0,8,1 do ?> 267 <BlinkingBillboard 268 position="<?lua print(200-270/8*i)?> ,15,2" 269 material="Examples/Flare" 270 colour="1.0, 0.5, 0.3" 271 phase=<?lua print(-360/8*i)?> 272 amplitude=0.1 273 frequency=0.5 274 quadratic=1 275 /> 276 277 <BlinkingBillboard 278 position="<?lua print(200-270/8*i)?>,-15,2" 279 material="Examples/Flare" 280 colour="1.0, 0.5, 0.3" 281 phase=<?lua print(-360/8*i)?> 282 amplitude=0.1 283 frequency=0.5 284 quadratic=1 285 /> 286 <?lua end ?> 287 288 <Backlight 289 scale=1 290 position=" 169, 75, -15" 291 colour="1, 0.85, 0.5, 0.5" 292 width=40 293 length=1000 294 lifetime=5 295 elements=15 296 trailmaterial="Trail/backlighttrail" 297 material="Examples/Flare" 298 /> 299 <Backlight 300 scale=1 301 position=" 169, -75, -15" 302 colour="1, 0.85, 0.5, 0.5" 303 width=40 304 length=1000 305 lifetime=5 306 elements=15 307 trailmaterial="Trail/backlighttrail" 308 material="Examples/Flare" /> 353 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 309 354 </attached> 310 <collisionShapes> 311 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 312 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 313 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 314 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 315 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 316 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 317 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 318 </collisionShapes> 319 </Destroyer> 320 321 <?lua 322 for i = 1, 10, 1 323 do 324 ?> 325 <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > 326 <templates> 327 <Template link=spaceshippirate /> 328 </templates> 329 <controller> 330 <WaypointPatrolController alertnessradius=1000 team=1> 331 <waypoints> 332 <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> 333 </waypoints> 334 </WaypointPatrolController> 335 </controller> 336 </SpaceShip> 337 <?lua 338 end 339 ?> 340 341 <?lua 342 for i = 1, 200, 1 343 do 344 x = math.random() * 100 + (i-70) * 100 345 y = math.random() * 3000 - 1500 346 z = math.random() * 3000 - 1500 + (i-100) * 10 347 s = math.random() * 60 + 30 348 ?> 349 350 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 351 <attached> 352 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 353 </attached> 354 </MovableEntity> 355 <?lua 356 end 357 ?> 358 359 <?lua 360 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 361 sizes = {4, 4, 4, 4, 4, 10, 20} 362 elements.length = function() 363 return table.getn(elements) 364 end 365 for i = 1, 150, 1 366 do 367 x = math.random() * 750 - 4500 368 y = math.random() * 1000 + 2000 369 z = math.random() * 500 + 1000 370 e = math.floor(math.random()*elements.length()+1) 371 ?> 372 373 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 374 <attached> 375 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 376 </attached> 377 </MovableEntity> 378 <?lua 379 end 380 ?> 355 </MovableEntity> 356 <?lua end ?> 357 358 <?lua 359 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 360 sizes = {4, 4, 4, 4, 4, 10, 20} 361 362 elements.length = function() 363 return table.getn(elements) 364 end 365 366 for i = 1, 150, 1 do 367 x = math.random() * 750 - 4500 368 y = math.random() * 1000 + 2000 369 z = math.random() * 500 + 1000 370 e = math.floor(math.random()*elements.length()+1) 371 ?> 372 373 <MovableEntity position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 - 15) ?>"> 374 <attached> 375 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 376 </attached> 377 </MovableEntity> 378 <?lua end ?> 381 379 382 380 </Scene> -
code/trunk/data/levels/presentationHS09.oxw
r6417 r7163 5 5 include("templates/spaceship_H2.oxt") 6 6 include("templates/spaceship_pirate.oxt") 7 include("templates/pickup_representation_templates.oxt") 8 include("templates/lodinformation.oxt") 7 9 ?> 8 10 … … 13 15 hasPhysics = true 14 16 > 17 <templates> 18 <Template link=lodtemplate_default /> 19 </templates> 20 15 21 <Scene 16 22 ambientlight = "0.6, 0.4, 0.4" 17 23 skybox = "Orxonox/skypanoramagen2" 18 24 > 25 26 <?lua 27 include("includes/pickups.oxi") 28 ?> 29 19 30 <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" /> 20 31 21 <Template name="JumpItem" baseclass="Jump">22 <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />23 </Template>24 <Template name="HealthImmediateItem" baseclass="HealthImmediate">25 <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />26 </Template>27 <Template name="HealthUsableItem" baseclass="HealthUsable">28 <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />29 </Template>30 31 32 <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff /> 32 33 34 33 35 34 <SpaceShip position="-3900,3000,1000"> … … 92 91 <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" /> 93 92 94 <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500"> 95 <attached> 96 <!--<Model mesh="jumpthrust.mesh" scale="1.0" /> 97 <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />--> 98 </attached> 93 <PickupSpawner position="-3800, 2500, 1500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 94 <pickup> 95 <SpeedPickup template=smalljumppickup /> 96 </pickup> 99 97 </PickupSpawner> 100 98 101 <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550"> 102 <attached> 103 <Model mesh="gwrench.mesh" scale="1.0" /> 104 <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" /> 105 </attached> 99 <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> 100 <PickupRepresentation 101 pickupName = "Medium Health Pack" 102 pickupDescription = "Once used adds a medium amout of health to the ship." 103 spawnerTemplate = "mediumhealthpickupRepresentation" 104 inventoryRepresentation = "MediumHealth" 105 > 106 <pickup> 107 <HealthPickup health=100 activationType="onUse" durationType="once" /> 108 </pickup> 109 </PickupRepresentation> 110 111 <PickupSpawner position="-4150,2750,1550" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> 112 <pickup> 113 <HealthPickup health=100 activationType=onUse durationType=once /> 114 </pickup> 106 115 </PickupSpawner> 107 116 108 <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400"> 109 <attached> 110 <Model mesh="gwrench.mesh" scale="1.0" /> 111 <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" /> 112 </attached> 117 <PickupSpawner position="2300, 4300, 2400" respawnTime="5" triggerDistance="20"> 118 <pickup> 119 <HealthPickup template=mediumhealthpickup /> 120 </pickup> 113 121 </PickupSpawner> 114 122 … … 125 133 </EventDispatcher> 126 134 127 <?lua 128 for i = 1, 10, 1 129 do 130 ?> 131 <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> 132 <templates> 133 <Template link=spaceshippirate /> 134 </templates> 135 <controller> 136 <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> 137 <waypoints> 138 <StaticEntity position="3100, 2000, 1500" /> 139 </waypoints> 140 </WaypointPatrolController> 141 </controller> 142 </SpaceShip> 143 <?lua 144 end 145 ?> 146 147 <?lua 148 for i = 1, 12, 1 149 do 150 ?> 151 <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > 152 <templates> 153 <Template link=spaceshipassff /> 154 </templates> 155 <controller> 156 <WaypointPatrolController alertnessradius=1000 team=0> 157 <waypoints> 158 <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> 159 </waypoints> 160 </WaypointPatrolController> 161 </controller> 162 </SpaceShip> 163 <?lua 164 end 165 ?> 135 <?lua 136 for i = 1, 10, 1 do 137 ?> 138 <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> 139 <templates> 140 <Template link=spaceshippirate /> 141 </templates> 142 <controller> 143 <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false> 144 <waypoints> 145 <StaticEntity position="3100, 2000, 1500" /> 146 </waypoints> 147 </WaypointPatrolController> 148 </controller> 149 </SpaceShip> 150 <?lua end ?> 151 152 <?lua 153 for i = 1, 12, 1 do 154 ?> 155 <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" > 156 <templates> 157 <Template link=spaceshipassff /> 158 </templates> 159 <controller> 160 <WaypointPatrolController alertnessradius=1000 team=0> 161 <waypoints> 162 <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" /> 163 </waypoints> 164 </WaypointPatrolController> 165 </controller> 166 </SpaceShip> 167 <?lua end ?> 166 168 167 169 <Billboard position="2300, 4400, 2500" material="Examples/Flare" /> … … 177 179 </EventDispatcher> 178 180 179 <?lua 180 for i = 1, 12, 1 181 do 182 ?> 183 <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > 184 <templates> 185 <Template link=spaceshipassff /> 186 </templates> 187 <controller> 188 <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false> 189 <waypoints> 190 <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> 191 <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> 192 <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> 193 </waypoints> 194 </WaypointPatrolController> 195 </controller> 196 </SpaceShip> 197 <?lua 198 end 199 ?> 181 <?lua 182 for i = 1, 12, 1 do 183 ?> 184 <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" > 185 <templates> 186 <Template link=spaceshipassff /> 187 </templates> 188 <controller> 189 <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false> 190 <waypoints> 191 <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" /> 192 <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" /> 193 <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" /> 194 </waypoints> 195 </WaypointPatrolController> 196 </controller> 197 </SpaceShip> 198 <?lua end ?> 200 199 201 200 <StaticEntity position="2800, 2500, 2500"> 202 203 204 205 206 201 <attached> 202 <CheckPoint /> 203 <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/> 204 <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/> 205 </attached> 207 206 </StaticEntity> 207 208 208 <!-- 209 209 <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500> 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 210 <attached> 211 <CheckPoint /> 212 <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/> 213 <Backlight 214 mainstate=activity 215 active=false 216 scale=0.4 217 name=bltest 218 position=" 7.6, 0, 6" 219 colour="0.2, 0.65, 1.0, 1.0" 220 width=15 221 length=1500 222 lifetime=2 223 elements=50 224 trailmaterial="Trail/backlighttrail" 225 turnontime=1 226 turnofftime=1 227 material="Flares/ThrusterFlare1" 228 /> 229 </attached> 230 <collisionShapes> 231 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 232 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 233 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 234 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 235 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 236 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 237 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 238 </collisionShapes> 239 239 </Destroyer> 240 240 --> 241 241 242 <Destroyer 242 243 244 245 246 247 248 243 position = "6500,-2000,-1000" 244 collisionType = dynamic 245 mass = 100000 246 angularDamping = 0.9999999 247 health = 1000 248 maxhealth = 1000 249 initialhealth = 1000 249 250 > 251 <controller> 252 <WaypointPatrolController team=1 /> 253 </controller> 254 <attached> 255 <Model mesh="Carrier.mesh" scale="5" /> 256 <Backlight 257 mainstate=activity 258 active=false 259 scale=0.4 260 name=bltest 261 position=" 7.6, 0, 6" 262 colour="0.2, 0.65, 1.0, 1.0" 263 width=15 264 length=1500 265 lifetime=2 266 elements=50 267 trailmaterial="Trail/backlighttrail" 268 turnontime=1 269 turnofftime=1 270 material="Flares/ThrusterFlare1" 271 /> 272 273 <?lua 274 for i=0,8,1 do 275 ?> 276 <BlinkingBillboard 277 position="<?lua print(200-270/8*i)?> ,15,2" 278 material="Examples/Flare" 279 colour="1.0, 0.5, 0.3" 280 phase=<?lua print(-360/8*i)?> 281 amplitude=0.1 282 frequency=0.5 283 quadratic=1 284 /> 285 286 <BlinkingBillboard 287 position="<?lua print(200-270/8*i)?>,-15,2" 288 material="Examples/Flare" 289 colour="1.0, 0.5, 0.3" 290 phase=<?lua print(-360/8*i)?> 291 amplitude=0.1 292 frequency=0.5 293 quadratic=1 294 /> 295 <?lua end ?> 296 297 <Backlight 298 scale=1 299 position=" 169, 75, -15" 300 colour="1, 0.85, 0.5, 0.5" 301 width=40 302 length=1000 303 lifetime=5 304 elements=15 305 trailmaterial="Trail/backlighttrail" 306 material="Examples/Flare" 307 /> 308 <Backlight 309 scale=1 310 position=" 169, -75, -15" 311 colour="1, 0.85, 0.5, 0.5" 312 width=40 313 length=1000 314 lifetime=5 315 elements=15 316 trailmaterial="Trail/backlighttrail" 317 material="Examples/Flare" 318 /> 319 </attached> 320 <collisionShapes> 321 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 322 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 323 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 324 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 325 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 326 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 327 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 328 </collisionShapes> 329 </Destroyer> 330 331 <?lua 332 for i = 1, 10, 1 do 333 ?> 334 <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > 335 <templates> 336 <Template link=spaceshippirate /> 337 </templates> 250 338 <controller> 251 <WaypointPatrolController team=1 /> 339 <WaypointPatrolController alertnessradius=1000 team=1> 340 <waypoints> 341 <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> 342 </waypoints> 343 </WaypointPatrolController> 252 344 </controller> 345 </SpaceShip> 346 <?lua end ?> 347 348 <?lua 349 elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"} 350 351 elements.length = function() 352 return table.getn(elements) 353 end 354 355 for i = 1, 100, 1 do 356 x = math.random() * 100 + (i) * 100 357 y = math.random() * 3000 - 1500 358 z = math.random() * 3000 - 1500 + (i-100) * 10 359 s = math.random() * 60 + 30 360 e = math.floor(math.random()*elements.length()+1) 361 ?> 362 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 253 363 <attached> 254 <Model mesh="Carrier.mesh" scale="5" /> 255 <Backlight 256 mainstate=activity 257 active=false 258 scale=0.4 259 name=bltest 260 position=" 7.6, 0, 6" 261 colour="0.2, 0.65, 1.0, 1.0" 262 width=15 263 length=1500 264 lifetime=2 265 elements=50 266 trailmaterial="Trail/backlighttrail" 267 turnontime=1 268 turnofftime=1 269 material="Flares/ThrusterFlare1" 270 /> 271 <?lua for i=0,8,1 do ?> 272 <BlinkingBillboard 273 position="<?lua print(200-270/8*i)?> ,15,2" 274 material="Examples/Flare" 275 colour="1.0, 0.5, 0.3" 276 phase=<?lua print(-360/8*i)?> 277 amplitude=0.1 278 frequency=0.5 279 quadratic=1 280 /> 281 282 <BlinkingBillboard 283 position="<?lua print(200-270/8*i)?>,-15,2" 284 material="Examples/Flare" 285 colour="1.0, 0.5, 0.3" 286 phase=<?lua print(-360/8*i)?> 287 amplitude=0.1 288 frequency=0.5 289 quadratic=1 290 /> 291 <?lua end ?> 292 293 <Backlight 294 scale=1 295 position=" 169, 75, -15" 296 colour="1, 0.85, 0.5, 0.5" 297 width=40 298 length=1000 299 lifetime=5 300 elements=15 301 trailmaterial="Trail/backlighttrail" 302 material="Examples/Flare" 303 /> 304 <Backlight 305 scale=1 306 position=" 169, -75, -15" 307 colour="1, 0.85, 0.5, 0.5" 308 width=40 309 length=1000 310 lifetime=5 311 elements=15 312 trailmaterial="Trail/backlighttrail" 313 material="Examples/Flare" /> 364 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" /> 314 365 </attached> 315 <collisionShapes> 316 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 317 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 318 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 319 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 320 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 321 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 322 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 323 </collisionShapes> 324 </Destroyer> 325 326 <?lua 327 for i = 1, 10, 1 328 do 329 ?> 330 <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" > 331 <templates> 332 <Template link=spaceshippirate /> 333 </templates> 334 <controller> 335 <WaypointPatrolController alertnessradius=1000 team=1> 336 <waypoints> 337 <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" /> 338 </waypoints> 339 </WaypointPatrolController> 340 </controller> 341 </SpaceShip> 342 <?lua 343 end 344 ?> 345 346 <?lua 347 elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"} 348 elements.length = function() 349 return table.getn(elements) 350 end 351 for i = 1, 100, 1 352 do 353 x = math.random() * 100 + (i) * 100 354 y = math.random() * 3000 - 1500 355 z = math.random() * 3000 - 1500 + (i-100) * 10 356 s = math.random() * 60 + 30 357 e = math.floor(math.random()*elements.length()+1) 358 ?> 359 360 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 361 <attached> 362 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" /> 363 </attached> 364 </MovableEntity> 365 <?lua 366 end 367 ?> 368 369 <?lua 370 for i = 1, 100, 1 371 do 372 x = math.random() * 200 + i*200 373 y = math.random() * 3000 - 1500 374 z = math.random() * 3000 - 1500 + (i-100) * 10 375 s = math.random() * 60 + 30 376 ?> 377 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 378 <!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" /> 379 --> 380 <?lua 381 end 382 ?> 383 384 <?lua 385 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 386 sizes = {4, 4, 4, 4, 4, 10, 20} 387 elements.length = function() 388 return table.getn(elements) 389 end 390 for i = 1, 150, 1 391 do 392 x = math.random() * 750 - 4500 393 y = math.random() * 1000 + 2000 394 z = math.random() * 500 + 1000 395 e = math.floor(math.random()*elements.length()+1) 396 ?> 397 398 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 399 <attached> 400 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 401 </attached> 402 </MovableEntity> 403 <?lua 404 end 405 ?> 366 </MovableEntity> 367 <?lua end ?> 368 369 <?lua 370 for i = 1, 100, 1 do 371 x = math.random() * 200 + i*200 372 y = math.random() * 3000 - 1500 373 z = math.random() * 3000 - 1500 + (i-100) * 10 374 s = math.random() * 60 + 30 375 ?> 376 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 377 <!-- Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" /--> 378 <?lua end ?> 379 380 <?lua 381 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 382 sizes = {4, 4, 4, 4, 4, 10, 20} 383 384 elements.length = function() 385 return table.getn(elements) 386 end 387 388 for i = 1, 150, 1 do 389 x = math.random() * 750 - 4500 390 y = math.random() * 1000 + 2000 391 z = math.random() * 500 + 1000 392 e = math.floor(math.random()*elements.length()+1) 393 ?> 394 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 395 <attached> 396 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 397 </attached> 398 </MovableEntity> 399 <?lua end ?> 400 406 401 <!-- 407 402 <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 408 403 --> 409 </Scene> 404 405 </Scene> 410 406 </Level> -
code/trunk/data/levels/presentationHS09b.oxw
r6417 r7163 2 2 include("stats.oxo") 3 3 include("hudtemplates3.oxo") 4 include("templates/lodinformation.oxt") 4 5 ?> 5 6 … … 19 20 gametype = TeamDeathmatch 20 21 > 22 <templates> 23 <Template link=lodtemplate_default /> 24 </templates> 25 21 26 <Scene 22 27 ambientlight = "0.8, 0.8, 0.8" … … 24 29 > 25 30 26 27 <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" /> 31 <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" /> 28 32 29 33 <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" /> 30 <?lua 31 for i = 1, 50, 1 32 do 33 x = math.random() * 2000 + 4000 34 y = math.random() * 4000 - 2000 35 z = math.random() * 2000 - 1000 36 s = math.random() * 100 37 ?> 38 39 <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 40 <attached> 41 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" /> 42 </attached> 43 <collisionShapes> 44 <SphereCollisionShape radius="<?lua print(s*0.9) ?>" /> 45 </collisionShapes> 46 </MovableEntity> 47 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 48 <?lua 49 end 50 ?> 51 52 <?lua 53 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 54 sizes = {4, 4, 4, 4, 4, 10, 20} 55 elements.length = function() 56 return table.getn(elements) 57 end 58 for i = 1, 100, 1 59 do 60 x = math.random() * 750 - 4500 61 y = math.random() * 1000 + 2000 62 z = math.random() * 500 + 1000 63 e = math.floor(math.random()*elements.length()+1) 64 ?> 65 66 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 67 <attached> 68 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 69 </attached> 70 </MovableEntity> 71 <?lua 72 end 73 ?> 74 <?lua 75 for i = 1,12, 1 76 do 77 ?> 78 <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 79 <templates> 80 <Template link=spaceshipHXYSL /> 81 </templates> 82 <controller> 83 <WaypointPatrolController alertnessradius=4000 team=0 active=true> 84 <waypoints> 85 <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> 86 </waypoints> 87 </WaypointPatrolController> 88 </controller> 89 </SpaceShip> 90 <?lua 91 end 92 ?> 93 <SpaceShip position="5000,100,100" > 34 35 <?lua 36 for i = 1, 50, 1 do 37 x = math.random() * 2000 + 4000 38 y = math.random() * 4000 - 2000 39 z = math.random() * 2000 - 1000 40 s = math.random() * 100 41 ?> 42 <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 43 <attached> 44 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" /> 45 </attached> 46 <collisionShapes> 47 <SphereCollisionShape radius="<?lua print(s*0.9) ?>" /> 48 </collisionShapes> 49 </MovableEntity> 50 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 51 <?lua end ?> 52 53 <?lua 54 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 55 sizes = {4, 4, 4, 4, 4, 10, 20} 56 57 elements.length = function() 58 return table.getn(elements) 59 end 60 61 for i = 1, 100, 1 do 62 x = math.random() * 750 - 4500 63 y = math.random() * 1000 + 2000 64 z = math.random() * 500 + 1000 65 e = math.floor(math.random()*elements.length()+1) 66 ?> 67 <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>"> 68 <attached> 69 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 70 </attached> 71 </MovableEntity> 72 <?lua end ?> 73 74 <?lua 75 for i = 1,12, 1 do 76 ?> 77 <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 78 <templates> 79 <Template link=spaceshipHXYSL /> 80 </templates> 81 <controller> 82 <WaypointPatrolController alertnessradius=4000 team=0 active=true> 83 <waypoints> 84 <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> 85 </waypoints> 86 </WaypointPatrolController> 87 </controller> 88 </SpaceShip> 89 <?lua end ?> 90 91 <SpaceShip position="5000,100,100" > 94 92 <templates> 95 93 <Template link=spaceshipTransporterSL /> … … 102 100 </WaypointPatrolController> 103 101 </controller> 104 </SpaceShip> 102 </SpaceShip> 103 105 104 <Destroyer 106 107 108 109 110 111 112 105 position = "-5000,100 ,100" 106 collisionType = dynamic 107 mass = 100000 108 angularDamping = 0.9999999 109 health = 1000 110 maxhealth = 1000 111 initialhealth = 1000 113 112 > 114 <controller> 115 <WaypointPatrolController team=1 /> 116 </controller> 113 <controller> 114 <WaypointPatrolController team=1 /> 115 </controller> 116 <attached> 117 <Model mesh="Carrier.mesh" scale="5" /> 118 <Backlight 119 mainstate=activity 120 active=false 121 scale=0.4 122 name=bltest 123 position=" 7.6, 0, 6" 124 colour="0.2, 0.65, 1.0, 1.0" 125 width=15 126 length=1500 127 lifetime=2 128 elements=50 129 trailmaterial="Trail/backlighttrail" 130 turnontime=1 131 turnofftime=1 132 material="Flares/ThrusterFlare1" 133 /> 134 <?lua 135 for i=0,8,1 do 136 ?> 137 <BlinkingBillboard 138 position="<?lua print(200-270/8*i)?> ,15,2" 139 material="Examples/Flare" 140 colour="1.0, 0.5, 0.3" 141 phase=<?lua print(-360/8*i)?> 142 amplitude=0.1 143 frequency=0.5 144 quadratic=1 145 /> 146 147 <BlinkingBillboard 148 position="<?lua print(200-270/8*i)?>,-15,2" 149 material="Examples/Flare" 150 colour="1.0, 0.5, 0.3" 151 phase=<?lua print(-360/8*i)?> 152 amplitude=0.1 153 frequency=0.5 154 quadratic=1 155 /> 156 <?lua end ?> 157 158 <Backlight 159 scale=1 160 position=" 169, 75, -15" 161 colour="1, 0.85, 0.5, 0.5" 162 width=40 163 length=1000 164 lifetime=5 165 elements=15 166 trailmaterial="Trail/backlighttrail" 167 material="Examples/Flare" 168 /> 169 <Backlight 170 scale=1 171 position=" 169, -75, -15" 172 colour="1, 0.85, 0.5, 0.5" 173 width=40 174 length=1000 175 lifetime=5 176 elements=15 177 trailmaterial="Trail/backlighttrail" 178 material="Examples/Flare" 179 /> 180 </attached> 181 <collisionShapes> 182 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 183 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 184 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 185 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 186 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 187 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 188 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 189 </collisionShapes> 190 </Destroyer> 191 192 <?lua 193 for i = 1, 50, 1 do 194 x = -(math.random() * 2000 + 4000) 195 y = math.random() * 4000 - 2000 196 z = math.random() * 2000 - 1000 197 s = math.random() * 100 198 ?> 199 <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 117 200 <attached> 118 <Model mesh="Carrier.mesh" scale="5" /> 119 <Backlight 120 mainstate=activity 121 active=false 122 scale=0.4 123 name=bltest 124 position=" 7.6, 0, 6" 125 colour="0.2, 0.65, 1.0, 1.0" 126 width=15 127 length=1500 128 lifetime=2 129 elements=50 130 trailmaterial="Trail/backlighttrail" 131 turnontime=1 132 turnofftime=1 133 material="Flares/ThrusterFlare1" 134 /> 135 <?lua for i=0,8,1 do ?> 136 <BlinkingBillboard 137 position="<?lua print(200-270/8*i)?> ,15,2" 138 material="Examples/Flare" 139 colour="1.0, 0.5, 0.3" 140 phase=<?lua print(-360/8*i)?> 141 amplitude=0.1 142 frequency=0.5 143 quadratic=1 144 /> 145 146 <BlinkingBillboard 147 position="<?lua print(200-270/8*i)?>,-15,2" 148 material="Examples/Flare" 149 colour="1.0, 0.5, 0.3" 150 phase=<?lua print(-360/8*i)?> 151 amplitude=0.1 152 frequency=0.5 153 quadratic=1 154 /> 155 <?lua end ?> 156 157 <Backlight 158 scale=1 159 position=" 169, 75, -15" 160 colour="1, 0.85, 0.5, 0.5" 161 width=40 162 length=1000 163 lifetime=5 164 elements=15 165 trailmaterial="Trail/backlighttrail" 166 material="Examples/Flare" 167 /> 168 <Backlight 169 scale=1 170 position=" 169, -75, -15" 171 colour="1, 0.85, 0.5, 0.5" 172 width=40 173 length=1000 174 lifetime=5 175 elements=15 176 trailmaterial="Trail/backlighttrail" 177 material="Examples/Flare" /> 201 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" /> 178 202 </attached> 179 203 <collisionShapes> 180 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 181 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 182 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 183 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 184 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 185 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 186 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 204 <SphereCollisionShape radius="<?lua print(s*0.9)?>" /> 187 205 </collisionShapes> 188 </Destroyer> 189 190 <?lua 191 for i = 1, 50, 1 192 do 193 x = -(math.random() * 2000 + 4000) 194 y = math.random() * 4000 - 2000 195 z = math.random() * 2000 - 1000 196 s = math.random() * 100 197 ?> 198 199 <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 200 <attached> 201 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" /> 202 </attached> 203 <collisionShapes> 204 <SphereCollisionShape radius="<?lua print(s*0.9)?>" /> 205 </collisionShapes> 206 </MovableEntity> 207 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 208 <?lua 209 end 210 ?> 211 <!--<EventDispatcher> 206 </MovableEntity> 207 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 208 <?lua end ?> 209 210 <!-- EventDispatcher> 212 211 <targets> 213 212 <EventTarget target=attack /> … … 219 218 </activity> 220 219 </events> 221 </EventDispatcher>222 223 <EventDispatcher>220 </EventDispatcher> 221 222 <EventDispatcher> 224 223 <targets> 225 224 <EventTarget target=wait /> … … 230 229 </activity> 231 230 </events> 232 </EventDispatcher>--> 233 234 <?lua 235 for i = 1,25, 1 236 do 237 ?> 238 <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 239 <templates> 240 <Template link=spaceshipghost /> 241 </templates> 242 <controller> 243 231 </EventDispatcher --> 232 233 <?lua 234 for i = 1,25, 1 do 235 ?> 236 <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 237 <templates> 238 <Template link=spaceshipghost /> 239 </templates> 240 <controller> 244 241 <WaypointPatrolController name=attack alertnessradius=15000 team=1 active=false> 245 <events>246 <activity>247 <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true />248 </activity>249 </events>242 <events> 243 <activity> 244 <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true /> 245 </activity> 246 </events> 250 247 </WaypointPatrolController> 251 252 </controller> 253 </SpaceShip> 254 <?lua 255 end 256 ?> 257 258 248 </controller> 249 </SpaceShip> 250 <?lua end ?> 259 251 260 252 <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false"> … … 266 258 </AmbientSound> 267 259 268 <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0/> 260 <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0 /> 261 269 262 </Scene> 270 263 </Level> -
code/trunk/data/levels/presentation_dm.oxw
r6417 r7163 4 4 include("templates/spaceship_assff.oxt") 5 5 include("templates/spaceship_H2.oxt") 6 include("templates/lodinformation.oxt") 6 7 ?> 7 8 … … 10 11 description = "A simple testlevel" 11 12 > 13 <templates> 14 <Template link=lodtemplate_default /> 15 </templates> 16 12 17 <Scene 13 18 ambientlight = "0.5, 0.5, 0.5" … … 17 22 18 23 19 <?lua 20 for i = 1, 10, 1 21 do ?> 22 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 23 <?lua 24 end 25 ?> 24 <?lua 25 for i = 1, 10, 1 do 26 ?> 27 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 28 <?lua end ?> 26 29 27 30 <GlobalShader compositor="Bloom" visible=false> … … 33 36 </GlobalShader> 34 37 35 36 <?lua 37 for i = 1, 100, 1 38 do 39 j = math.random() 40 ?> 41 42 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 43 <attached> 44 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 45 </attached> 46 <collisionShapes> 47 <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> 48 </collisionShapes> 49 </MovableEntity> 50 <?lua 51 end 52 ?> 38 <?lua 39 for i = 1, 100, 1 do 40 j = math.random() 41 ?> 42 <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 43 <attached> 44 <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 45 </attached> 46 <collisionShapes> 47 <SphereCollisionShape radius="<?lua print(j * 70) ?>" /> 48 </collisionShapes> 49 </MovableEntity> 50 <?lua end ?> 53 51 54 52 <!-- 55 <?lua56 for i = 1, 70, 1 57 do?>58 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">59 <attached>60 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />61 </attached>62 </MovableEntity>63 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">64 <attached>65 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />66 </attached>67 </MovableEntity>53 <?lua 54 for i = 1, 70, 1 do 55 ?> 56 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 57 <attached> 58 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 59 </attached> 60 </MovableEntity> 61 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 62 <attached> 63 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 64 </attached> 65 </MovableEntity> 68 66 69 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">70 <attached>71 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />72 </attached>73 </MovableEntity>74 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">75 <attached>76 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />77 </attached>78 </MovableEntity>67 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 68 <attached> 69 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 70 </attached> 71 </MovableEntity> 72 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 73 <attached> 74 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 75 </attached> 76 </MovableEntity> 79 77 80 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 81 <attached> 82 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 83 </attached> 84 </MovableEntity> 85 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 86 <attached> 87 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 88 </attached> 89 </MovableEntity> 90 <?lua 91 end 92 ?> 78 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 79 <attached> 80 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 81 </attached> 82 </MovableEntity> 83 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 84 <attached> 85 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 86 </attached> 87 </MovableEntity> 88 <?lua end ?> 93 89 --> 90 94 91 </Scene> 95 92 </Level> -
code/trunk/data/levels/presentation_pong.oxw
r5929 r7163 3 3 include("stats.oxo") 4 4 include("ponghud.oxo") 5 include("templates/lodinformation.oxt") 5 6 ?> 6 7 … … 46 47 gametype = Pong 47 48 > 48 <AmbientSound source="ambient/mainmenu.wav" playOnLoad=true /> 49 <templates> 50 <Template link=lodtemplate_default /> 51 </templates> 52 53 <AmbientSound source="ambient/mainmenu.ogg" playOnLoad=true /> 49 54 50 55 <Scene … … 54 59 <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" /> 55 60 56 <?lua 57 for i = 1, 10, 1 58 do ?> 59 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" /> 60 <?lua 61 end 62 ?> 63 64 <MovableEntity rotationrate=5 rotationaxis="0,0,1"> 65 <attached> 66 <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25> 67 <attached> 68 <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" /> 69 <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" /> 70 71 <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 72 <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 73 <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 74 <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> 75 <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 76 <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 77 <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 78 79 <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 80 <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 81 <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 82 <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> 83 <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 84 <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 85 <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 86 87 <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" > 88 <events> 89 <play> 90 <EventListener event=pongcenter /> 91 </play> 92 </events> 93 </WorldSound> 94 95 <?lua 96 for i = 1, 15, 1 97 do ?> 98 <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> /> 99 <?lua 100 end 101 ?> 102 103 </attached> 104 </PongCenterpoint> 105 </attached> 106 </MovableEntity> 107 108 <EventDispatcher> 109 <targets> 110 <EventTarget target=scoreeffect_right /> 111 <EventTarget target=scoreeffect_center /> 112 </targets> 113 <events> 114 <spawn> 115 <EventFilter> 116 <names> 117 <EventName name=right /> 118 </names> 119 <EventListener event=pongcenter /> 120 </EventFilter> 121 </spawn> 122 </events> 123 </EventDispatcher> 124 <EventDispatcher> 125 <targets> 126 <EventTarget target=scoreeffect_left /> 127 <EventTarget target=scoreeffect_center /> 128 </targets> 129 <events> 130 <spawn> 131 <EventFilter> 132 <names> 133 <EventName name=left /> 134 </names> 135 <EventListener event=pongcenter /> 136 </EventFilter> 137 </spawn> 138 </events> 139 </EventDispatcher> 140 141 <?lua 142 dofile("includes/CuboidSpaceStation.lua") 143 ?> 144 145 <StaticEntity pitch=15> 146 <attached> 147 <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1"> 148 <attached> 149 <StaticEntity position="-2500,0,0" yaw=90 pitch=90> 150 <attached> 151 <?lua 152 createSpaceStationPar(0,2,1,2,1,4,1,50) 153 ?> 154 </attached> 155 </StaticEntity> 156 </attached> 157 </MovableEntity> 158 </attached> 159 </StaticEntity> 160 161 <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45> 162 <attached> 163 <Model scale=10 mesh="Carrier.mesh" /> 164 <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" /> 165 <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" /> 166 </attached> 167 </StaticEntity> 168 169 <StaticEntity pitch=70> 170 <attached> 171 <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974> 172 <attached> 173 <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0"> 174 <attached> 175 <Model position="0,0,0" scale=10 mesh="satellite.mesh" /> 176 <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50> 177 <attached> 178 <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/> 179 </attached> 180 </MovableEntity> 181 <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 182 <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 183 <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 184 <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 185 </attached> 186 </StaticEntity> 187 </attached> 188 </MovableEntity> 189 </attached> 190 </StaticEntity> 191 192 <?lua 193 for i = 1, 10, 1 194 do ?> 195 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 196 <attached> 197 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 198 </attached> 199 </MovableEntity> 200 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 201 <attached> 202 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 203 </attached> 204 </MovableEntity> 205 206 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 207 <attached> 208 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 209 </attached> 210 </MovableEntity> 211 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 212 <attached> 213 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 214 </attached> 215 </MovableEntity> 216 217 <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 218 <attached> 219 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 220 </attached> 221 </MovableEntity> 222 <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 223 <attached> 224 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 225 </attached> 226 </MovableEntity> 227 <?lua 228 end 229 ?> 61 <?lua 62 for i = 1, 10, 1 do 63 ?> 64 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" /> 65 <?lua end ?> 66 67 <MovableEntity rotationrate=5 rotationaxis="0,0,1"> 68 <attached> 69 <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25> 70 <attached> 71 <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" /> 72 <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" /> 73 74 <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 75 <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 76 <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 77 <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> 78 <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 79 <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 80 <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 81 82 <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 83 <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 84 <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 85 <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> 86 <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 87 <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> 88 <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> 89 90 <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" > 91 <events> 92 <play> 93 <EventListener event=pongcenter /> 94 </play> 95 </events> 96 </WorldSound> 97 98 <?lua 99 for i = 1, 15, 1 do 100 ?> 101 <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> /> 102 <?lua end ?> 103 104 </attached> 105 </PongCenterpoint> 106 </attached> 107 </MovableEntity> 108 109 <EventDispatcher> 110 <targets> 111 <EventTarget target=scoreeffect_right /> 112 <EventTarget target=scoreeffect_center /> 113 </targets> 114 <events> 115 <spawn> 116 <EventFilter> 117 <names> 118 <EventName name=right /> 119 </names> 120 <EventListener event=pongcenter /> 121 </EventFilter> 122 </spawn> 123 </events> 124 </EventDispatcher> 125 <EventDispatcher> 126 <targets> 127 <EventTarget target=scoreeffect_left /> 128 <EventTarget target=scoreeffect_center /> 129 </targets> 130 <events> 131 <spawn> 132 <EventFilter> 133 <names> 134 <EventName name=left /> 135 </names> 136 <EventListener event=pongcenter /> 137 </EventFilter> 138 </spawn> 139 </events> 140 </EventDispatcher> 141 142 <?lua 143 dofile("includes/CuboidSpaceStation.lua") 144 ?> 145 146 <StaticEntity pitch=15> 147 <attached> 148 <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1"> 149 <attached> 150 <StaticEntity position="-2500,0,0" yaw=90 pitch=90> 151 <attached> 152 <?lua 153 createSpaceStationPar(0,2,1,2,1,4,1,50) 154 ?> 155 </attached> 156 </StaticEntity> 157 </attached> 158 </MovableEntity> 159 </attached> 160 </StaticEntity> 161 162 <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45> 163 <attached> 164 <Model scale=10 mesh="Carrier.mesh" /> 165 <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" /> 166 <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" /> 167 </attached> 168 </StaticEntity> 169 170 <StaticEntity pitch=70> 171 <attached> 172 <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974> 173 <attached> 174 <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0"> 175 <attached> 176 <Model position="0,0,0" scale=10 mesh="satellite.mesh" /> 177 <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50> 178 <attached> 179 <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/> 180 </attached> 181 </MovableEntity> 182 <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 183 <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 184 <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 185 <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> 186 </attached> 187 </StaticEntity> 188 </attached> 189 </MovableEntity> 190 </attached> 191 </StaticEntity> 192 193 <?lua 194 for i = 1, 10, 1 do 195 ?> 196 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 197 <attached> 198 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 199 </attached> 200 </MovableEntity> 201 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 202 <attached> 203 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 204 </attached> 205 </MovableEntity> 206 207 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 208 <attached> 209 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 210 </attached> 211 </MovableEntity> 212 <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 213 <attached> 214 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 215 </attached> 216 </MovableEntity> 217 218 <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 219 <attached> 220 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 221 </attached> 222 </MovableEntity> 223 <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 224 <attached> 225 <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 226 </attached> 227 </MovableEntity> 228 <?lua end ?> 230 229 231 230 </Scene> -
code/trunk/data/levels/princessaeryn.oxw
r6417 r7163 3 3 include("stats.oxo") 4 4 include("templates/spaceship_assff.oxt") 5 include("templates/lodinformation.oxt") 5 6 ?> 6 7 7 8 <?lua 8 9 dofile("includes/CuboidSpaceStation.lua") 9 10 ?> 10 11 11 <NotificationQueue12 name = "notification"13 position = "0.55, 0.05"14 font = "VeraMono"15 textsize = 0.02016 length = 317 width = 5018 />19 20 12 <Level 21 name 13 name = "The Tale of Princess Aeryn" 22 14 description = "The Tale of Princess Aeryn" 23 15 > 24 <Scene 25 ambientlight = "0.3, 0.3, 0.3" 26 skybox = "Orxonox/skypanoramagen1" 27 > 28 <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" /> 29 30 <!-- Quest: --> 31 <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34"> 32 <QuestDescription title="The Tale of Princess Aeryn" description="Princess Aeryn has been kidnapped by evil Mr. M and you were just a little too late to save her.\nYou have to find and save her from her captors." failMessage="You cannot fail, how did you?" completeMessage="You did it John. You're a hero. Princess Aeryn however will still not marry you." /> 33 <subquests> 34 <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b"> 35 <QuestDescription title="Find Aeryn's S.H.O.E.S." description="Oh, the kidnappers must have been in a hurry because they overlooked princess Aeryns S.H.O.E.S. (Super Heavily Organized Escape Ship) hidden in the asteroid field over there.\nFind it and look there for clues to Princess Aeryns whereabouts." completeMessage="You did it, Looking through her stuff you find an odd looking device - Could this be the receiver of Princess Aeryns locator beacon? - But it must be broken, the screen remains blank." /> 36 <complete-effects> 37 <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" /> 38 </complete-effects> 39 </GlobalQuest> 40 <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e"> 41 <QuestDescription title="Repair the receiver." description="There is a space station called 'Serenity Station' near here. An engineer called Nathan Stark who shoud be able to help you lives there." completeMessage="'Yeah Nathan lives here, he'll shurely help you.'\nAnd he does, apparenty the device was just low on batteries so you're now able to locate your beloved Princess Aeryn." /> 42 <hints> 43 <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6"> 44 <QuestDescription title="The Katratzi Station" description="'We ain't buying!'\n'What do you want?'\n'No there lives no Nathan here.'\n'Fuck off.''" /> 45 </QuestHint> 46 <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c"> 47 <QuestDescription title="The Pegasus Station" description="'Hello friend.'\n'How can we help you?'\n'A Mr. Stark you say? Sorry no man with such a name lives here.'" /> 48 </QuestHint> 49 </hints> 50 <complete-effects> 51 <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" /> 52 </complete-effects> 53 </GlobalQuest> 54 <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4"> 55 <QuestDescription title="Follow the dots" description="Just follow the dots, they'll lead you right to her." completeMessage="You found Princess Aeryn. Her captors give up at the shere sight ou you." /> 56 <complete-effects> 57 <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> 58 </complete-effects> 59 </GlobalQuest> 60 </subquests> 16 17 <NotificationQueue 18 name = "notification" 19 position = "0.55, 0.05" 20 font = "VeraMono" 21 textsize = 0.020 22 length = 3 23 width = 50 24 /> 25 26 <templates> 27 <Template link=lodtemplate_default /> 28 </templates> 29 30 <Scene 31 ambientlight = "0.3, 0.3, 0.3" 32 skybox = "Orxonox/skypanoramagen1" 33 > 34 <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" /> 35 36 <!-- Quest: --> 37 <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34"> 38 <QuestDescription title="The Tale of Princess Aeryn" description="Princess Aeryn has been kidnapped by evil Mr. M and you were just a little too late to save her.\nYou have to find and save her from her captors." failMessage="You cannot fail, how did you?" completeMessage="You did it John. You're a hero. Princess Aeryn however will still not marry you." /> 39 <subquests> 40 <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b"> 41 <QuestDescription title="Find Aeryn's S.H.O.E.S." description="Oh, the kidnappers must have been in a hurry because they overlooked princess Aeryns S.H.O.E.S. (Super Heavily Organized Escape Ship) hidden in the asteroid field over there.\nFind it and look there for clues to Princess Aeryns whereabouts." completeMessage="You did it, Looking through her stuff you find an odd looking device - Could this be the receiver of Princess Aeryns locator beacon? - But it must be broken, the screen remains blank." /> 42 <complete-effects> 43 <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" /> 44 </complete-effects> 61 45 </GlobalQuest> 62 63 <!-- Create spaceship spawner: --> 64 <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> 65 <events> 66 <spawn> 67 <EventTrigger delay=1> 68 <events> 69 <trigger> 70 <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> 71 </trigger> 72 </events> 73 </EventTrigger> 74 </spawn> 75 </events> 76 <attached> 77 <QuestEffectBeacon position="0,0,0" times=1> 46 <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e"> 47 <QuestDescription title="Repair the receiver." description="There is a space station called 'Serenity Station' near here. An engineer called Nathan Stark who shoud be able to help you lives there." completeMessage="'Yeah Nathan lives here, he'll shurely help you.'\nAnd he does, apparenty the device was just low on batteries so you're now able to locate your beloved Princess Aeryn." /> 48 <hints> 49 <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6"> 50 <QuestDescription title="The Katratzi Station" description="'We ain't buying!'\n'What do you want?'\n'No there lives no Nathan here.'\n'Fuck off.''" /> 51 </QuestHint> 52 <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c"> 53 <QuestDescription title="The Pegasus Station" description="'Hello friend.'\n'How can we help you?'\n'A Mr. Stark you say? Sorry no man with such a name lives here.'" /> 54 </QuestHint> 55 </hints> 56 <complete-effects> 57 <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" /> 58 </complete-effects> 59 </GlobalQuest> 60 <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4"> 61 <QuestDescription title="Follow the dots" description="Just follow the dots, they'll lead you right to her." completeMessage="You found Princess Aeryn. Her captors give up at the shere sight ou you." /> 62 <complete-effects> 63 <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> 64 </complete-effects> 65 </GlobalQuest> 66 </subquests> 67 </GlobalQuest> 68 69 <!-- Create spaceship spawner: --> 70 <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> 71 <events> 72 <spawn> 73 <EventTrigger delay=1> 74 <events> 75 <trigger> 76 <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> 77 </trigger> 78 </events> 79 </EventTrigger> 80 </spawn> 81 </events> 82 <attached> 83 <QuestEffectBeacon position="0,0,0" times=1> 84 <effects> 85 <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> 86 <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" /> 87 </effects> 88 <events> 89 <execute> 90 <EventListener event=questbeacon1 /> 91 </execute> 92 </events> 93 <attached> 94 <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="Pawn" /> 95 </attached> 96 </QuestEffectBeacon> 97 </attached> 98 </ParticleSpawner> 99 100 <!-- Create world --> 101 102 <!-- Kidnapper flying away --> 103 <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45> 104 <attached> 105 <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" /> 106 <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 /> 107 <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail > 108 <effects> 109 <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> 110 </effects> 111 <events> 112 <execute> 113 <EventListener event=questbeacon7 /> 114 </execute> 115 </events> 116 <attached> 117 <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="Pawn" /> 118 </attached> 119 </QuestEffectBeacon> 120 </attached> 121 </MovableEntity> 122 123 <!-- Asteroid field --> 124 <StaticEntity position="-500,0,-3000"> 125 <attached> 126 <?lua 127 for i = 1, 200 do 128 ?> 129 <MovableEntity position="<?lua print(math.random() * 2000 - 1000)?>, <?lua print(math.random() * 2000 - 1000) ?>, <?lua print(math.random() * 2000 - 1000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>"> 130 <attached> 131 <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 132 </attached> 133 </MovableEntity> 134 <?lua end ?> 135 <!-- S.H.O.E.S --> 136 <StaticEntity position="-300,0,0"> 137 <attached> 138 <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" /> 139 <QuestEffectBeacon position="0,0,0" times=-1> 78 140 <effects> 79 <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> 80 <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" /> 141 <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" /> 81 142 </effects> 82 143 <events> 83 84 <EventListener event=questbeacon1/>85 144 <execute> 145 <EventListener event=questbeacon2 /> 146 </execute> 86 147 </events> 87 148 <attached> 88 <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="Pawn" />149 <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="Pawn" /> 89 150 </attached> 90 </QuestEffectBeacon> 91 </attached> 92 </ParticleSpawner> 93 94 <!-- Create world --> 95 96 <!-- Kidnapper flying away --> 97 <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45> 98 <attached> 99 <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" /> 100 <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 /> 101 <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail > 102 <effects> 103 <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> 104 </effects> 105 <events> 106 <execute> 107 <EventListener event=questbeacon7 /> 108 </execute> 109 </events> 110 <attached> 111 <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="Pawn" /> 112 </attached> 113 </QuestEffectBeacon> 114 </attached> 115 </MovableEntity> 116 117 <!-- Asteroid field --> 118 <StaticEntity position="-500,0,-3000"> 119 <attached> 120 <?lua 121 for i = 1, 200 122 do ?> 123 <MovableEntity position="<?lua print(math.random() * 2000 - 1000)?>, <?lua print(math.random() * 2000 - 1000) ?>, <?lua print(math.random() * 2000 - 1000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>"> 124 <attached> 125 <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 126 </attached> 127 </MovableEntity> 128 <?lua 129 end 130 ?> 131 <!-- S.H.O.E.S --> 132 <StaticEntity position="-300,0,0"> 133 <attached> 134 <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" /> 135 <QuestEffectBeacon position="0,0,0" times=-1> 136 <effects> 137 <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" /> 138 </effects> 139 <events> 140 <execute> 141 <EventListener event=questbeacon2 /> 142 </execute> 143 </events> 144 <attached> 145 <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="Pawn" /> 146 </attached> 147 </QuestEffectBeacon> 148 </attached> 149 </StaticEntity> 150 </attached> 151 </StaticEntity> 152 153 154 155 <!-- Spacestations --> 156 157 <!-- Serenity Station --> 158 <StaticEntity scale=1 position="0,0,5000" yaw=30> 159 <attached> 160 <?lua 161 createSpaceStationPar(65461,2,1,2,1,2,1,100) 162 ?> 163 <QuestEffectBeacon position="0,450,0" times=1> 164 <effects> 165 <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" /> 166 </effects> 167 <events> 168 <execute> 169 <EventListener event=questbeacon3 /> 170 </execute> 171 </events> 172 <attached> 173 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 174 <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="Pawn" /> 175 </attached> 176 </QuestEffectBeacon> 177 </attached> 178 </StaticEntity> 179 180 <!-- Katratzi Station --> 181 <StaticEntity scale=1 position="0,5000,300" yaw=60> 182 <attached> 183 <?lua 184 createSpaceStationPar(9851,2,1,2,1,2,1,100) 185 ?> 186 <QuestEffectBeacon position="0,450,0" times=1> 187 <effects> 188 <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" /> 189 </effects> 190 <events> 191 <execute> 192 <EventListener event=questbeacon4 /> 193 </execute> 194 </events> 195 <attached> 196 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 197 <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="Pawn" /> 198 </attached> 199 </QuestEffectBeacon> 200 </attached> 201 </StaticEntity> 202 203 <!-- Pegasus Station --> 204 <StaticEntity scale=1 position="-5000,100,1000" roll=30> 205 <attached> 206 <?lua 207 createSpaceStationPar(3574,2,1,2,1,2,1,100) 208 ?> 209 <QuestEffectBeacon position="200,450,0" times=1> 210 <effects> 211 <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" /> 212 </effects> 213 <events> 214 <execute> 215 <EventListener event=questbeacon5 /> 216 </execute> 217 </events> 218 <attached> 219 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 220 <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="Pawn" /> 221 </attached> 222 </QuestEffectBeacon> 223 </attached> 224 </StaticEntity> 225 226 <!-- Trail --> 227 <EventDispatcher> 228 <targets> 229 <EventTarget target=trail /> 230 </targets> 231 <events> 232 <visibility> 233 <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" /> 234 </visibility> 235 <activity> 236 <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" /> 237 </activity> 238 </events> 239 </EventDispatcher> 240 241 <?lua 242 for i = 1, 25 243 do 244 ?> 245 <Billboard position="<?lua print(i*5000/25) ?>,<?lua print(450+i*(5000-450)/25) ?>,5000" colour="1.0,0,0" material="Examples/Flare" name=trail visible=false/> 246 <?lua 247 end 248 ?> 249 250 <!-- Hideout --> 251 <StaticEntity position="5000,5000,5000" > 252 <attached> 253 <Model scale="100" mesh="ast2.mesh" shadow=false /> 254 </attached> 255 </StaticEntity> 256 257 <StaticEntity position="5400,5400,5000" visible=false name=trail > 258 <attached> 259 <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail /> 260 <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail > 261 <effects> 262 <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" /> 263 </effects> 264 <events> 265 <execute> 266 <EventListener event=questbeacon6 /> 267 </execute> 268 </events> 269 <attached> 270 <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="Pawn" /> 271 </attached> 272 </QuestEffectBeacon> 273 </attached> 274 </StaticEntity> 275 276 </Scene> 151 </QuestEffectBeacon> 152 </attached> 153 </StaticEntity> 154 </attached> 155 </StaticEntity> 156 157 158 159 <!-- Spacestations --> 160 161 <!-- Serenity Station --> 162 <StaticEntity scale=1 position="0,0,5000" yaw=30> 163 <attached> 164 <?lua 165 createSpaceStationPar(65461,2,1,2,1,2,1,100) 166 ?> 167 <QuestEffectBeacon position="0,450,0" times=1> 168 <effects> 169 <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" /> 170 </effects> 171 <events> 172 <execute> 173 <EventListener event=questbeacon3 /> 174 </execute> 175 </events> 176 <attached> 177 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 178 <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="Pawn" /> 179 </attached> 180 </QuestEffectBeacon> 181 </attached> 182 </StaticEntity> 183 184 <!-- Katratzi Station --> 185 <StaticEntity scale=1 position="0,5000,300" yaw=60> 186 <attached> 187 <?lua 188 createSpaceStationPar(9851,2,1,2,1,2,1,100) 189 ?> 190 <QuestEffectBeacon position="0,450,0" times=1> 191 <effects> 192 <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" /> 193 </effects> 194 <events> 195 <execute> 196 <EventListener event=questbeacon4 /> 197 </execute> 198 </events> 199 <attached> 200 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 201 <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="Pawn" /> 202 </attached> 203 </QuestEffectBeacon> 204 </attached> 205 </StaticEntity> 206 207 <!-- Pegasus Station --> 208 <StaticEntity scale=1 position="-5000,100,1000" roll=30> 209 <attached> 210 <?lua 211 createSpaceStationPar(3574,2,1,2,1,2,1,100) 212 ?> 213 <QuestEffectBeacon position="200,450,0" times=1> 214 <effects> 215 <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" /> 216 </effects> 217 <events> 218 <execute> 219 <EventListener event=questbeacon5 /> 220 </execute> 221 </events> 222 <attached> 223 <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" /> 224 <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="Pawn" /> 225 </attached> 226 </QuestEffectBeacon> 227 </attached> 228 </StaticEntity> 229 230 <!-- Trail --> 231 <EventDispatcher> 232 <targets> 233 <EventTarget target=trail /> 234 </targets> 235 <events> 236 <visibility> 237 <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" /> 238 </visibility> 239 <activity> 240 <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" /> 241 </activity> 242 </events> 243 </EventDispatcher> 244 245 <?lua 246 for i = 1, 25 do 247 ?> 248 <Billboard position="<?lua print(i*5000/25) ?>,<?lua print(450+i*(5000-450)/25) ?>,5000" colour="1.0,0,0" material="Examples/Flare" name=trail visible=false/> 249 <?lua end ?> 250 251 <!-- Hideout --> 252 <StaticEntity position="5000,5000,5000" > 253 <attached> 254 <Model scale="100" mesh="ast2.mesh" shadow=false /> 255 </attached> 256 </StaticEntity> 257 258 <StaticEntity position="5400,5400,5000" visible=false name=trail > 259 <attached> 260 <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail /> 261 <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail > 262 <effects> 263 <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" /> 264 </effects> 265 <events> 266 <execute> 267 <EventListener event=questbeacon6 /> 268 </execute> 269 </events> 270 <attached> 271 <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="Pawn" /> 272 </attached> 273 </QuestEffectBeacon> 274 </attached> 275 </StaticEntity> 276 277 </Scene> 277 278 </Level> 278 -
code/trunk/data/levels/sound.oxw
r6417 r7163 2 2 include("stats.oxo") 3 3 include("hudtemplates3.oxo") 4 include("templates/lodinformation.oxt") 4 5 ?> 5 6 … … 13 14 description = "Just a few tests" 14 15 > 16 <templates> 17 <Template link=lodtemplate_default /> 18 </templates> 19 15 20 <Scene 16 21 ambientlight = "0.8, 0.8, 0.8" … … 21 26 <AmbientSound ambientSource="Mars.ogg" looping="true"> 22 27 <events> 23 24 25 26 27 28 29 28 <activity> 29 <DistanceTrigger position="400,0,0" distance=200 target="Camera"> 30 <attached> 31 <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 /> 32 </attached> 33 </DistanceTrigger> 34 </activity> 30 35 </events> 31 36 </AmbientSound> 32 37 <AmbientSound ambientSource="Jupiter.ogg" looping="true"> 33 38 <events> 34 35 36 37 38 39 40 39 <activity> 40 <DistanceTrigger position="400,150,0" distance=200 target="Camera"> 41 <attached> 42 <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 /> 43 </attached> 44 </DistanceTrigger> 45 </activity> 41 46 </events> 42 47 </AmbientSound> … … 45 50 <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" /> 46 51 <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 52 47 53 </Scene> 48 54 </Level> -
code/trunk/data/levels/teambasematchlevel.oxw
r6417 r7163 5 5 include("templates/spaceship_assff.oxt") 6 6 include("templates/spaceship_pirate.oxt") 7 include("templates/lodinformation.oxt") 7 8 ?> 8 9 … … 12 13 gametype = TeamBaseMatch 13 14 > 15 16 <templates> 17 <Template link=lodtemplate_default /> 18 </templates> 19 14 20 <Scene 15 21 ambientlight = "0.5, 0.5, 0.5" … … 40 46 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> 41 47 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 42 <?lua 43 for i = 1, 10, 1 44 do ?> 45 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 46 <events><spawn><EventListener event="base 1" /></spawn></events> 47 </ParticleSpawner> 48 <?lua 49 end 50 ?> 48 49 <?lua 50 for i = 1, 10, 1 do 51 ?> 52 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 53 <events> 54 <spawn> 55 <EventListener event="base 1" /> 56 </spawn> 57 </events> 58 </ParticleSpawner> 59 <?lua end ?> 60 51 61 </attached> 52 62 <collisionShapes> … … 77 87 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> 78 88 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 79 <?lua 80 for i = 1, 10, 1 81 do ?> 82 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 83 <events><spawn><EventListener event="base 2" /></spawn></events> 84 </ParticleSpawner> 85 <?lua 86 end 87 ?> 89 90 <?lua 91 for i = 1, 10, 1 do 92 ?> 93 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 94 <events> 95 <spawn> 96 <EventListener event="base 2" /> 97 </spawn> 98 </events> 99 </ParticleSpawner> 100 <?lua end ?> 101 88 102 </attached> 89 103 <collisionShapes> … … 114 128 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> 115 129 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 116 <?lua 117 for i = 1, 10, 1 118 do ?> 119 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 120 <events><spawn><EventListener event="base 3" /></spawn></events> 121 </ParticleSpawner> 122 <?lua 123 end 124 ?> 130 131 <?lua 132 for i = 1, 10, 1 do 133 ?> 134 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 135 <events> 136 <spawn> 137 <EventListener event="base 3" /> 138 </spawn> 139 </events> 140 </ParticleSpawner> 141 <?lua end ?> 142 125 143 </attached> 126 144 <collisionShapes> … … 150 168 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> 151 169 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 152 <?lua 153 for i = 1, 10, 1 154 do ?> 155 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 156 <events><spawn><EventListener event="base 4" /></spawn></events> 157 </ParticleSpawner> 158 <?lua 159 end 160 ?> 170 171 <?lua 172 for i = 1, 10, 1 do 173 ?> 174 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 175 <events> 176 <spawn> 177 <EventListener event="base 4" /> 178 </spawn> 179 </events> 180 </ParticleSpawner> 181 <?lua end ?> 182 161 183 </attached> 162 184 <collisionShapes> … … 187 209 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> 188 210 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> 189 <?lua 190 for i = 1, 10, 1 191 do ?> 192 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 193 <events><spawn><EventListener event="base 5" /></spawn></events> 194 </ParticleSpawner> 195 <?lua 196 end 197 ?> 198 </attached> 199 <collisionShapes> 200 <SphereCollisionShape radius="80" position = "-100,0,0" /> 201 <SphereCollisionShape radius="120" position = "100,0,0" /> 202 <BoxCollisionShape halfExtents="90,25,45" position = "-155,0,40" /> 203 </collisionShapes> 204 </TeamBaseMatchBase> 205 206 211 212 <?lua 213 for i = 1, 10, 1 do 214 ?> 215 <ParticleSpawner position="<?lua print(math.random() * 400 - 200) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" startdelay=<?lua print(math.random()) ?> source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0> 216 <events> 217 <spawn> 218 <EventListener event="base 5" /> 219 </spawn> 220 </events> 221 </ParticleSpawner> 222 <?lua end ?> 223 224 </attached> 225 <collisionShapes> 226 <SphereCollisionShape radius="80" position = "-100,0,0" /> 227 <SphereCollisionShape radius="120" position = "100,0,0" /> 228 <BoxCollisionShape halfExtents="90,25,45" position = "-155,0,40" /> 229 </collisionShapes> 230 </TeamBaseMatchBase> 207 231 208 232 <!--Model position="0,0,0" scale=8 mesh="ast1.mesh" /> … … 212 236 </collisionShapes> 213 237 </StaticEntity--> 238 214 239 </Scene> 215 240 </Level> -
code/trunk/data/levels/teamdeathmatch.oxw
r5781 r7163 5 5 include("templates/spaceship_H2.oxt") 6 6 include("templates/spaceship_pirate.oxt") 7 include("templates/lodinformation.oxt") 7 8 ?> 8 9 … … 12 13 gametype = TeamDeathmatch 13 14 > 15 <templates> 16 <Template link=lodtemplate_default /> 17 </templates> 18 14 19 <Scene 15 20 ambientlight = "0.7, 0.6, 0.6" … … 34 39 35 40 36 <?lua37 for i = 1, 70, 1 38 do?>39 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">40 <attached>41 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />42 </attached>43 </MovableEntity>44 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">45 <attached>46 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />47 </attached>48 </MovableEntity>41 <?lua 42 for i = 1, 70, 1 do 43 ?> 44 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 45 <attached> 46 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 47 </attached> 48 </MovableEntity> 49 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 50 <attached> 51 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 52 </attached> 53 </MovableEntity> 49 54 50 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">51 <attached>52 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />53 </attached>54 </MovableEntity>55 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">56 <attached>57 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />58 </attached>59 </MovableEntity>55 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 56 <attached> 57 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 58 </attached> 59 </MovableEntity> 60 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 61 <attached> 62 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 63 </attached> 64 </MovableEntity> 60 65 61 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 62 <attached> 63 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 64 </attached> 65 </MovableEntity> 66 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 67 <attached> 68 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 69 </attached> 70 </MovableEntity> 71 <?lua 72 end 73 ?> 66 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 67 <attached> 68 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 69 </attached> 70 </MovableEntity> 71 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 72 <attached> 73 <Model scale="<?lua print(math.random() * 50 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 74 </attached> 75 </MovableEntity> 76 <?lua end ?> 74 77 75 78 </Scene> -
code/trunk/data/levels/templates/pickup_representation_templates.oxt
- Property svn:eol-style set to native
r6712 r7163 1 <!-- Shield pickups: --> 2 3 <Template name=smallshieldpickupRepresentation> 4 <PickupRepresentation> 5 <spawner-representation> 6 <StaticEntity> 7 <attached> 8 <Billboard position="0,0,0" colour="1,1,1" material="Sphere2" scale=0.1> 9 <attached> 10 <Billboard position="0,0,0" colour="1,1,1" material="Shield" scale=0.3 /> 11 </attached> 12 </Billboard> 13 </attached> 14 </StaticEntity> 15 </spawner-representation> 16 </PickupRepresentation> 17 </Template> 18 19 <Template name=smallshieldpickup> 20 <ShieldPickup 21 duration = 10 22 shieldabsorption = 0.7 23 shieldhealth = 300 24 activationType = "immediate" 25 durationType = "once" 26 /> 27 </Template> 28 29 <Template name=mediumshieldpickupRepresentation> 30 <PickupRepresentation> 31 <spawner-representation> 32 <StaticEntity> 33 <attached> 34 <Billboard position="0,0,0" colour="1,1,1" material="Sphere2" scale=0.1> 35 <attached> 36 <Billboard position="0,0,0" colour="1,1,1" material="Shield" scale=0.5 /> 37 </attached> 38 </Billboard> 39 </attached> 40 </StaticEntity> 41 </spawner-representation> 42 </PickupRepresentation> 43 </Template> 44 45 <Template name=mediumshieldpickup> 46 <ShieldPickup 47 duration = 30 48 shieldabsorption = 0.8 49 shieldhealth = 500 50 activationType = "immediate" 51 durationType = "once" 52 /> 53 </Template> 54 55 56 <Template name=hugeshieldpickupRepresentation> 57 <PickupRepresentation> 58 <spawner-representation> 59 <StaticEntity> 60 <attached> 61 <Billboard position="0,0,0" colour="1,1,1" material="Sphere2" scale=0.1> 62 <attached> 63 <Billboard position="0,0,0" colour="1,1,1" material="Shield" scale=0.7 /> 64 </attached> 65 </Billboard> 66 </attached> 67 </StaticEntity> 68 </spawner-representation> 69 </PickupRepresentation> 70 </Template> 71 72 <Template name=hugeshieldpickup> 73 <ShieldPickup 74 duration = 60 75 shieldabsorption = 0.95 76 shieldhealth = 700 77 activationType = "immediate" 78 durationType = "once" 79 /> 80 </Template> 1 81 2 82 <!-- Health pickups: --> … … 345 425 </PickupCollection> 346 426 </Template> 347 427 428 <!-- Drone Pickup --> 429 430 <Template name=droneTemplate> 431 <Drone name="meineDrohne" mass= "50" linearDamping = "0.7" angularDamping = "0.99999" maxDistanceToOwner_=150 minDistanceToOwner_=75 maxShootingRange_=1000 primaryThrust_=250 auxilaryThrust_=250 rotationThrust_=50> 432 <attached> 433 <Model scale="1" mesh="drone.mesh"/> 434 </attached> 435 <collisionShapes> 436 <BoxCollisionShape position="0,0,0" halfExtents="1, 1, 1" /> 437 </collisionShapes> 438 <weaponslots> 439 <WeaponSlot position=" 0, 0,0" /> 440 </weaponslots> 441 <weaponsets> 442 <WeaponSet firemode=0 /> 443 </weaponsets> 444 <weapons> 445 <WeaponPack> 446 <links> 447 <DefaultWeaponmodeLink firemode=0 weaponmode=0 /> 448 </links> 449 <Weapon> 450 <attached> 451 <Model mesh="hs-w01.mesh" roll="195" position="0,1,0" scale=2 /> 452 <Model mesh="hs-w01s.mesh" roll="195" position="0.1,0.5,0" scale=2 /> 453 </attached> 454 <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.7, 1.5,-4" /> 455 <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" muzzleoffset="-0.9, 1.1,-4" /> 456 </Weapon> 457 </WeaponPack> 458 </weapons> 459 </Drone> 460 </Template> 461 462 <Template name=dronepickupRepresentation> 463 <PickupRepresentation> 464 <spawner-representation> 465 <StaticEntity> 466 <attached> 467 <Billboard position="0,0,0" colour="0.96,0.35,0.02" material="Sphere2" scale=0.1> 468 <attached> 469 <Model scale="5" mesh="drone.mesh"/> 470 </attached> 471 </Billboard> 472 </attached> 473 </StaticEntity> 474 </spawner-representation> 475 </PickupRepresentation> 476 </Template> 477 478 <Template name=dronepickup> 479 <DronePickup droneTemplate=droneTemplate /> 480 </Template> 481 -
code/trunk/data/levels/templates/spaceship_pirate.oxt
r5781 r7163 69 69 accelerationupdown = 125 70 70 > 71 < active>71 <EffectContainer condition="not idle"> 72 72 <FadingBillboard mainstate=activity active=false scale=0.02 position=" 1.3, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> 73 73 <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> 74 74 <FadingBillboard mainstate=activity active=false scale=0.02 position="-1.3, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> 75 </ active>76 < forward>75 </EffectContainer> 76 <EffectContainer condition="normal or boost"> 77 77 <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 13, -4, 9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> 78 78 <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-13, -4, 9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> 79 </ forward>80 < boost>79 </EffectContainer> 80 <EffectContainer condition="boost"> 81 81 <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 0, 5, 15.5" colour="1.0, 0.65, 0.2, 1.0" width=16 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> 82 </ boost>83 < brake>82 </EffectContainer> 83 <EffectContainer condition="brake"> 84 84 <FadingBillboard mainstate=activity active=false scale=0.1 position=" 4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> 85 85 <FadingBillboard mainstate=activity active=false scale=0.1 position="-4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> 86 </ brake>86 </EffectContainer> 87 87 </MultiStateEngine> 88 88 </Template> -
code/trunk/data/levels/tutorial.oxw
r5781 r7163 3 3 include("stats.oxo") 4 4 include("templates/spaceship_assff.oxt") 5 include("templates/lodinformation.oxt") 5 6 ?> 6 7 … … 9 10 description = "A simple testlevel" 10 11 > 12 <templates> 13 <Template link=lodtemplate_default /> 14 </templates> 15 11 16 <Scene 12 17 ambientlight = "0.5, 0.5, 0.5" … … 14 19 > 15 20 21 22 23 16 24 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> 17 25 <attached> 18 <Model scale="1 0" mesh="drone.mesh"/>26 <Model scale="1" mesh="drone.mesh"/> 19 27 </attached> 20 28 <collisionShapes> … … 23 31 </Drone> 24 32 33 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> 34 <attached> 35 <Model scale="1" mesh="rocket.mesh"/> 36 </attached> 37 <collisionShapes> 38 <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" /> 39 </collisionShapes> 40 </Drone> 25 41 26 42 <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" /> 27 43 28 <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />29 <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />44 <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" /> 45 <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" /> 30 46 31 <?lua 32 for i = 1, 10, 1 33 do ?> 34 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 35 <?lua 36 end 37 ?> 47 <?lua 48 for i = 1, 10, 1 do 49 ?> 50 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 51 <?lua end ?> 38 52 39 53 <GlobalShader compositor="Bloom" visible=false> … … 50 64 </collisionShapes> 51 65 </StaticEntity> 66 52 67 <!-- 53 <?lua54 for i = 1, 70, 1 55 do?>56 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">57 <attached>58 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />59 </attached>60 </MovableEntity>61 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">62 <attached>63 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />64 </attached>65 </MovableEntity>68 <?lua 69 for i = 1, 70, 1 do 70 ?> 71 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 72 <attached> 73 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 74 </attached> 75 </MovableEntity> 76 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 77 <attached> 78 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 79 </attached> 80 </MovableEntity> 66 81 67 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">68 <attached>69 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />70 </attached>71 </MovableEntity>72 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">73 <attached>74 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />75 </attached>76 </MovableEntity>82 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 83 <attached> 84 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 85 </attached> 86 </MovableEntity> 87 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 88 <attached> 89 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 90 </attached> 91 </MovableEntity> 77 92 78 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 79 <attached> 80 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 81 </attached> 82 </MovableEntity> 83 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 84 <attached> 85 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 86 </attached> 87 </MovableEntity> 88 <?lua 89 end 90 ?> 93 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 94 <attached> 95 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 96 </attached> 97 </MovableEntity> 98 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 99 <attached> 100 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 101 </attached> 102 </MovableEntity> 103 <?lua end ?> 91 104 --> 105 92 106 </Scene> 93 107 </Level> -
code/trunk/data/levels/waypoints.oxw
r5781 r7163 5 5 include("templates/spaceship_H2.oxt") 6 6 include("templates/spaceship_pirate.oxt") 7 include("templates/lodinformation.oxt") 7 8 ?> 8 9 … … 11 12 description = "Testing waypoings for AI controlled spaceships." 12 13 > 14 <templates> 15 <Template link=lodtemplate_default /> 16 </templates> 17 13 18 <Scene 14 19 ambientlight = "0.5, 0.5, 0.5" … … 85 90 </SpaceShip> 86 91 87 <?lua 88 for i = 1, 5, 1 89 do ?> 90 <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> > 91 <templates> 92 <Template link=spaceshipassff /> 93 </templates> 94 <controller> 95 <WaypointPatrolController alertnessradius=1000 team=12> 96 <waypoints> 97 <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false /> 98 </waypoints> 99 </WaypointPatrolController> 100 </controller> 101 </SpaceShip> 102 <?lua 103 end 104 ?> 105 92 <?lua 93 for i = 1, 5, 1 do 94 ?> 95 <SpaceShip position="1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=polonaise<?lua print(i+1) ?> > 96 <templates> 97 <Template link=spaceshipassff /> 98 </templates> 99 <controller> 100 <WaypointPatrolController alertnessradius=1000 team=12> 101 <waypoints> 102 <Attacher target=polonaise<?lua print(i) ?> deletewithparent=false /> 103 </waypoints> 104 </WaypointPatrolController> 105 </controller> 106 </SpaceShip> 107 <?lua end ?> 106 108 107 109 <SpaceShip position="-1500,-2000,200" lookat="0,0,0" name=attack1> … … 118 120 </SpaceShip> 119 121 120 <?lua 121 for i = 1, 5, 1 122 do ?> 123 <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> > 124 <templates> 125 <Template link=spaceshipassff /> 126 </templates> 127 <controller> 128 <WaypointPatrolController alertnessradius=1000 team=13> 129 <waypoints> 130 <Attacher target=attack<?lua print(i) ?> deletewithparent=false /> 131 </waypoints> 132 </WaypointPatrolController> 133 </controller> 134 </SpaceShip> 135 <?lua 136 end 137 ?> 122 <?lua 123 for i = 1, 5, 1 do 124 ?> 125 <SpaceShip position="-1500,<?lua print(-2000 + 50*i) ?>,200" lookat="0,0,0" name=attack<?lua print(i+1) ?> > 126 <templates> 127 <Template link=spaceshipassff /> 128 </templates> 129 <controller> 130 <WaypointPatrolController alertnessradius=1000 team=13> 131 <waypoints> 132 <Attacher target=attack<?lua print(i) ?> deletewithparent=false /> 133 </waypoints> 134 </WaypointPatrolController> 135 </controller> 136 </SpaceShip> 137 <?lua end ?> 138 138 139 139 <!-- 140 <?lua 141 for i = 1, 50, 1 142 do ?> 143 <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" > 144 <templates> 145 <Template link=spaceshipassff /> 146 </templates> 147 <controller> 148 <AIController /> 149 </controller> 150 </SpaceShip> 151 <?lua 152 end 153 ?> 140 <?lua 141 for i = 1, 50, 1 do 142 ?> 143 <SpaceShip position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" > 144 <templates> 145 <Template link=spaceshipassff /> 146 </templates> 147 <controller> 148 <AIController /> 149 </controller> 150 </SpaceShip> 151 <?lua end ?> 154 152 --> 155 153
Note: See TracChangeset
for help on using the changeset viewer.