mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 04:45:32 +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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue