Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9921 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Nov 9, 2006, 2:46:12 PM (18 years ago)
Author:
rennerc
Message:

spectator spawns fpsplayer on space key

Location:
branches/network/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/graphics/importer/md2/md2Model.cc

    r9920 r9921  
    9999{
    100100  this->init();
     101 
     102  this->scaleFactor = model.scaleFactor;
     103 
    101104  this->rebuildInfo();
    102105}
     
    104107MD2Model& MD2Model::operator=(const MD2Model& md2model)
    105108{
     109  this->init();
     110  this->scaleFactor = md2model.scaleFactor;
    106111  this->data = md2model.data;
    107112  this->rebuildInfo();
  • branches/network/src/lib/lang/base_object.cc

    r9915 r9921  
    4242{
    4343  this->className = "BaseObject";
    44   this->objectName = "";
    45   this->xmlElem = NULL;
     44  this->objectName = bo.objectName;
     45  this->xmlElem = (bo.xmlElem)? bo.xmlElem->Clone() : NULL;
    4646  this->registerObject( this, BaseObject::_objectList);
    4747}
  • branches/network/src/world_entities/spectator.cc

    r9915 r9921  
    234234  else if( event.type == KeyMapper::PEV_JUMP)
    235235  {
    236     //FPSPlayer * fps = new FPSPlayer();
    237     WorldEntity * fps = new WorldEntity();
     236    FPSPlayer * fps = new FPSPlayer();
     237    //WorldEntity * fps = new WorldEntity();
    238238   
    239239    fps->setAbsCoor( this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ() );
    240240    fps->setAbsDir( this->getAbsDir() );
    241     //fps->loadMD2Texture( "doom_guy.png" );
    242     //fps->loadModel( "models/creatures/doom_guy.md2", 10.0f );
    243     fps->loadModel( "models/ships/terran_cruizer.obj" );
     241    fps->loadMD2Texture( "doom_guy.png" );
     242    fps->loadModel( "models/creatures/doom_guy.md2", 10.0f );
     243    //fps->loadModel( "models/ships/terran_cruizer.obj" );
    244244
    245245    //((Playable*)fps)->setPlayDirection(  0, 0, 1, 0 );
Note: See TracChangeset for help on using the changeset viewer.