mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Merge pull request #972 from terrorfisch/minor-bugfix
Make NPCs use both hands in weaponless combat.
This commit is contained in:
commit
97de484f81
1 changed files with 1 additions and 1 deletions
|
@ -688,7 +688,7 @@ ESM::Weapon::AttackType chooseBestAttack(const ESM::Weapon* weapon, MWMechanics:
|
||||||
float roll = Misc::Rng::rollClosedProbability();
|
float roll = Misc::Rng::rollClosedProbability();
|
||||||
if(roll <= 0.333f) //side punch
|
if(roll <= 0.333f) //side punch
|
||||||
{
|
{
|
||||||
movement.mPosition[0] = Misc::Rng::rollClosedProbability() ? 1.0f : -1.0f;
|
movement.mPosition[0] = (Misc::Rng::rollClosedProbability() < 0.5f) ? 1.0f : -1.0f;
|
||||||
movement.mPosition[1] = 0;
|
movement.mPosition[1] = 0;
|
||||||
attackType = ESM::Weapon::AT_Slash;
|
attackType = ESM::Weapon::AT_Slash;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue