Adjusted swish sounds

Sorry Chris, I was wrong. The game actually uses SwishM for every attack, but at a different pitch depending on the force of the attack. I realized it after testing your changes.
actorid
vorenon 12 years ago
parent f57c829cba
commit aa45127895

@ -502,11 +502,11 @@ bool CharacterController::updateNpcState()
{
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
if(complete < 0.5f)
sndMgr->playSound3D(mPtr, "SwishL", 1.0f, 1.0f);
sndMgr->playSound3D(mPtr, "SwishM", 1.0f, 0.8f); //Weak attack
else if(complete < 1.0f)
sndMgr->playSound3D(mPtr, "SwishM", 1.0f, 1.0f);
sndMgr->playSound3D(mPtr, "SwishM", 1.0f, 1.0f); //Medium attack
else
sndMgr->playSound3D(mPtr, "SwishS", 1.0f, 1.0f);
sndMgr->playSound3D(mPtr, "SwishM", 1.0f, 1.2f); //Strong attack
}
stats.setAttackStrength(complete);

Loading…
Cancel
Save