Jump to content

Small Change for Range Attacks


Recommended Posts

Hi, everyone today I would like to share a fix which Webzen has made with you. The fix is about the target position. Ymir is not checking if the target is on horse or not. It would be useful for range attacks.

Find this:

D3DXVECTOR3 CActorInstance::OnGetFlyTargetPosition()
{
	D3DXVECTOR3 v3Center;
	if (m_fRadius<=0)
	{
		BuildBoundingSphere();
		v3Center = m_v3Center;
	}
	else
	{
		v3Center = m_v3Center;
	}

	D3DXVec3TransformCoord(&v3Center, &v3Center, &GetTransform());
	return v3Center;
}

Replace with this:

D3DXVECTOR3 CActorInstance::OnGetFlyTargetPosition()
{
	D3DXVECTOR3 v3Center;
	if (m_fRadius <= 0)
		BuildBoundingSphere();
	
	v3Center = m_v3Center;
	D3DXVec3TransformCoord(&v3Center, &v3Center, &GetTransform());
	
	if (__IsMountingHorse())	
		v3Center.z += 110.0f;

	return v3Center;
}

Best Regards

Ken

  • Metin2 Dev 1
  • Love 21

Do not be sorry, be better.

Link to comment
https://metin2.dev/topic/20187-small-change-for-range-attacks/
Share on other sites

  • Active Member

8k4GSHF.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 4
  • Active Member

Height of the target while mounting.

It's a fix for "skill on the ground" bug.

  • Love 2
  • 4 weeks later...
On 10.12.2018 at 12:44, Ken said:

Merhabalar, bugün herkes Webzen'in sizinle yaptığı bir düzeltmeyi paylaşmak isterim. Düzeltme hedef pozisyon hakkında. Ymir hedefin at olup olmadığını kontrol etmiyor. Menzilli saldırıları için yararlı olacaktır.

Bunu bul:




	 
	
		
	
	
	
	
  
	

Bununla değiştirin:




	  
		
	  
	
	  

	

Saygılarımla

Ken

Is the shaman's character's remote strike?

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.