Jump to content

[v22.7 - Ground Combat] Possible accuracy bug, bullets hitting ground too often


Recommended Posts

I have done some testing and this hypothesis seems to fit what I have seen. Somehow the bullet pathing is messed up. With the new formula for drawing the "best" line to target, on top of the new bullet deviation system that changes where "misses" go something is definitely wonky with the hit percentages.

Just to back this up, I did a quick test, modding accuracy up high to give 95% shots. This was the shot:

2014-05-07_00001.jpg

This was a 95% to-hit shot, and you can see that the line of fire is drawn to the side of the target rather than it's centre. After five shots, this was the result:

2014-05-07_00002.jpg

One destroyed tree, no hits. Obviously, it's only a small test, but what happened was basically the same as the impression I've had from playing generally.

EDIT: Did it again using the debugger. Here's some example output:

[3520] >>> Begin calc. projectile trajectory <<<[3520] Target tile = (27, 59)[3520] Unmodified accuracy calculation:[3520]   range penalty (1.000000) = 1 - ( max(0, dist. to target (14.317822) - weapon range (30)) / weapon range (30) )[3520]   shoot accuracy from props: 0.660000[3520]   shoot accuracy (0.660000) = shoot accuracy (0.660000) - max(0, weapon recoil (0) / 100 - strength (0.650000) )[3520]   weaponAccuracy (315.000000) = weaponAccuracy (105.000000) * accuracyModifier (3.000000)[3520]   unmodified accuracy (207.900009) = shoot accuracy (0.660000) * range penalty (1.000000) * weapon accuracy (315.000000)[3520] Damage for unit:[3520]   damage mul. (1.000000) = difficult mul. (1.000000) * ai race damage bonus (1.000000)[3520]   normal damage (33) = weapon damage (35) * random bonus/penalty (0.960000) * damage mul. (1.000000)[3520]   stun damage (0) = weapon stun damage (0) * random bonus/penalty (1.480000) * damage mul. (1.000000)[3520]   emp damage (0) = weapon emp damage (0) * random bonus/penalty (1.010000) * damage mul. (1.000000)[3520] Terrain bullet score:[3520]   obstacle: level = 0, cell = (85, 177), bulletScore = 0.000[3520]   terrain bullet score = 0.000000[3520] chanceToHitTargetTile (0.000) = (unitAccuracy (207.900) + shortRangeHitBonus (0.000)) * terrainAccuracy (0.000)[3520] Random number (96) is > chanceToHitTargetTile (0.000) => miss shot[3520] Hit an obstacle on tile (28, 59) with stopping chance 100.000

As in the example Chris posted above, it's returning a 0% terrain modifier, reducing the chance of hitting to 0 and shooting the prop instead.

EDIT 2: And it's doing the same for non-100% cover props.

2014-05-07_00001.jpg

2014-05-07_00002.jpg

2014-05-07_00001.thumb.jpg.8abd922d515b2

2014-05-07_00002.thumb.jpg.d0c4420c9896b

Edited by kabill
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.

×
×
  • Create New...