forked from mirror/openmw-tes3mp
Bug #1126: Tweak creature attack distance a bit (still no idea where this should come from)
This commit is contained in:
parent
1a00f26390
commit
9723263730
2 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ namespace MWClass
|
|||
ptr.get<ESM::Creature>();
|
||||
|
||||
// TODO: where is the distance defined?
|
||||
std::pair<MWWorld::Ptr, Ogre::Vector3> result = MWBase::Environment::get().getWorld()->getHitContact(ptr, 100);
|
||||
std::pair<MWWorld::Ptr, Ogre::Vector3> result = MWBase::Environment::get().getWorld()->getHitContact(ptr, 200);
|
||||
if (result.first.isEmpty())
|
||||
return; // Didn't hit anything
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue