Changeset 9748 for code/branches/levelKaan
- Timestamp:
- Nov 4, 2013, 4:16:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/levelKaan/data/levels/Level_01.oxw
r9721 r9748 50 50 <?lua 51 51 include("includes/pickups.oxi") 52 ?> 53 54 55 <?lua 52 ?> 53 54 <?lua 56 55 dofile("includes/CuboidSpaceStation.lua") 57 ?> 58 59 60 <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"/> 61 62 <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort /> 63 64 65 56 ?> 57 58 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"/> 60 61 <TeamSpawnPoint team=0 position="0,0,0" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort/> 62 63 <MovableEntity 64 position = "300,0,0" 65 scale = "10" 66 velocity = "-20, 0, 0" 67 collisionType = dynamic 68 collisiondamage = 0.005 69 enablecollisiondamage = true 70 > 71 <!-- collisionType = dynamic 72 linearDamping = 0.8 73 angularDamping = 0 74 collisiondamage = 0.005 75 enablecollisiondamage = true --> 76 77 <events> 78 <activity> 79 <EventListener event="startAsteroids" /> 80 </activity> 81 </events> 82 <attached> 83 <Model mass="1000" mesh="ast1.mesh" /> 84 <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> 85 </attached> 86 <collisionShapes> 87 <SphereCollisionShape radius="10" /> 88 </collisionShapes> 89 </MovableEntity> 90 91 <DistanceTrigger name="startAsteroids" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=0 /> 66 92 67 93 <!-----------------------------------------------------------------------------------------------------> … … 74 100 75 101 <!-- @Objects: HYDROGEN FARMER & DOCKING --> 76 102 <SpaceShip 77 103 team = 0 78 position = "-4000,4 000,4000"104 position = "-4000,4100,4000" 79 105 roll = 90 yaw=0 pitch=20 80 106 mass = 10000 81 107 health = 100000 initialhealth=100000 maxhealth="100000" 82 108 name = "HydroFarmer" 83 radarname = " Main-Station" >109 radarname = "Hydrogen Farmer" > 84 110 <attached> 85 111 <!-- Docking --> 86 <DistanceTriggerBeacon name="bcnDestroyer" />87 <DockingTarget name="destroyer" />112 <DistanceTriggerBeacon name="bcnDestroyer" /> 113 <DockingTarget name="destroyer" /> 88 114 89 115 <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> … … 152 178 template = "spaceshipcollateraldamage" 153 179 team = "0" 154 position = "-4000,4 700,4000"180 position = "-4000,4800,4000" 155 181 orientation = "-0.14, 0.68, 0.68, 0.223" 156 182 health = "400" … … 171 197 172 198 173 <!--<MovableEntity position="-500,500, 500"> 199 <SpaceShip 200 position="-4000, 4900, 4000" > 201 <templates> 202 <Template link=spaceshipcollateraldamage /> <!--spaceshipTransporter spaceshippirate--> 203 </templates> 204 <controller> 205 <AIController team=0> 206 <events> 207 <activity> 208 <EventListener event="formation" /> 209 </activity> 210 </events> 211 </AIController> 212 </controller> 213 </SpaceShip> 214 215 <MovableEntity position="-500,500, 500"> 174 216 <attached> 175 217 <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=0.5/> 176 218 </attached> 177 </MovableEntity>--> 178 219 </MovableEntity> 220 221 <MovableEntity position="-4000,4100, 4000"> 222 <attached> 223 <Billboard position="0,0,0" material="Examples/Flare" colour="1, 0, 0" scale=5/> 224 </attached> 225 </MovableEntity> 226 227 <Script code="formationcontroller formationflight true" onLoad="false"> 228 <events> 229 <trigger> 230 <EventListener event=formation /> 231 </trigger> 232 </events> 233 </Script> <!-- !!! activates formation behaviour !!! --> 234 235 <Script code="artificialcontroller setbotlevel 5" onLoad="false"> 236 <events> 237 <trigger> 238 <EventListener event=formation /> 239 </trigger> 240 </events> 241 </Script> 242 243 <DistanceTrigger name="formation" position="-4000,4800,4000" target="Pawn" distance=20 stayActive="true" delay=4/> 244 245 <Script code="humancontroller toggleFormationFlight" onLoad="false"> 246 <events> 247 <trigger> 248 <EventListener event="formation" /> 249 </trigger> 250 </events> 251 </Script> 179 252 180 253 <DistanceTrigger name="flying1" position="0,0,0" target="Pawn" distance=10 stayActive="true" delay=4/> … … 196 269 </SimpleNotification> 197 270 198 <DistanceTrigger name="flying3" position="- 4000,4000, 4000" target="Pawn" distance=3500 stayActive="true" delay=3/>271 <DistanceTrigger name="flying3" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=3/> 199 272 <SimpleNotification message="Our Commander got kidnapped in District 69"> 200 273 <events> … … 205 278 </SimpleNotification> 206 279 207 <DistanceTrigger name="flying4" position="- 4000,4000, 4000" target="Pawn" distance=3500 stayActive="true" delay=7/>280 <DistanceTrigger name="flying4" position="-500,500, 500" target="Pawn" distance=100 stayActive="true" delay=7/> 208 281 <SimpleNotification message="We need you to rescue him."> 209 282 <events> … … 214 287 </SimpleNotification> 215 288 216 <DistanceTrigger name="flying5" position="- 4000,4000,4000" target="Pawn" distance=3500 stayActive="true" delay=11/>289 <DistanceTrigger name="flying5" position="-500,500,500" target="Pawn" distance=100 stayActive="true" delay=11/> 217 290 <SimpleNotification message="Dock on the station to get a better ship."> 218 291 <events> … … 231 304 <!-- OBJECTS IN THIS PART --> 232 305 233 <Template name=PortalDefault>234 235 236 237 238 239 240 241 <PortalEndPoint position="0,2000,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>242 <PortalEndPoint position="0,97100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>243 244 245 246 <SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/>306 <Template name=PortalDefault> 307 <PortalEndPoint> 308 <attached> 309 <Model mesh="Spacegate.mesh" yaw="90"/> 310 </attached> 311 </PortalEndPoint> 312 </Template> 313 314 <PortalEndPoint position="-4000,2500,4000" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> 315 <PortalEndPoint position="0,95000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/> 316 <PortalLink fromID="1" toID="2" /> 317 <!--<PortalLink fromID="2" toID="1" />--> 318 319 <!-- <SpaceBoundaries warnDistance="1" maxDistance="500" showDistance="300" healthDecrease="0.1" position="0,97100,0"/> --> 247 320 248 321 <?lua 249 for i = 1, 500, 1322 for i = 1, 700, 1 250 323 do 251 324 j = math.random() 252 253 254 <MovableEntity325 ?> 326 327 <MovableEntity 255 328 position = "<?lua print(math.random()* 10000-5000) ?>,<?lua print(math.random() * 10000 + 95000) ?>,<?lua print(math.random() * 10000-5000) ?>" 329 scale = "<?lua print(j * 50)?>" 330 velocity = "0, -60, 0" 256 331 collisionType = dynamic 332 collisiondamage = 0.05 333 enablecollisiondamage = true 334 > 335 <!-- 257 336 linearDamping = 0.8 258 337 angularDamping = 0 259 scale = "<?lua print(j * 150)?>" 260 collisiondamage = 0.005 261 enablecollisiondamage = true 262 263 > 338 --> 339 340 <events> 341 <activity> 342 <EventListener event="start" /> 343 </activity> 344 </events> 264 345 <attached> 265 <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 266 </attached> 267 <collisionShapes> 268 <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> 269 </collisionShapes> 270 </MovableEntity> 271 272 <?lua 346 <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> 347 <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> 348 </attached> 349 <collisionShapes> 350 <SphereCollisionShape radius="<?lua print(j * 50) ?>" /> 351 </collisionShapes> --> 352 </MovableEntity> 353 354 <?lua 273 355 end 274 ?> 275 276 <SpaceShip position="0,97300,200" lookat="0,-1,0" name="movingtarget" radarname="Pirate"> 356 ?> 357 358 <DistanceTrigger name="start" position="0,95000,0" target="SpaceShip" distance=50 stayActive="true" delay=0 /> 359 360 361 362 <!--<SpaceShip position="0,97300,200" lookat="0,-1,0" name="movingtarget" radarname="Pirate"> 277 363 <templates> 278 364 <Template link=spaceshippirate /> 279 365 </templates> 280 </SpaceShip> 366 </SpaceShip> --> 281 367 282 368 <DistanceTrigger name="portal2" position="-4000,4000,4000" target="Pawn" distance=50 stayActive="true" delay=3/> … … 289 375 </SimpleNotification> 290 376 291 <DistanceTrigger name="portal3" position="0, 100000,0" target="Pawn" distance=50 stayActive="true" delay=3/>377 <DistanceTrigger name="portal3" position="0,95000,0" target="Pawn" distance=50 stayActive="true" delay=3/> 292 378 <SimpleNotification message="You came to District 69"> 293 379 <events>
Note: See TracChangeset
for help on using the changeset viewer.