From 9723263730b3c101c2bf38d5009ca06c637dfa91 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 19 Jan 2014 14:47:58 +0100 Subject: [PATCH] Bug #1126: Tweak creature attack distance a bit (still no idea where this should come from) --- apps/openmw/mwclass/creature.cpp | 2 +- apps/openmw/mwmechanics/aicombat.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwclass/creature.cpp b/apps/openmw/mwclass/creature.cpp index c272b28258..7fcc7066bb 100644 --- a/apps/openmw/mwclass/creature.cpp +++ b/apps/openmw/mwclass/creature.cpp @@ -197,7 +197,7 @@ namespace MWClass ptr.get(); // TODO: where is the distance defined? - std::pair result = MWBase::Environment::get().getWorld()->getHitContact(ptr, 100); + std::pair result = MWBase::Environment::get().getWorld()->getHitContact(ptr, 200); if (result.first.isEmpty()) return; // Didn't hit anything diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index c36c10665e..f38b7ef753 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -152,7 +152,7 @@ namespace MWMechanics else //is creature { weaptype = WeapType_HandToHand; //doesn't matter, should only reflect if it is melee or distant weapon - weapRange = 100; //TODO: use true attack range (the same problem in Creature::hit) + weapRange = 150; //TODO: use true attack range (the same problem in Creature::hit) } //MWWorld::Class::get(actor).getCreatureStats(actor).setAttackingOrSpell(false);