Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6312


Ignore:
Timestamp:
Dec 9, 2009, 11:23:29 PM (15 years ago)
Author:
wirthmi
Message:

Fixes for damage overlay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc

    r6310 r6312  
    298298
    299299    void NewHumanController::hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) {
    300         if ( showDamageOverlay_ ) {
     300        if ( this->showDamageOverlay_ && !this->controlPaused_ && this->controllableEntity_ && !this->controllableEntity_->isInMouseLook() ) {
    301301            Vector3 posA;
    302302            if ( originator )
     
    331331            if ( relativeHit.y > threshold) //Top
    332332            {
     333                this->damageOverlayBottom_->show();
     334                this->damageOverlayTB_ = this->damageOverlayTime_;
     335                //this->damageOverlayTop_->setBackgroundAlpha(0.3);
     336            }
     337            if ( relativeHit.y < -threshold) //Bottom
     338            {
    333339                this->damageOverlayTop_->show();
    334340                this->damageOverlayTT_ = this->damageOverlayTime_;
    335                 //this->damageOverlayTop_->setBackgroundAlpha(0.3);
    336             }
    337             if ( relativeHit.y < -threshold) //Bottom
    338             {
    339                 this->damageOverlayBottom_->show();
    340                 this->damageOverlayTB_ = this->damageOverlayTime_;
    341341                //this->damageOverlayBottom_->setBackgroundAlpha(0.3);
    342342            }
Note: See TracChangeset for help on using the changeset viewer.