1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 15:36:41 +00:00

Bug #1126: Tweak creature attack distance a bit (still no idea where this should come from)

This commit is contained in:
scrawl 2014-01-19 14:47:58 +01:00
parent 1a00f26390
commit 9723263730
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ namespace MWClass
ptr.get<ESM::Creature>(); ptr.get<ESM::Creature>();
// TODO: where is the distance defined? // 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()) if (result.first.isEmpty())
return; // Didn't hit anything return; // Didn't hit anything

View file

@ -152,7 +152,7 @@ namespace MWMechanics
else //is creature else //is creature
{ {
weaptype = WeapType_HandToHand; //doesn't matter, should only reflect if it is melee or distant weapon 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); //MWWorld::Class::get(actor).getCreatureStats(actor).setAttackingOrSpell(false);