mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Make creatures use fHandToHandReach
This commit is contained in:
parent
c98d4e0473
commit
3f6543860a
1 changed files with 3 additions and 11 deletions
|
@ -491,17 +491,9 @@ namespace MWMechanics
|
||||||
|
|
||||||
if (mWeapon.isEmpty())
|
if (mWeapon.isEmpty())
|
||||||
{
|
{
|
||||||
if (!mIsNpc)
|
static float fHandToHandReach =
|
||||||
{
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fHandToHandReach")->getFloat();
|
||||||
return fCombatDistance;
|
return fHandToHandReach * fCombatDistance;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
static float fHandToHandReach =
|
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fHandToHandReach")->getFloat();
|
|
||||||
|
|
||||||
return fHandToHandReach * fCombatDistance;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const ESM::Weapon* weapon = mWeapon.get<ESM::Weapon>()->mBase;
|
const ESM::Weapon* weapon = mWeapon.get<ESM::Weapon>()->mBase;
|
||||||
|
|
Loading…
Reference in a new issue