mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
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.
This commit is contained in:
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…
x
Reference in New Issue
Block a user