- Timestamp:
- May 29, 2010, 8:41:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/data/levels/presentationHS09b.oxw
r6417 r7007 24 24 > 25 25 26 27 <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" /> 26 <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" /> 28 27 29 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" /> 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" > 29 30 <?lua 31 for i = 1, 50, 1 do 32 x = math.random() * 2000 + 4000 33 y = math.random() * 4000 - 2000 34 z = math.random() * 2000 - 1000 35 s = math.random() * 100 36 ?> 37 <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) ?>"> 38 <attached> 39 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_UV.mesh" /> 40 </attached> 41 <collisionShapes> 42 <SphereCollisionShape radius="<?lua print(s*0.9) ?>" /> 43 </collisionShapes> 44 </MovableEntity> 45 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 46 <?lua end ?> 47 48 <?lua 49 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 50 sizes = {4, 4, 4, 4, 4, 10, 20} 51 52 elements.length = function() 53 return table.getn(elements) 54 end 55 56 for i = 1, 100, 1 do 57 x = math.random() * 750 - 4500 58 y = math.random() * 1000 + 2000 59 z = math.random() * 500 + 1000 60 e = math.floor(math.random()*elements.length()+1) 61 ?> 62 <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) ?>"> 63 <attached> 64 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 65 </attached> 66 </MovableEntity> 67 <?lua end ?> 68 69 <?lua 70 for i = 1,12, 1 do 71 ?> 72 <SpaceShip position="<?lua print(math.random()*500 + 4500) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 73 <templates> 74 <Template link=spaceshipHXYSL /> 75 </templates> 76 <controller> 77 <WaypointPatrolController alertnessradius=4000 team=0 active=true> 78 <waypoints> 79 <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> 80 </waypoints> 81 </WaypointPatrolController> 82 </controller> 83 </SpaceShip> 84 <?lua end ?> 85 86 <SpaceShip position="5000,100,100" > 94 87 <templates> 95 88 <Template link=spaceshipTransporterSL /> … … 102 95 </WaypointPatrolController> 103 96 </controller> 104 </SpaceShip> 97 </SpaceShip> 98 105 99 <Destroyer 106 107 108 109 110 111 112 100 position = "-5000,100 ,100" 101 collisionType = dynamic 102 mass = 100000 103 angularDamping = 0.9999999 104 health = 1000 105 maxhealth = 1000 106 initialhealth = 1000 113 107 > 114 <controller> 115 <WaypointPatrolController team=1 /> 116 </controller> 108 <controller> 109 <WaypointPatrolController team=1 /> 110 </controller> 111 <attached> 112 <Model mesh="Carrier.mesh" scale="5" /> 113 <Backlight 114 mainstate=activity 115 active=false 116 scale=0.4 117 name=bltest 118 position=" 7.6, 0, 6" 119 colour="0.2, 0.65, 1.0, 1.0" 120 width=15 121 length=1500 122 lifetime=2 123 elements=50 124 trailmaterial="Trail/backlighttrail" 125 turnontime=1 126 turnofftime=1 127 material="Flares/ThrusterFlare1" 128 /> 129 <?lua 130 for i=0,8,1 do 131 ?> 132 <BlinkingBillboard 133 position="<?lua print(200-270/8*i)?> ,15,2" 134 material="Examples/Flare" 135 colour="1.0, 0.5, 0.3" 136 phase=<?lua print(-360/8*i)?> 137 amplitude=0.1 138 frequency=0.5 139 quadratic=1 140 /> 141 142 <BlinkingBillboard 143 position="<?lua print(200-270/8*i)?>,-15,2" 144 material="Examples/Flare" 145 colour="1.0, 0.5, 0.3" 146 phase=<?lua print(-360/8*i)?> 147 amplitude=0.1 148 frequency=0.5 149 quadratic=1 150 /> 151 <?lua end ?> 152 153 <Backlight 154 scale=1 155 position=" 169, 75, -15" 156 colour="1, 0.85, 0.5, 0.5" 157 width=40 158 length=1000 159 lifetime=5 160 elements=15 161 trailmaterial="Trail/backlighttrail" 162 material="Examples/Flare" 163 /> 164 <Backlight 165 scale=1 166 position=" 169, -75, -15" 167 colour="1, 0.85, 0.5, 0.5" 168 width=40 169 length=1000 170 lifetime=5 171 elements=15 172 trailmaterial="Trail/backlighttrail" 173 material="Examples/Flare" 174 /> 175 </attached> 176 <collisionShapes> 177 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 178 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 179 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 180 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 181 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 182 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 183 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 184 </collisionShapes> 185 </Destroyer> 186 187 <?lua 188 for i = 1, 50, 1 do 189 x = -(math.random() * 2000 + 4000) 190 y = math.random() * 4000 - 2000 191 z = math.random() * 2000 - 1000 192 s = math.random() * 100 193 ?> 194 <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 195 <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" /> 196 <Model position="0,0,0" scale=<?lua print(s) ?> mesh="asteroid_ice.mesh" /> 178 197 </attached> 179 198 <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" /> 199 <SphereCollisionShape radius="<?lua print(s*0.9)?>" /> 187 200 </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> 201 </MovableEntity> 202 <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 /> 203 <?lua end ?> 204 205 <!-- EventDispatcher> 212 206 <targets> 213 207 <EventTarget target=attack /> … … 219 213 </activity> 220 214 </events> 221 </EventDispatcher>222 223 <EventDispatcher>215 </EventDispatcher> 216 217 <EventDispatcher> 224 218 <targets> 225 219 <EventTarget target=wait /> … … 230 224 </activity> 231 225 </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 226 </EventDispatcher --> 227 228 <?lua 229 for i = 1,25, 1 do 230 ?> 231 <SpaceShip position="<?lua print(-(math.random()*500 + 4500)) ?>,<?lua print(-(math.random()*500 -250)) ?>,<?lua print(i*50 - 150) ?>" > 232 <templates> 233 <Template link=spaceshipghost /> 234 </templates> 235 <controller> 244 236 <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>237 <events> 238 <activity> 239 <DistanceTrigger position="-5000, 100, 100" distance=2000 target="Camera" stayactive=true /> 240 </activity> 241 </events> 250 242 </WaypointPatrolController> 251 252 </controller> 253 </SpaceShip> 254 <?lua 255 end 256 ?> 257 258 243 </controller> 244 </SpaceShip> 245 <?lua end ?> 259 246 260 247 <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false"> … … 266 253 </AmbientSound> 267 254 268 <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0/> 255 <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0 /> 256 269 257 </Scene> 270 258 </Level>
Note: See TracChangeset
for help on using the changeset viewer.