Jump to content

Accuracy = spread?


Recommended Posts

So my understanding is that the attack spread is how accurate a unit is at hitting the target and the higher the number ie spread of 20 is a lot less accurate than a spread of 2.  Is this correct?   What exactly does the spread = ?  within x distance of target? 

I've been playing around with the files a little creating a mod based off of community mod.  Generally speaking I feel like the further the range, the less accurate.  If you are trying to hit something 60 meters away, its harder than hitting something 30 meters away.  So I figured the spread should be higher for longer ranged units, ie archers higher than slingers/xbows, higher than javs.  But then I realized jsut cause they have a logner range, doesnt mean they are always reaching that max range.  if 30 is low end of the max ranged units and they are all trying to hit somethign 20 meters away what should be more accurate, a bow and arrow, someone slinging a tiny rock or a jav?  
Also would make sense to me that the equivalent unit mounted would be slightly less accurate than its infantry counterpart. 

Anyone able to help explain how accuracy works in this game and what the spread means?  Also feel free to disagree as to wether further distance should = less accuracy and answer the question at the same distance which weapon would be more accurate?

Thanks!

  • Like 1
Link to comment
Share on other sites

Hello, the spread mechanism has been discussed here:

The key takeaway here is that we are sampling 2 random variables following a 2D Gaussian distribution in order to get 2 multipliers X and Y. Then we multiply the Distance from target by the multipliers to get the deviation ..

Let me know if you need further explanations of the JavaScript code or the mathematical details B)

Edited by AInur
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...