Jump to content

Arrows with another weapons


Recommended Posts

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 comment
Share on other sites

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 comment
Share on other sites

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