Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11022


Ignore:
Timestamp:
Jan 2, 2016, 9:50:26 PM (9 years ago)
Author:
landauf
Message:

tweaked portal sound a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/portals/PortalEndPoint.cc

    r11021 r11022  
    6464            this->portalSound_->setLooping(false);
    6565            this->attach(this->portalSound_);
    66             this->portalSound_->setSource("sounds/Weapon_HsW01.ogg"); //TODO: change sound file
     66            this->portalSound_->setSource("sounds/Portal_1_cut.ogg");
     67            this->portalSound_->setVolume(1.0f);
    6768        }
    6869    }
     
    171172        entity->setVelocity(this->getWorldOrientation() * entity->getVelocity());
    172173        //play Sound
    173         if( this->portalSound_ && !(this->portalSound_->isPlaying()))
     174        if (this->portalSound_)
    174175        {
     176            if (this->portalSound_->isPlaying())
     177                this->portalSound_->stop();
    175178            this->portalSound_->play();
    176179        }
Note: See TracChangeset for help on using the changeset viewer.