Other > Survival Guides / Game Help
PE, Gun Skill and % Chance to Hit
Atom:
http://fonlinedocs.netii.net/tohit2.c
A pseudocode version of the to-hit algorithm (it's too long to call it "formula"), as reversed from the FO2 executable.
The notion of long rangedness, scope rangedness and accuracy is based on the weapon perk, a hidden property of weapon present in FO2 (proto offset 0x65).
The following are not implemented in Fonline, due to engine constrains: light level bonus/malus (and hence Night Sight weapon perk), multihex critters blocking the line of fire, difficulty settings (obviously).
Archvile:
--- Code: ---if (attack_is_ranged) tohit+=location_penalty; // which is negative
else tohit+=location_penalty/2;
--- End code ---
What is this location penalty?
--- Code: --- if (attacker_is_player) dist-=(perception-2)*distmod1; // player nerfed
else dist-=perception*distmod1;
--- End code ---
Which is the case in FOnline?
KillerAnt:
Are my calculations correct? I want to know how much small gun skill I need to be able to get 95% to hit with a regular shot at maximum range with for example a .223 pistol.
If this is the formula: to hit%= skill-(PE-2)*8-4*distance-(AC target +AC ammo modifier)
Than to use a .223 pistol at 30 hexes, I have 6 PE, against a target with 10 AC is (My skill in sg is X):
if 223 pistol is not considered a long range weapon:
95= X+(PE-2)*8-4*30-(10-20) --->X=95-4*8+120-10=173
and if 223 pistol is considerd a long range weapon (+26 hexes):
X=95-4*16+120-10=141
Is this correct or is my math skills corrupt? I need 141 to be able to hit at max range with a .223 pistol?
Crazy:
.223 is not a long range weapon.
Drakonis:
--- Quote from: KillerAnt on May 18, 2010, 03:50:05 pm ---Are my calculations correct? I want to know how much small gun skill I need to be able to get 95% to hit with a regular shot at maximum range with for example a .223 pistol.
If this is the formula: to hit%= skill-(PE-2)*8-4*distance-(AC target +AC ammo modifier)
Than to use a .223 pistol at 30 hexes, I have 6 PE, against a target with 10 AC is (My skill in sg is X):
if 223 pistol is not considered a long range weapon:
95= X+(PE-2)*8-4*30-(10-20) --->X=95-4*8+120-10=173
and if 223 pistol is considerd a long range weapon (+26 hexes):
X=95-4*16+120-10=141
Is this correct or is my math skills corrupt? I need 141 to be able to hit at max range with a .223 pistol?
--- End quote ---
remember that .223 ammo has -20 AC
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version