Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9194 in orxonox.OLD


Ignore:
Timestamp:
Jul 5, 2006, 8:14:40 AM (18 years ago)
Author:
patrick
Message:

less debug and better init

Location:
branches/presentation/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9192 r9194  
    233233    this->initWeapon = true;
    234234
     235    State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
     236
     237    this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
     238    this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode);
     239    this->getWeaponManager().getFixedTarget()->setParentMode(PNODE_ROTATE_AND_MOVE);
     240
     241
     242    this->aimingSystem->toList(OM_GROUP_01);
     243    this->aimingSystem->setParent(&this->cameraNode);
     244    this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
     245
     246
    235247    AABB* box = this->getModelAABB();
    236248    if( box != NULL)
     
    240252      State::getCameraTargetNode()->setRelCoor(10, box->halfLength[1] * f, 0);
    241253
    242       State::getCameraNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
    243       this->cameraNode.setParentMode(PNODE_ROTATE_AND_MOVE);
    244       this->getWeaponManager().getParentNode()->setParentMode(PNODE_ROTATE_AND_MOVE);
    245 
    246 
    247254      this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1));
    248255      this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0));
    249 
    250       this->aimingSystem->toList(OM_GROUP_01);
    251       this->aimingSystem->setParent(&this->cameraNode);
    252       this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
    253256    }
    254257  }
  • branches/presentation/src/world_entities/weapons/aiming_system.cc

    r9192 r9194  
    116116  {
    117117    PRINTF(0)("real hit: %s\n", killer->getClassName());
    118 
    119118    this->selectionList.push_back(killer);
    120119  }
    121   PRINTF(0)("no hit: %s\n", killer->getClassName());
    122120}
    123121
Note: See TracChangeset for help on using the changeset viewer.