Jump to content

How to reduce maximum bow distance?


Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.