Firing Accuracy Testing

From UFOpaedia
Revision as of 09:02, 12 November 2006 by MikeTheRed (talk | contribs) (New page but it's getting late)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page is a scratch page re: testing how Firing Accuracy works. Results will be summarized back to relevant pages when done. Page initiated by User:MikeTheRed, but anyone is welcome to jump in. This is an informal page.

Notes & Nomenclature:

  • FFA is Final Firing Accuracy - the quoted percent seen when about to fire a weapon. Otherwise, there is soldier FA and weapon FA, plus other factors as seen in Accuracy formula and Firing Accuracy. For this work, only soldier and weapon accuracy have been hacked/tested, unless otherwise noted.
  • All testing used Autofire, unless otherwise noted.


Background

There's been a lot of conjecture about Firing Accuracy on the wiki and in X-COM forums. I couldn't recall much actual testing, so here we go.

  • Soldiers can have FA from 40 to 125.
  • Common weapons have the following FA:
Weapon         Auto  Snap Aimed
Heavy Plasma    50    75   110
Std. Rifle      35    60   110
Laser Rifle     46    65   100
Std. Pistol     --    60    78
Laser Pistol    28    40    68

Here are some relevant bytes to hack (also see BombBloke's Map Editor). "Max" means a large number; "z" (122) is the largest single-keystroke value:

UNITREF.DAT

Offset   Description
  23     Firing Accuracy. Decreased by injury, so heal all your soldiers.
  12     Current TUs - 250 for soldiers, 0 for aliens
  25     Base TUs - 99 for soldiers, 0 for aliens
  35     Energy Recharge - Max all
  15     Current Energy - Max all
  27     Base Energy - Max all
  45     Energy Usage - Max all
 18-22   Current Armour, F/L/R/B/U - Max all so nobody gets hurt.
 29-33   Base Armor - Max for all
 63-68   Fatal Wounds - Heal everybody
  81     FA (hits) counter - Make sure it's zero
  57     Psi strength - Aliens to 0, soldiers maxxed
  37     Psi skill - Same thing
  13     Current health - Set to Base Health. (You are injured if Current Health < Base Health.)
  26     Base health
  17     Strength - If you want to carry a lot, eat yer spinach.


Test 1: Benchmark

I chose a middling FFA, based on relevant stats:

Bleh, it's getting late. Much more to come - MikeTheRed 01:02, 12 November 2006 (PST)