From 286e4bb98f6fda7187e2fc2bf322adb0ef2ef4ef Mon Sep 17 00:00:00 2001 From: Allofich Date: Thu, 1 Sep 2016 23:12:10 +0900 Subject: [PATCH] Remove attacktype movement --- apps/openmw/mwmechanics/aicombat.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index 380c9acf0..0d2499e7a 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -687,21 +687,11 @@ std::string chooseBestAttack(const ESM::Weapon* weapon, MWMechanics::Movement &m //hand-to-hand deal equal damage for each type float roll = Misc::Rng::rollClosedProbability(); if(roll <= 0.333f) //side punch - { - movement.mPosition[0] = (Misc::Rng::rollClosedProbability() < 0.5f) ? 1.0f : -1.0f; - movement.mPosition[1] = 0; attackType = "slash"; - } else if(roll <= 0.666f) //forward punch - { - movement.mPosition[1] = 1; attackType = "thrust"; - } else - { - movement.mPosition[1] = movement.mPosition[0] = 0; attackType = "chop"; - } } else { @@ -712,21 +702,11 @@ std::string chooseBestAttack(const ESM::Weapon* weapon, MWMechanics::Movement &m float roll = Misc::Rng::rollClosedProbability() * (slash + chop + thrust); if(roll <= slash) - { - movement.mPosition[0] = (Misc::Rng::rollClosedProbability() < 0.5f) ? 1.0f : -1.0f; - movement.mPosition[1] = 0; attackType = "slash"; - } else if(roll <= (slash + thrust)) - { - movement.mPosition[1] = 1; attackType = "thrust"; - } else - { - movement.mPosition[1] = movement.mPosition[0] = 0; attackType = "chop"; - } } return attackType;