Jump to content

Recommended Posts

Posted

Hi,

When scripting Obsidian Sanctum and Eye of Eternity I found an annoying problem, dragons teleport from point to point visually (cant be hit until really reach its destination) instead of normal moving. When mob enters evade mode and gets aggro'd again - it moves ok, but if I lose it from my sight and come back to it - it gets bugged again.

I tried cleaning everything in creature_addon to make them at least walk instead of flying but it doesn't help. Does anyone know why does it look like that? Dunno if this is related to creature's info in DB or something in the core.

  • 2 weeks later...
Posted

I think I found the issue. It's InhabitType in creature_template. When set to 7 - creature moves like that. I am currently using InhabitType = 3 + adding splineflag SPLINEFLAG_FLYING in sd2 scripts. For DB fixing adding creature_addon also helps.

Posted

Try to remove

if (!((Creature*)unit)->hasUnitState(UNIT_STAT_MOVING))
{
   // (ok) possibly some "hover" mode
   unit->m_movementInfo.AddMovementFlag(MOVEFLAG_ROOT); //problems sometimes...
}

in Object::BuildMovementUpdate() in Object.cpp somewhere near line 285.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use