mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Fix autoattack
This commit is contained in:
parent
d934863673
commit
37cff8580f
2 changed files with 3 additions and 2 deletions
|
@ -571,7 +571,8 @@ void Sapphire::Entity::BNpc::update( uint64_t tickCount )
|
|||
}
|
||||
moveTo( *pHatedActor );
|
||||
}
|
||||
else
|
||||
|
||||
if( ( distance - getScale() ) < 5 )
|
||||
{
|
||||
if( !hasFlag( TurningDisabled ) && face( pHatedActor->getPos() ) )
|
||||
sendPositionUpdate();
|
||||
|
|
|
@ -573,7 +573,7 @@ int32_t Sapphire::World::Navi::NaviProvider::addAgent( Entity::Chara& chara )
|
|||
params.height = 3.f;
|
||||
params.maxAcceleration = 25.f;
|
||||
params.maxSpeed = std::pow( 2, chara.getScale() * 0.35f ) + 1.f;
|
||||
params.radius = ( chara.getScale() ) * 0.9f;
|
||||
params.radius = ( chara.getScale() ) * 0.75f;
|
||||
params.collisionQueryRange = params.radius * 12.0f;
|
||||
params.pathOptimizationRange = params.radius * 20.0f;
|
||||
params.updateFlags = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue