mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 20:13:06 +00:00
Play shield hit sound when the hit is blocked (bug #6645)
This commit is contained in:
parent
a2053a625e
commit
180963488f
4 changed files with 7 additions and 2 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
Bug #5714: Touch spells cast using ExplodeSpell don't always explode
|
Bug #5714: Touch spells cast using ExplodeSpell don't always explode
|
||||||
Bug #5977: Fatigueless NPCs' corpse underwater changes animation on game load
|
Bug #5977: Fatigueless NPCs' corpse underwater changes animation on game load
|
||||||
Bug #6427: Enemy health bar disappears before damaging effect ends
|
Bug #6427: Enemy health bar disappears before damaging effect ends
|
||||||
|
Bug #6645: Enemy block sounds align with animation instead of blocked hits
|
||||||
Bug #6661: Saved games that have no preview screenshot cause issues or crashes
|
Bug #6661: Saved games that have no preview screenshot cause issues or crashes
|
||||||
Bug #6939: OpenMW-CS: ID columns are too short
|
Bug #6939: OpenMW-CS: ID columns are too short
|
||||||
Bug #6949: Sun Damage effect doesn't work in quasi exteriors
|
Bug #6949: Sun Damage effect doesn't work in quasi exteriors
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,10 @@ namespace MWClass
|
||||||
MWMechanics::applyElementalShields(ptr, victim);
|
MWMechanics::applyElementalShields(ptr, victim);
|
||||||
|
|
||||||
if (MWMechanics::blockMeleeAttack(ptr, victim, weapon, damage, attackStrength))
|
if (MWMechanics::blockMeleeAttack(ptr, victim, weapon, damage, attackStrength))
|
||||||
|
{
|
||||||
damage = 0;
|
damage = 0;
|
||||||
|
block(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
MWMechanics::diseaseContact(victim, ptr);
|
MWMechanics::diseaseContact(victim, ptr);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -700,7 +700,10 @@ namespace MWClass
|
||||||
MWMechanics::applyElementalShields(ptr, victim);
|
MWMechanics::applyElementalShields(ptr, victim);
|
||||||
|
|
||||||
if (MWMechanics::blockMeleeAttack(ptr, victim, weapon, damage, attackStrength))
|
if (MWMechanics::blockMeleeAttack(ptr, victim, weapon, damage, attackStrength))
|
||||||
|
{
|
||||||
damage = 0;
|
damage = 0;
|
||||||
|
block(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
if (victim == MWMechanics::getPlayer() && MWBase::Environment::get().getWorld()->getGodModeState())
|
if (victim == MWMechanics::getPlayer() && MWBase::Environment::get().getWorld()->getGodModeState())
|
||||||
damage = 0;
|
damage = 0;
|
||||||
|
|
|
||||||
|
|
@ -1145,8 +1145,6 @@ namespace MWMechanics
|
||||||
mCastingManualSpell = false;
|
mCastingManualSpell = false;
|
||||||
mCanCast = false;
|
mCanCast = false;
|
||||||
}
|
}
|
||||||
else if (groupname == "shield" && action == "block hit")
|
|
||||||
charClass.block(mPtr);
|
|
||||||
else if (groupname == "containeropen" && action == "loot")
|
else if (groupname == "containeropen" && action == "loot")
|
||||||
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Container, mPtr);
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Container, mPtr);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue