aliens

Author Topic: MISSING @MORE THAN 100% CHANCE  (Read 12477 times)

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
MISSING @MORE THAN 100% CHANCE
« on: January 06, 2018, 11:25:40 pm »
I know this has been discussed many times before but is this one of the worst misses ever?

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #1 on: January 08, 2018, 11:16:43 pm »
I've had this happen a few times. When shots have a high hit chance, they seem to miss considerably more commonly than they should. Even over 100%, it is not uncommon for a shot to miss. It usually happens when the line of fire is partially obstructed, but sometimes it seems to be based on the angle to the target. I had one shot in which the soldier missed six times, all six following exactly the same trajectory and skimming right behind the target's back.

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #2 on: January 08, 2018, 11:23:40 pm »
Yap reaver is right cover makes a diference, but the calc is only for weapon soldier and other variants , personaly idont know the rules, but someone in forum must know

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9106
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #3 on: January 09, 2018, 12:00:58 am »
The issue is terminology and way of displaying the info.

1/ Display: "136%" should be displayed just as "136" ... the percentage sign does not belong there and is just plain wrong

(I think) I understand the reason why Julian decided to display it this way... but it will forever create confusion.

2/ Terminology: "136%" is not "136% chance to hit"... it means "your firing skill adjusted to this particular situation is a number 136"

There are situations where "100%" will always miss... and vice versa there are (many) situations where "0%" has a non-zero chance to hit.

Under ideal conditions, the displayed value corresponds roughly to chance to hit... under less ideal conditions, there is a big margin for error... under bad conditions, it doesn't correspond at all.


Summary: if you're not convinced you have ideal conditions, try to move into a better position... a "70%" shot under ideal conditions is MUCH better than a "130%" shot under bad conditions.

Offline tkzv

  • Commander
  • *****
  • Posts: 583
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #4 on: January 09, 2018, 12:17:07 am »
The issue is terminology and way of displaying the info.

1/ Display: "136%" should be displayed just as "136" ... the percentage sign does not belong there and is just plain wrong

(I think) I understand the reason why Julian decided to display it this way... but it will forever create confusion.

2/ Terminology: "136%" is not "136% chance to hit"... it means "your firing skill adjusted to this particular situation is a number 136"

There are situations where "100%" will always miss... and vice versa there are (many) situations where "0%" has a non-zero chance to hit.

Under ideal conditions, the displayed value corresponds roughly to chance to hit... under less ideal conditions, there is a big margin for error... under bad conditions, it doesn't correspond at all.


Summary: if you're not convinced you have ideal conditions, try to move into a better position... a "70%" shot under ideal conditions is MUCH better than a "130%" shot under bad conditions.
What other conditions apply? Besides terrain partially blocking the target.

If it's blocking terrain, it's possible to check the 1st-person screenshot (F10), although it differs slightly from the "gun-eye" view.  As far as I can tell, the Floater on the screenshot was partially covered by the edge of the roof. Probably still is.

Offline 7Saturn

  • Colonel
  • ****
  • Posts: 457
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #5 on: January 09, 2018, 10:06:04 pm »
Just take it as it is. This really has been discussed on several occasions and the only way to change it is, to do the required code change on your own. I know, it's annoying (I 100% agree), but there is really no one around who will change it. (No, me neither, as I'm not that well acquainted with C++ to even try and do it.)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #6 on: January 10, 2018, 02:17:27 am »
It seems reasonable to me. It always made sense that the listed chance becomes wrong when the target is partially obscured. I had thought it was simpler, however, that a partially obscured target is either always hit or always missed when the hit chance is over 100%. The truth is, I find, more like what it should be.


I have small concern with some trajectory issues, probably bugs. Sometimes the game seems to think a miss trajectory is a hit, or vice versa--like the 6 shots that went just behind the target I mentioned earlier. I don't recall as many hits that should have been misses for two reasons: one, it's hard to tell it really should have been a miss, and two, we're just too willing to accept it when the game works in our favor. But there have been times when I've had a soldier take quite a few shots from the same position, and repeatedly hit when their hit chance was very low and they weren't very close to the target. I've also seen some shots that don't seem to have had a line of fire and will hit anyway, or shots which the soldier claims don't have a line of fire but still hit when they are told to fire anyway. Usually these can be blamed on loftempset bugs or shortcomings, but sometimes I feel really convinced that the system doesn't always distinguish a hitting trajectory or a missing trajectory correctly.

I am curious: do some units have weird hitboxes that can make a hitting shot miss? If so, that's probably a good thing. I would then wonder if a sufficiently high number above 100% accuracy can help guarantee an actual target hit if such a trajectory is available, or is it possible-with some hitboxes-for a higher accuracy to have a lower chance to hit? (Imagine a unit that was a circle, a central hit is a miss.) Ideally we want the first option, not the second.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #7 on: January 10, 2018, 07:49:47 am »
here's what the hitboxes look like to the engine: cylinders.
the yellow 2x2 one is an xcom tank, and the purple one is a floater.
the green one in the middle is a street light, geometry gets slightly more detailed 3d representation.
i can't speak for mods, but the aliens in xcom are solid masses.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #8 on: January 20, 2018, 03:17:13 am »
At this point I think the sanest thing would be to have a special case where : If chance to hit is > 100%, and there is no obstruction : let's skip the 3D physics. Fire the projectile in a special way which ignores the geometry, and hits only the target.
The "line of fire" algorithm is certainly not perfect, but at least the actual shooting will be more consistent with it.

Offline 7Saturn

  • Colonel
  • ****
  • Posts: 457
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #9 on: January 20, 2018, 10:25:54 am »
Now they will tell you, that the value shown ingame is not »percent«, so there is no 100%. Although of course pretty much every player perceives it this way..

Offline heu3becteh

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #10 on: June 08, 2018, 03:40:20 pm »
May the distinction between 101% and 143% be meaningful in some cases?
Over 100% is confusing and just defies the meaning of percent (fraction of 100), I believe it could just be capped at 99% (or 100%, if it absolutely hits when not partially obstructed?), showing that value when >99% too. Or drop the % symbol...
I was surprised too when >100% shot have missed several times.
It does not bother me personally much though.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #11 on: June 08, 2018, 03:45:25 pm »
The distinction between 101% and 143% is meaningful only in that 143 is greater than 109 - all numbers 110 and above act like 110 for the sake of calculating trajectories.  Meridian's post covers why 110+ shots miss and will always miss in the same circumstances.

Offline Player701

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #12 on: July 30, 2018, 06:12:21 pm »
From what I've just read above, I can understand the "%" is misleading. However, I still can't believe the following case is not a bug... try out the attached save file (using OXCE+ build 2018-07-29). Aimed shots seem to pass right through the floater, as if he were a ghost or something. I think I've had it happen before with aliens standing in the exact same position (one square away from an abductor's entrance hatch) and trying to hit them from the side. This simply doesn't look like it can't be a bug... from a (mostly) casual player's point of view, at least.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9106
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #13 on: July 30, 2018, 11:17:04 pm »
I'll check... it may take a few days.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #14 on: July 31, 2018, 06:23:10 am »
I have also seen many shots switch occlusion from behind to front or vice versa while the shot graphic is in the same space as the unit, causing it to appear to travel through them without hitting them. I don't recall this ever happening with any versions of UFO Defense other than openxcom.