Jump to content

Standing mount can pass through obstacle while attacking (buildings, mountains, water...)


Go to solution Solved by ARiver,

Recommended Posts

  • Premium

Hello,

I've installed this standing mount system:


I know there is a lot of bugs but I've managed to solve a few but there is one i can't find a workaround for :

While hitting (pressing spacebar) you can pass through every obstacle on the way from map 
relief to building.

The collision part is F up , i've tried some little things in InstanceBaseBattle.cpp and ActorInstanceCollisionDetection.cpp but couldn't manage to fix it.

Can anyone help me figure out where to look for ? Im not asking for a full solution but for hints or leads

 

Thanks in advance.

Best regards.

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
  • Solution

I have found a way to fix that i don't know if it's a good one but it seems to work fine.

in GameLib/ActorInstanceCollisionDetection.cpp :

//Search for :

void CActorInstance::BlockMovement()
{
	if (m_pkHorse)
	{
		m_pkHorse->__InitializeMovement();
		return;
	}
	
	__InitializeMovement();
}

//replace for : 

void CActorInstance::BlockMovement()
{
	if (m_pkHorse)
	{
		m_pkHorse->__InitializeMovement();
#ifdef ENABLE_STANDING_MOUNT
		if (IsStandingMount())
		{
			__InitializeMovement();
		}
#endif
		return;
	}
	
	__InitializeMovement();
}



Best regards.

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.