Jump to content
  • 0

Arrows with another weapons


Cunoo

Question

Hi all, 

 

I have a problem in game with arrows.. If I have equiped dagger or sword + arrows, just I have more dmg than without equiped arrows.. How I can change calculation dmg from equiped arrows work only with equiped bow?

Link to post

6 answers to this question

Recommended Posts

  • 0

arrows damage taking from function CalcArrowDamage but if you using sword this should take from function CalcMeleeDamage, i dont think its connected, check and compare calcarrowdamage and calcmeleedamage function

This is function arrow iDam = number(pkBow->GetValue(3), pkBow->GetValue(4)) * 2 + pkArrow->GetValue(3); but its only count when you wear bow.

  • Love 1
Link to post
  • 0
3 hours ago, useless69 said:

arrows damage taking from function CalcArrowDamage but if you using sword this should take from function CalcMeleeDamage, i dont think its connected, check and compare calcarrowdamage and calcmeleedamage function

This is function arrow iDam = number(pkBow->GetValue(3), pkBow->GetValue(4)) * 2 + pkArrow->GetValue(3); but its only count when you wear bow.

Ahhhhh maybe is problem if I have in proto set value1-2 and value3-4? Because my game calculate dmg from arrows for all weapons.. + I have average bonus in arrrows (addon_type - 1).. Do you know how I can fix it? I can add new value in code for range.. But how can I fix average dmg? If I understand right, value3 is for magic attack and value4 for melee attack?

Link to post
  • 0
1 minute ago, useless69 said:

where do you have function pkArrow->GetValue

Code in source is original untouched.. Only item_proto is changed.. One change is range for arrows with used value1-value2 for magic attack and value3-value4 for melee attack + addon_type - 1.. Now I have this strange problem.. I dont know if is problem with addon_type or values in src.. Too late I test more option.. Just I want arrows like - Wooden Arrow Attack 10-20 and not Attack 10.. (Just add range like weapons) and add addon_type (-1)..

Link to post
  • 0

step by step, this is for range.

iDam = number(pkBow->GetValue(3)+pkArrow->GetValue(3), pkBow->GetValue(4)) +pkArrow->GetValue(4);

 

arrow value 3 = 10 value = 20

  • Love 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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