1
Brutal AI / Re: "Realistic accuracy and cover system" option
« Last post by jnarical on Today at 01:38:45 pm »- sniper shots exceeding 100% may be worth reconsidering formula, because weapon accuracies had been balanced around different shooting mechanics. Plain over-100% growth of hitchance is something that will make it surreal that 130% accuracy-guy will have 80% of actual chance to hit 50%-covered unit, while 100%-guy will have plain 50%. May it be 1/3 penalty for everything beyond 100% too, be worth considering.1) About the formula - all numbers are just arbitrary... Maybe a threshold for sniping should be equal to unit's own accuracy? I don't know, but the core idea of sniping is just like that) Your example has a mistake... 130% accuracy to 50% covered target will be 130%*0.5 + 30% = 95%... and this mechanics should be used with "partial"effect from cover. It'll make 130% accuracy even more powerful and 100% accuracy to half-covered target - less penalized.
- empty-tile shooting is somehow broken in OG:It's not broken. It chooses target voxel based on tile type, and it's different one for different kinds of walls. About a tile with undiscovered unit - it's also makes kind of sense. And what about shooting in desired direction - as far as know, CTRL works just like that. To me at least, it works as "target the center of a tile, regardless of its type". So, if you'll shoot a tile with an undiscovered enemy with a CTRL, you'll get precisely what you want. I was experimenting with it lately, without CTRL a bullet goes to a floor (for a "floor" tile without a wall), with CTRL flies "horizontally" (considering the fact that gun's barrel is higher than tile center, it goes downwards slightly)
* when you have a wall adjacent to a tile you shoot: sometimes unit shots into wall, instead of a tile.
* when tile is empty or beyond visibility range, (or enemy that stands on it is undiscovered yet) - shooting goes into the ground tile.
- as we go through hit/miss rolls, there is one more thing I would like to suggest, regarding the visible targets shooting:I didn't get much tbh but I'll look again outside my working hours))
BASIC
* roll for hit means bullet flies into the target voxel
* roll for cover means bullet hits target OR cover, but within target voxel cone
* roll for miss DOESN'T mean necessary miss, but instead gives random shot within cone, where shot can go everywhere. (even, into the target, randomly)
DIFFERENCES for abovementioned ALT-method
*ALT+ roll for hit means bullet flies into target's voxel center's 1/3 height, even if there is cover (contrary to the specific case when unit shoots precisely into the finger, which sticks out from the window. Prove me incorrect, if CTRL+shooting already goes into center, not open-part of the body)
* NO COVER is considered when calculating ALT-shots. If there's cover, indeed, it is up to player to consider this method. This method is specifically good for destruction covers with heavy weapons.
* roll for miss works as default (goes everywhere, even into the target, randomly)
For now, I can tell that destroying covers already works well with CTRL. I'm not sure where target voxel precisely is when you aim a unit with CTRL... Both ways are possible, I should check. For now, I don't get why you're asking for another firing mode, my guess is that you want to have a way to shoot slightly down... for destroying obstacles with HE shots, for example. So those HE shots could explode more often and not fly away to the sky ))