Changeset 8851 for code/branches
- Timestamp:
- Aug 21, 2011, 6:52:33 PM (13 years ago)
- Location:
- code/branches/ai2
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/data/levels/missionOne.oxw
r8847 r8851 11 11 include("templates/spaceshipAssff.oxt") 12 12 include("templates/spaceshipPirate.oxt") 13 include("templates/spaceshipSpacecruiser.oxt") 13 14 ?> 14 15 … … 46 47 47 48 <WorldAmbientSound 48 ambientSource=" AlphaCentauri.ogg"49 ambientSource="Jupiter.ogg" 49 50 looping="true" 50 51 playOnLoad="true" 51 52 /> 52 53 <!-- AlphaCentauri.ogg--> 53 54 <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"/> 54 55 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> … … 360 361 <attached> 361 362 <!-- Docking --> 362 < !--DistanceTriggerBeacon name="bcnDestroyer" />363 <DockingTarget name="destroyer" / -->363 <DistanceTriggerBeacon name="bcnDestroyer" /> 364 <DockingTarget name="destroyer" /> 364 365 365 366 <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 /> … … 401 402 </SpaceShip> 402 403 404 <Billboard position="-48600,0,0" material="Examples/Flare" colour="0.6,0,0" scale=3/> 405 <Dock position="-48600,0,0" roll=90 yaw=180 > 406 <animations> 407 <MoveToDockingTarget target="destroyer" /> 408 </animations> 409 <effects> 410 <DockToShip target="spaceShip" /> 411 </effects> 412 <events> 413 <execute> 414 <EventListener event="dockMe" /> 415 </execute> 416 </events> 417 <attached> 418 <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn" 419 beaconMode="exclude" targetname="bcnDestroyer" name="dockMe" 420 /> 421 </attached> 422 </Dock> 423 424 <SpaceShip template="spaceshipspacecruiser" position="-48600,800,0" orientation="-0.14, 0.68, 0.68, 0.223" health="300" maxhealth="400" initialhealth="300"> 425 <attached> 426 <DockingTarget name="spaceShip" /> 427 </attached> 428 </SpaceShip> 429 430 431 432 403 433 404 434 405 435 <!-- Pickup - find better place !! --> 406 <DistanceTrigger name="pickup Shield" 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=pickup Shield/>411 </trigger> 412 </events> 413 </SimpleNotification> 414 415 <PickupSpawner position="-49300, 100,0" triggerDistance="20" respawnTime="30" maxSpawnedItems="1">436 <DistanceTrigger name="pickup" position="-49300,-100,-50" target="Pawn" distance=20 stayActive="true" delay=0 /> 437 <SimpleNotification message="This pickup makes you temporarly small."> 438 <events> 439 <trigger> 440 <EventListener event=pickup /> 441 </trigger> 442 </events> 443 </SimpleNotification> 444 445 <PickupSpawner position="-49300,-100,-50" triggerDistance="20" respawnTime="30" maxSpawnedItems="1"> 416 446 <pickup> 417 <ShieldPickup template=hugesh ieldpickup />447 <ShieldPickup template=hugeshrinkpickup /> 418 448 </pickup> 419 449 </PickupSpawner> … … 442 472 </attached--> <!-- Forcefield kills HYDROGEN FARMER--> 443 473 <collisionShapes> 444 <SphereCollisionShape radius="2 350" position="0,0,0" /> <!-- Nasty: Collisionradius =! planet scale -->474 <SphereCollisionShape radius="2400" position="0,0,0" /> <!-- Nasty: Collisionradius =! planet scale --> 445 475 </collisionShapes> 446 476 </Planet> … … 448 478 449 479 <!--------------------------------------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 480 477 481 … … 519 523 520 524 521 522 525 <!-- Idea: Pawndeath should trigger several , delayed events. --> 523 526 <!--EventTrigger name="PawnDied4" > -
code/branches/ai2/data/levels/presentationFS11.oxw
r8847 r8851 54 54 55 55 <!-- SOUND --> 56 <WorldAmbientSound source="Jupiter.ogg" looping="true" playOnLoad="true"/> 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> 57 71 58 72 <!-- EARTH ORBIT --> -
code/branches/ai2/src/orxonox/controllers/ArtificialController.cc
r8845 r8851 957 957 bool ArtificialController::sameTeam(ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gametype) 958 958 { 959 if(!entity1 || !entity2) 960 return true; 959 961 if (entity1 == entity2) 960 962 return true;
Note: See TracChangeset
for help on using the changeset viewer.