Play damage sound when hurt by elemental shields

This commit is contained in:
Evil Eye 2021-02-07 12:55:10 +01:00
parent 9bd77e7d2c
commit af0f94f03e
2 changed files with 3 additions and 0 deletions

View file

@ -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);
}
}