Changeset 7163 for code/trunk/data/levels/presentationHS09.oxw
- Timestamp:
- Aug 11, 2010, 8:55:13 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
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>
Note: See TracChangeset
for help on using the changeset viewer.