Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 12:02:50 AM (14 years ago)
Author:
landauf
Message:

merged fps branch to presentation3

Location:
code/branches/presentation3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3

  • code/branches/presentation3/src/orxonox/controllers/NewHumanController.cc

    r6951 r7073  
    216216                {
    217217                    if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket"))))
    218                         this->showOverlays();
     218                        {this->showOverlays();}
     219                       
     220                    if (this->getControllableEntity() &&  this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))\
     221                        {this->showOverlays();
     222                        this->hideArrows();}
    219223
    220224                    this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5f-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5f-overlaySize_/2));
     
    437441            HumanController::yaw(value);
    438442
    439         this->currentYaw_ = value.x;
     443        if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))
     444            this->currentYaw_ = value.x;
    440445    }
    441446
     
    446451            HumanController::pitch(value);
    447452
    448         this->currentPitch_ = value.x;
     453        if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))
     454            this->currentPitch_ = value.x;
    449455    }
    450456
Note: See TracChangeset for help on using the changeset viewer.