I added a bug report for the bolt velocity calculation (
#6262). I think I included all the important details, but please add comments/corrections if I left something out.
I also found that (now everyone try to act surprised
) that there is at least one more layer of detail to bolt deflection that we don't understand. In particular:
1) Deflection of bolts off human targets occurs slightly more often than off arena dwarves. With iron armor, bolt mass 0.09, velocity 833, I found 42% deflection off humans and only 34% deflection off arena dwarves. This could possibly be due to the lack of pain etc for arena dwarves, so I need to repeat the test with regular dwarves as well. However, I think it is due to size because
2) The size of body parts clearly plays some role in deflection. As described above, deflections occur more often than expected off hands/feet, and I have now also found that helms made of copper will deflect 100% of the time using the same mass=0.09 velocity=833 (copper) bolts. I will try to tabulate results vs. various body parts and post here. Does anyone know how to calculate the size of body parts? I thought Urist posted it somewhere, but I'm not finding it.
That being said, I am unsure if I want to continue to pursue projectile research now, as I have spend an inordinate amount of time on this already.
Edit:
I forgot to mention that I've confirmed that in adventure mode all races seem to use the
modified ammo materials I created without any issue. At least, humans, goblins, and dwarves do. Elves still use normal wooden bolts, which depending on the type of wood may be more or less dense than the modded bolts. Wood will be deflected by all metal armors except adamantine due to its low IMPACT_YIELD causing the projectile to absorb the force of the blow, so this probably isn't a major issue. Also, I did nothing about bone bolts, but they have density 500 and therefore should be somewhat less effective than the modded bolts.
I'll repeat once again that if anyone else would like to work on this project, now or in the future, I will be more than happy to provide you with all my scripts, etc, and help you with getting them to run for you. I hope to get most of them packaged up in some reasonable way in the next few weeks, but I'm having a hard time figuring out what I should include. However, if someone tells me "I want to test X", I can probably provide them with a good start towards doing that.
Update #2: I ran a test of my modded bolts vs. normal dwarves, and bolts only had a ~30% chance of deflecting off iron armor. So there definitely is some kind of size issue. The thing is, humans are larger than dwarves, and the data we had so far suggested that deflection is more likely off smaller body parts, so I have no idea what this is about. Maybe humans have a larger percentage of their body in the torso and head (areas covered by thicker armor), and this skews the results? I have no idea.