Jump to content

Talk:Chance to Hit (EU2012): Difference between revisions

From UFOpaedia
No edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A few messy late-night notes whilst I work out in me own mind how this here accuracy system works.
===Archiving===
I'm clearing this talk page off as it otherwise consisted of my (very messy, wall-o-text) "notes to self" about the range formulas. The old version can be found [http://www.ufopaedia.org/index.php?title=Talk:Attack_%28EU2012%29&oldid=43889 here]. Just for quick reference, [[User:Hobbes|Hobbes]] had linked me to this [http://forums.2kgames.com/showthread.php?194691-Guide-Basic-Math-thread this thread], which contains a lot of excellent information that should be incorporated into the wiki sooner or later. - <span style="font-size:xx-small">&nbsp;[[User:Bomb_Bloke|Bomb Bloke]] ([[User_talk:Bomb_Bloke|Talk]]/[[Special:Contributions/Bomb_Bloke|Contribs]])</span> 04:03, 17 January 2013 (EST)


Most guns seem to have the same figures as far as accuracy goes. See how on the [[Weapons_(EU2012)]] page just about all of them have the same range of 27? Yeah, that means they get the same accuracy bonuses. Haven't checked the laser/alloy shotguns yet but a vanilla pistol has the same accuracy as a heavy plasma for eg.
===Merge===
So as I planned out [[Talk:Gameplay_Mechanics_(EU2012)#Restructuring|over here]], I've incorporated everything to do with attack, defence, and accuracy in general and plonked it into one page. So now I've gone and wiped the [http://www.ufopaedia.org/index.php?title=Defense_%28EU2012%29&oldid=42323 old defence article]. I don't believe there's anything on that that isn't covered in this new one, but on the off-chance that anyone spots something of importance there, please go ahead and bring it over. - <span style="font-size:xx-small">&nbsp;[[User:Bomb_Bloke|Bomb Bloke]] ([[User_talk:Bomb_Bloke|Talk]]/[[Special:Contributions/Bomb_Bloke|Contribs]])</span> 01:37, 30 January 2013 (EST)


Bonuses like the light plasma's 10% aim chance are tacked onto the final score. So if a heavy plasma has a 65% chance to hit after adding all bonuses and minusing all penalties, the the lpr would've got 75%.
==="When The Game Cheats..." section out of date, or inapplicable to EW?===
Are we certain this applies to XCOM: Enemy Within? I'm fairly certain I've missed 90% shots, on normal, with four squaddies. [[User:PocketNerd|PocketNerd]] 23:17, 28 December 2013 (EST)
:Well I've missed 100% shots on Classic or Impossible. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 09:42, 29 December 2013 (EST)


Crit chance has nothing to do with chance to hit. A shotgun is as likely to crit at near or far range (assuming it can actually hit something), which is a bit unintuitive when you consider how a real shotgun works...
::Probability is a fickle mistress. [[User:Arrow Quivershaft|Arrow Quivershaft]] ([[User talk:Arrow Quivershaft|talk]]) 12:34, 29 December 2013 (EST)


The pistol foundry crit chance upgrade shows up in the geoscape when viewing weapon info as being 20%. In battle, it doesn't show up at all.
:::I do understand probability. (It's annoying to miss two 95% shots in a row, but considering it's a 1 in 400 chance and you take ''thousands'' of shots in XCOM, it does happen!) Still, the section says "if you have four soldiers or less in play... if you see 84% or above, the shot should always hit." That's demonstrably not true any more, at least not for EW. I'm thinking the section may need to be rewritten, although I'm not sure how to do so without just deleting a lot of information (and possibly looking like vandalism). Maybe, for now, just add a statement that the PA forum post is a year old, far antedating EW, and does not seem to apply to EW? (And can anybody verify whether it still applies to the current build of EU?) [[User:PocketNerd|PocketNerd]] ([[User talk:PocketNerd|talk]]) 11:56, 2 January 2014 (EST)


The pistol foundry aim chance upgrade shows as 10% in the battlescape, but doesn't show in the geoscape. The scope crit upgrade doesn't appear to work at all.
::::I'm not quite sure what Bomb Bloke was actually trying to write when he wrote that so I'm going to hide it until someone can make some sense out of it. --[[User:Ditto51|Ditto51]] ([[User talk:Ditto51|talk]]) 12:06, 2 January 2014 (EST)
 
:::::As far as it is known the Bonus for Easy/Normal hasn't been changed, since that would have a major effect on the game difficulty. Unless there's a specific reference online that it has been changed, all of the current info still points for it still being in place. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 16:47, 2 January 2014 (EST)
Do alien defense bonuses show up prior to researching them? Would hope so, otherwise the displayed shot percents are messed up... Which they are for normal/easy mode anyways, apparently you get a hidden bonus on those modes which gets larger with each consecutive miss you make.
::::::I've been playing around with a single soldier campaign on easy difficulty and I'm pretty sure that the huge bonuses mentioned in the article (+75% defense, +45% aim) do not apply. It's possible that they only get added when you start losing soldiers and drop below 4, but if you start out with one soldier you don't get these. --[[User:DerAva|DerAva]] ([[User talk:DerAva|talk]]) 05:47, 1 April 2014 (EDT)
 
:::::::Yeah, just checked the CalculatedOdds function in the game code and it has a variable called GetNumAliveAndWell when checking for the number of soldiers in the squad. I can't find out that what that function checks exactly but from the name and your report it would seem logical that the bonuses only apply after you started taking casualties. Also, it would be very easy to get the Lone Wolf achievement by only bringing 1 soldier on Easy. I'll change the page text. [[User:Hobbes|Hobbes]] ([[User talk:Hobbes|talk]]) 11:30, 1 April 2014 (EDT)
A few logged bonuses at different ranges on a flat surface:
 
{| class="wikitable"
!Weapon
!Range Type
!Crit
!Angle
!0
!1
!2
!3
!4
!5
|-
!Pistol
|Medium (27)
|0
!Straight
|41
|37
|32
|28
|23
|
|-
!Pistol
|Medium (27)
|0
!Diagonal
|41
|35
|28
|22
|16
|9
|-
!Shotgun
|Short (10)
|20
!Straight
|56
|52
|44
|40
|32
|
|-
!Shotgun
|Short (10)
|20
!Diagonal
|56
|48
|40
|32
|24
|16
|-
|}
 
(Range 0 acquired by placing a trooper where a thinman is scripted to drop, first Slingshot mission has such a position that's really easy to get to).
 
Thinking of it as a penalty system, you get something like -4.5 for every square you are away from the target, so eg max bonus of 41 - 4.5 = 36.5 (rounded up to 37), -4.5 = 32, -4.5 = 27.5 (rounded up to 28), etc. This bonus can't go negative, so once you move out of range to get it at all, your accuracy isn't really hindered by moving further back. Likewise, if you're too far back to get the bonus, if you don't move far enough forward you STILL won't get any bonus.
 
Figures suggest that Pythagoras is used to work out the distance as need be. So moving away on a diagonal line (one tile on each axis), multiply 4.5 by 1.4 (add the squares of one to each other to get two, then take the root of that), penalty becomes 6.3. 41 - 6.3 = 35.7 (should be 34.something), -6.3 = 29.4 (should be 27.something), -6.3 = 23.1 (should be 21.something), -6.3 = 16.8 (should be 15.something)... this suggests range 0 is really a 40.something bonus, not an exact 41. Probably 40.6 or somesuch.
 
Shotgun figures don't make a lot of sense moving along one axis, but diagonally (along two axises) it looks like just -8 each time. -5.7 along the straight then? Still doesn't add up, might've somehow mislogged. Shotgun gets a penalty at longer ranges. Not sure about other guns, you probably get out of range before that happens.
 
- <span style="font-size:xx-small">&nbsp;[[User:Bomb_Bloke|Bomb Bloke]] ([[User_talk:Bomb_Bloke|Talk]]/[[Special:Contributions/Bomb_Bloke|Contribs]])</span> 09:10, 13 January 2013 (EST)
 
:BB, check this link on the Multiplayer section of the 2K forums: [[http://forums.2kgames.com/showthread.php?194691-Guide-Basic-Math-thread]]. There's also a link there to a Google Docs table where someone already did that math, I've been wanting to add that but I haven't had time yet. [[User:Hobbes|Hobbes]] 17:46, 13 January 2013 (EST)

Latest revision as of 15:30, 1 April 2014

Archiving

I'm clearing this talk page off as it otherwise consisted of my (very messy, wall-o-text) "notes to self" about the range formulas. The old version can be found here. Just for quick reference, Hobbes had linked me to this this thread, which contains a lot of excellent information that should be incorporated into the wiki sooner or later. -  Bomb Bloke (Talk/Contribs) 04:03, 17 January 2013 (EST)

Merge

So as I planned out over here, I've incorporated everything to do with attack, defence, and accuracy in general and plonked it into one page. So now I've gone and wiped the old defence article. I don't believe there's anything on that that isn't covered in this new one, but on the off-chance that anyone spots something of importance there, please go ahead and bring it over. -  Bomb Bloke (Talk/Contribs) 01:37, 30 January 2013 (EST)

"When The Game Cheats..." section out of date, or inapplicable to EW?

Are we certain this applies to XCOM: Enemy Within? I'm fairly certain I've missed 90% shots, on normal, with four squaddies. PocketNerd 23:17, 28 December 2013 (EST)

Well I've missed 100% shots on Classic or Impossible. Hobbes (talk) 09:42, 29 December 2013 (EST)
Probability is a fickle mistress. Arrow Quivershaft (talk) 12:34, 29 December 2013 (EST)
I do understand probability. (It's annoying to miss two 95% shots in a row, but considering it's a 1 in 400 chance and you take thousands of shots in XCOM, it does happen!) Still, the section says "if you have four soldiers or less in play... if you see 84% or above, the shot should always hit." That's demonstrably not true any more, at least not for EW. I'm thinking the section may need to be rewritten, although I'm not sure how to do so without just deleting a lot of information (and possibly looking like vandalism). Maybe, for now, just add a statement that the PA forum post is a year old, far antedating EW, and does not seem to apply to EW? (And can anybody verify whether it still applies to the current build of EU?) PocketNerd (talk) 11:56, 2 January 2014 (EST)
I'm not quite sure what Bomb Bloke was actually trying to write when he wrote that so I'm going to hide it until someone can make some sense out of it. --Ditto51 (talk) 12:06, 2 January 2014 (EST)
As far as it is known the Bonus for Easy/Normal hasn't been changed, since that would have a major effect on the game difficulty. Unless there's a specific reference online that it has been changed, all of the current info still points for it still being in place. Hobbes (talk) 16:47, 2 January 2014 (EST)
I've been playing around with a single soldier campaign on easy difficulty and I'm pretty sure that the huge bonuses mentioned in the article (+75% defense, +45% aim) do not apply. It's possible that they only get added when you start losing soldiers and drop below 4, but if you start out with one soldier you don't get these. --DerAva (talk) 05:47, 1 April 2014 (EDT)
Yeah, just checked the CalculatedOdds function in the game code and it has a variable called GetNumAliveAndWell when checking for the number of soldiers in the squad. I can't find out that what that function checks exactly but from the name and your report it would seem logical that the bonuses only apply after you started taking casualties. Also, it would be very easy to get the Lone Wolf achievement by only bringing 1 soldier on Easy. I'll change the page text. Hobbes (talk) 11:30, 1 April 2014 (EDT)