| 7239 | //-------------------------------------------------------------------------- |
| 7240 | |
| 7241 | void Player::createSplash( Point3F &pos, F32 speed ) |
| 7242 | { |
| 7243 | if ( speed >= mDataBlock->hardSplashSoundVel ) |
| 7244 | SFX->playOnce( mDataBlock->getPlayerSoundProfile(PlayerData::ImpactWaterHard), &getTransform() ); |
| 7245 | else if ( speed >= mDataBlock->medSplashSoundVel ) |
| 7246 | SFX->playOnce( mDataBlock->getPlayerSoundProfile(PlayerData::ImpactWaterMedium), &getTransform() ); |
| 7247 | else |
| 7248 | SFX->playOnce( mDataBlock->getPlayerSoundProfile(PlayerData::ImpactWaterEasy), &getTransform() ); |
| 7249 | |
| 7250 | if( mDataBlock->splash ) |
| 7251 | { |
| 7252 | MatrixF trans = getTransform(); |
| 7253 | trans.setPosition( pos ); |
| 7254 | Splash *splash = new Splash; |
| 7255 | splash->onNewDataBlock( mDataBlock->splash, false ); |
| 7256 | splash->setTransform( trans ); |
| 7257 | splash->setInitialState( trans.getPosition(), Point3F( 0.0, 0.0, 1.0 ) ); |
| 7258 | if (!splash->registerObject()) |
| 7259 | delete splash; |
| 7260 | } |
| 7261 | } |
| 7262 | |
| 7263 | |
| 7264 | bool Player::isControlObject() |
nothing calls this directly
no test coverage detected