Jump to content

Recommended Posts

Hi, I would like to reduce the maximum bow distance that an assassin can shoot with the bow.

If for example the max distance is 2500, i would like to reduce it to 1100/1200, but i can't find where it is this thing

Does anyone of you know it? Thank you

  • Love 1
Link to comment
https://metin2.dev/topic/22091-how-to-reduce-maximum-bow-distance/
Share on other sites

  • Active Member

I think this will help you:
 

Spoiler

In your battle.cpp - "CalcArrowDamage" method:


	int iGap = (iDist / 100) - 5 - pkAttacker->GetPoint(POINT_BOW_DISTANCE);
	int iPercent = 100 - (iGap * 5);

 

In the first line you can change the usage range of your arrow.
In the second line you can change the damage you do, what depends on how much is the distance between you and your enemy, if I'm correct.

Btw. I haven't  changed it yet.

InstanceBase.cpp in client source

float CInstanceBase::__GetBowRange()
{
	float fRange = 2500.0f - 100.0f;

	if (__IsMainInstance())
	{
		IAbstractPlayer& rPlayer=IAbstractPlayer::GetSingleton();
		fRange += float(rPlayer.GetStatus(POINT_BOW_DISTANCE));
	}

	return fRange;
}

no idea right now where it is in server side source

  • Love 1

I completely abandoned working on the files for this game. I do not respond to private messages.

.png

1 hour ago, Nirray said:

InstanceBase.cpp in client source


float CInstanceBase::__GetBowRange()
{
	float fRange = 2500.0f - 100.0f;

	if (__IsMainInstance())
	{
		IAbstractPlayer& rPlayer=IAbstractPlayer::GetSingleton();
		fRange += float(rPlayer.GetStatus(POINT_BOW_DISTANCE));
	}

	return fRange;
}

no idea right now where it is in server side source

Thank you, this is perfect

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.