Cripplez 40 Posted October 11, 2019 Share Posted October 11, 2019 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 1 Link to comment Share on other sites More sharing options...
Heathcliff 182 Posted October 11, 2019 Share Posted October 11, 2019 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 More sharing options...
Cripplez 40 Posted October 12, 2019 Author Share Posted October 12, 2019 Yes this calculate the damage based on your distance, but i want to change the distance that an assassin can use the bow, if he is too far from the target he needs to come closer to shoot the arrow Link to comment Share on other sites More sharing options...
Nirray 192 Posted October 12, 2019 Share Posted October 12, 2019 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 1 I completely abandoned working on the files for this game. I do not respond to private messages. Link to comment Share on other sites More sharing options...
Cripplez 40 Posted October 12, 2019 Author Share Posted October 12, 2019 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now