mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-08 03:28:15 +03:00
Play damage sound when hurt by elemental shields
This commit is contained in:
parent
9bd77e7d2c
commit
af0f94f03e
2 changed files with 3 additions and 0 deletions
|
@ -345,6 +345,8 @@ namespace MWMechanics
|
|||
MWMechanics::DynamicStat<float> health = attackerStats.getHealth();
|
||||
health.setCurrent(health.getCurrent() - x);
|
||||
attackerStats.setHealth(health);
|
||||
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(attacker, "Health Damage", 1.0f, 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue