Changeset 8847
- Timestamp:
- Aug 18, 2011, 10:48:28 PM (13 years ago)
- Location:
- code/branches/ai2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/data/levels/fightInOurBack.oxw
r8706 r8847 2 2 name = "Fight in our Back" 3 3 description = "Our fleet is far ahead of us. We need to get rid of all the enemies in its back, because we do not want our enemies to attack from everywhere. So let us clear this Sector!" 4 tags = " "4 tags = "singleplayer" 5 5 /> 6 6 -
code/branches/ai2/data/levels/missionOne.oxw
r8838 r8847 77 77 78 78 TODO: Turn engine on. Display a waypoint. 79 "Lets start flying. Use W to accelerate and S to brake. The goal is to reach the spacestation which is displayed on the radar. If you want to be faster you can temporarily boost by hitting additionally t o A the space button. If you use too much boost your engine heats up and you won't be able to use boost for a while. By the way boost could be useful during combat .."79 "Lets start flying. Use W to accelerate and S to brake. The goal is to reach the spacestation which is displayed on the radar. If you want to be faster you can temporarily boost by hitting additionally the space button. If you use too much boost your engine heats up and you won't be able to use boost for a while. By the way boost could be useful during combat .." 80 80 "That thing you've just collected is a drone. It will follow and protect you." 81 81 TODO: send in a level 0.1 bot on a pirate ship. … … 83 83 84 84 --> 85 86 85 87 <!-------------------------------------- PART ONE: Destroy boxes ---------------------------------------> 86 88 <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 /> … … 132 134 <trigger> 133 135 <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000> 136 <!--events> 137 <visibility> 138 <EventListener event=spawndelaytrigger3 /> 139 </visibility> 140 </events--> 141 134 142 <attached> 135 143 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> … … 142 150 </events> 143 151 </SimpleNotification> 152 144 153 145 154 <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true"> … … 176 185 <!--------------------------------------PART TWO: Moving targets ---------------------------------------> 177 186 <DistanceTrigger name="movingtargets" position="0,500,0" target="Pawn" distance=180 stayActive="true" delay=2 /> 178 <Billboard position="0,500,0" material="Examples/Flare" colour="0.5,0,0" scale=3/> 187 <Billboard position="0,500,0" material="Examples/Flare" colour="0.5,0,0" scale=3/><!-- TODO: hide. --> 179 188 <SimpleNotification message="Try to hit the pirates while you are flying."> 180 189 <events> … … 287 296 </PortalEndPoint> 288 297 289 <PortalEndPoint position="-4 0000,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" />298 <PortalEndPoint position="-47000,-1000,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" /> 290 299 <PortalLink fromID="1" toID="2" /> 291 300 <PortalLink fromID="2" toID="1" /> … … 327 336 </SpaceShip --> 328 337 329 <!-------------------------------------- PART FOUR : Get Help ---------------------------------------> 330 <PickupSpawner position="-40400,100,0" triggerDistance="10" respawnTime="30" maxSpawnedItems="1"> 338 <!-------------------------------------- PART FOUR : Get Help ---------------------------------------> 339 <DistanceTrigger name="famer1" position="-48200,100,0" target="Pawn" distance=300 stayActive="true" delay=0 /> 340 <SimpleNotification message="We just received a message from DuBall."> 341 <events> 342 <trigger> 343 <EventListener event=famer1 /> 344 </trigger> 345 </events> 346 </SimpleNotification> 347 348 <DistanceTrigger name="famer2" position="-48200,100,0" target="Pawn" distance=300 stayActive="true" delay=4 /> 349 <SimpleNotification message="We will lend you our strongest ship."> 350 <events> 351 <trigger> 352 <EventListener event=famer2 /> 353 </trigger> 354 </events> 355 </SimpleNotification> 356 <!-- TODO: a) docking, b) spacecruiser, c) enemy --> 357 358 <!-- HYDROGEN FARMER & DOCKING?? --> 359 <SpaceShip position="-48600,100,0" roll=90 yaw=0 pitch=20 mass=10000 health=100000 > 360 <attached> 361 <!-- Docking --> 362 <!--DistanceTriggerBeacon name="bcnDestroyer" /> 363 <DockingTarget name="destroyer" /--> 364 365 <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> 366 <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245" /> 367 <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 /> 368 <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 /> 369 <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" /> 370 <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50" yaw=-120/> 371 <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/> 372 <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" /> 373 <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/> 374 <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/> 375 <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 /> 376 <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" /> 377 <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/> 378 <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/> 379 <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/> 380 <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/> 381 <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/> --> 382 </attached> 383 <collisionShapes> 384 <BoxCollisionShape position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes --> 385 <BoxCollisionShape position="290,0,-480" halfExtents="115,100,245" yaw=-120 /> 386 <BoxCollisionShape position="290,0,480" halfExtents="115,100,245" yaw=-240 /> 387 <BoxCollisionShape position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections --> 388 <BoxCollisionShape position="140,0,-240" halfExtents="163,50,50" yaw=-120 /> 389 <BoxCollisionShape position="140,0,240" halfExtents="163,50,50" yaw=-240 /> 390 <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower --> 391 <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-120 /> 392 <BoxCollisionShape position="0,530,0" halfExtents="172,52,298" yaw=-240 /> 393 <BoxCollisionShape position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one--> 394 <BoxCollisionShape position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs --> 395 <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=-30 /> 396 <BoxCollisionShape position="100,100,-173" halfExtents="43,50,26" yaw=30 /> 397 <BoxCollisionShape position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs --> 398 <BoxCollisionShape position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 /> 399 <BoxCollisionShape position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 /> 400 </collisionShapes> 401 </SpaceShip> 402 403 404 405 <!-- Pickup - find better place !! --> 406 <DistanceTrigger name="pickupShield" position="-49300,100,0" target="Pawn" distance=20 stayActive="true" delay=0 /> 407 <SimpleNotification message="This pickup enhances your shield."> 408 <events> 409 <trigger> 410 <EventListener event=pickupShield /> 411 </trigger> 412 </events> 413 </SimpleNotification> 414 415 <PickupSpawner position="-49300,100,0" triggerDistance="20" respawnTime="30" maxSpawnedItems="1"> 331 416 <pickup> 332 < DronePickup template=dronepickup />417 <ShieldPickup template=hugeshieldpickup /> 333 418 </pickup> 334 </PickupSpawner> 335 336 337 419 </PickupSpawner> 420 <!-- Pickup--> 338 421 339 422 340 423 <Planet 341 position="- 50000,0,0"342 scale=" 1000"424 position="-44000,0,0" 425 scale="2500" 343 426 collisionType="dynamic" 344 427 linearDamping="0.8" … … 355 438 enablecollisiondamage = true 356 439 > 357 < attached>358 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 359 </attached >440 <!--attached> 441 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 442 </attached--> <!-- Forcefield kills HYDROGEN FARMER--> 360 443 <collisionShapes> 361 <SphereCollisionShape radius=" 1000" position="0,0,0" />444 <SphereCollisionShape radius="2350" position="0,0,0" /> <!-- Nasty: Collisionradius =! planet scale --> 362 445 </collisionShapes> 363 446 </Planet> … … 365 448 366 449 <!--------------------------------------DUMP YARD ---------------------------------------> 450 <!-- TODO: Docking causes game to crash !! what went wrong ?? --> 451 <!-- Dock position="-48600,1288,-255" roll=90 yaw=180 > 452 <animations> 453 <MoveToDockingTarget target="destroyer" /> 454 </animations> 455 <effects> 456 <DockToShip target="spaceShip" /> 457 </effects> 458 <events> 459 <execute> 460 <EventListener event="dockMe" /> 461 </execute> 462 </events> 463 <attached> 464 <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn" 465 beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" 466 /> 467 <Billboard position="0,0,0" material="Examples/Flare" colour="0.5,0,0" scale=3/> 468 </attached> 469 </Dock> 470 471 <SpaceShip template="spaceshipassff" position="-48600,5000,67" orientation="-0.14045, 0.68254, 0.68144, 0.223774" > 472 <attached> 473 <DockingTarget name="spaceShip" /> 474 </attached> 475 </SpaceShip--> 476 477 478 479 <!-- TODO: a) bots trigger themselves b) bots are not in player's team c) bots do friendly fire --> 480 481 <!--Trigger to activate this Team (TEAM NO 1)--> 482 <!--DistanceTrigger name="activateTeam0No1" position="-40400,100,0" distance="300" target="Pawn" activations="1" stayactive="true" /--> 483 <!--TEAM NO 1 (activationType : distance || killing a spaceship what belongs to TEAM 0 NO 0)--> 484 <?lua for i=0,10,1 do 485 x=math.random(-300,300) 486 y=math.random(-200,200) 487 z=math.random(-200,200) 488 ?> 489 <EventTrigger name="activateTeam0No1" activations=1 stayactive="true"> 490 <events> 491 <trigger> 492 <SpaceShip position="<?lua print(x-39200) ?>,<?lua print(y-2000) ?>,<?lua print(z+4000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>"> 493 <templates> 494 <Template link=spaceshipassff /> 495 </templates> 496 <controller> 497 <WaypointPatrolController alertnessradius=3129 team=0 active=false> 498 <waypoints> 499 <Model mesh="cube.mesh" scale=0 position="-40000,0,0" /> 500 <Model mesh="cube.mesh" scale=0 position="-40100,250,-500" /> 501 <Model mesh="cube.mesh" scale=0 position="0,0,0" /> 502 </waypoints> 503 <events> 504 <activity> 505 <EventListener event="activateTeam0No1" /> 506 </activity> 507 </events> 508 </WaypointPatrolController> 509 </controller> 510 </SpaceShip> 511 </trigger> 512 </events> 513 </EventTrigger> 514 515 <?lua end ?> 516 <!--Creating spaceships (player's team) END --> 517 518 519 520 521 367 522 <!-- Idea: Pawndeath should trigger several , delayed events. --> 368 523 <!--EventTrigger name="PawnDied4" > -
code/branches/ai2/data/levels/presentationFS11.oxw
r8706 r8847 54 54 55 55 <!-- SOUND --> 56 <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> 57 <WorldAmbientSound source="Mars.ogg" looping="true"> 58 <events> 59 <activity> 60 <DistanceTrigger position="-72369,803,2" distance=1700 target="Camera" /> 61 </activity> 62 </events> 63 </WorldAmbientSound> 64 <WorldAmbientSound source="Jupiter.ogg" looping="true"> 65 <events> 66 <activity> 67 <DistanceTrigger position="-73450,5067,-351" distance=800 target="Camera" /> 68 </activity> 69 </events> 70 </WorldAmbientSound> 56 <WorldAmbientSound source="Jupiter.ogg" looping="true" playOnLoad="true"/> 71 57 72 58 <!-- EARTH ORBIT --> -
code/branches/ai2/src/orxonox/controllers/DroneController.cc
r8845 r8847 52 52 this->drone_ = 0; 53 53 this->isShooting_ = false; 54 //this->criticalDistance_ = 1000.0f;55 54 this->setAccuracy(10); 56 55
Note: See TracChangeset
for help on using the changeset viewer.