Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7078 in orxonox.OLD


Ignore:
Timestamp:
Feb 7, 2006, 4:13:01 PM (18 years ago)
Author:
patrick
Message:

trunk: player group handling

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/network_game_manager.cc

    r7074 r7078  
    560560        ss->loadModel("models/ships/reap_0.obj");
    561561        ss->toList(OM_GROUP_00);
    562         ss->setAbsCoor(-314.450, 40.701, 83.554);
     562        ss->setAbsCoor(213.37, 57.71, -47.98);
     563        ss->setAbsDir(Quaternion(0.16, 0.98, -0.10));
    563564      }
    564565      else
     
    566567        ss->loadModel( "models/ships/fighter.obj" );
    567568        ss->toList(OM_GROUP_01);
    568         ss->setAbsCoor(213.37, 57.71, -47.98);
    569         ss->setAbsDir(Quaternion(0.16, 0.98, -0.10));      }
     569        ss->setAbsCoor(-314.450, 40.701, 83.554);
     570      }
    570571    }
    571572
  • trunk/src/story_entities/game_world.cc

    r7035 r7078  
    385385  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01),
    386386      this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ));
     387  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
     388  this->dataTank->objectManager->getObjectList(OM_GROUP_01));
    387389
    388390  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01),
  • trunk/src/story_entities/multi_player_world_data.cc

    r7074 r7078  
    212212        playable = dynamic_cast<Playable*>(playableList->front());
    213213        this->localPlayer->setPlayable(playable);
    214         playable->toList(OM_GROUP_01);
     214        playable->toList(OM_GROUP_00);
    215215        playable->setAbsCoor(213.37, 57.71, -47.98);
    216216        playable->setAbsDir(Quaternion(0.16, 0.98, -0.10));
  • trunk/src/world_entities/creatures/md2_creature.cc

    r7071 r7078  
    6464
    6565  this->loadParams(doc.RootElement());
    66   this->toList(OM_GROUP_03);
     66  this->toList(OM_GROUP_01);
    6767}
    6868
  • trunk/src/world_entities/playable.cc

    r7072 r7078  
    163163  if (State::isOnline())
    164164  {
    165   if( this == State::getPlayer()->getPlayable())
    166     State::getGameRules()->onPlayerDeath();
    167 
    168   this->toList(OM_DEAD);
    169   //.HACK: moves the entity to an unknown place far far away: in the future, GameRules will look for that
    170   this->setAbsCoor(-2000.0, -2000.0, -2000.0);
     165    if( this == State::getPlayer()->getPlayable())
     166      State::getGameRules()->onPlayerDeath();
     167
     168
     169    this->toList(OM_DEAD);
     170  //HACK: moves the entity to an unknown place far far away: in the future, GameRules will look for that
     171    this->setAbsCoor(-2000.0, -2000.0, -2000.0);
    171172
    172173  //explosion hack
    173   this->emitter->setSystem(explosionParticles);
    174   this->setAbsCoor(0, 0, 0);
    175   this->emitter->setSystem(NULL);
     174    this->emitter->setSystem(explosionParticles);
     175    this->setAbsCoor(0, 0, 0);
     176    this->emitter->setSystem(NULL);
    176177  }
    177178}
  • trunk/src/world_entities/test_entity.cc

    r7071 r7078  
    5858{
    5959  this->setClassID(CL_TEST_ENTITY, "TestEntity");
    60   this->toList(OM_COMMON);
     60  this->toList(OM_GROUP_00);
    6161}
    6262
Note: See TracChangeset for help on using the changeset viewer.