Damage rate vs distance

From UFO:AI
Jump to navigation Jump to search

Correct at 2.2_Jan_11_2008

Compares direct fire weapons (excludes grenade launcher, for example).
MDRx,y is the mean damage rate for an accuracy of x at a distance of y map squares
calc uses the spread modified by firedef.crouch (ie assumes the actor is crouching).
standard deviation in distance units, sigma =(pi/180)×(range)×0.5×{spread+(1-accuracy/max_skill)}×crouch
see G_ShootSingle() from g_combat.c
modelling target as 24×56 rectangle (see modelling article), this will be a slight overestimate.
hit probability, p=erf(recx×sqrt(2)/(4×sigmax))×erf(recy×sqrt(2)/(4×sigmay))
where erf() is the error function (integral of a gaussian).
Summary of weapon tables.

gunammo typefire modeMDR50,8
(HP/TU)
MDR50,16
(HP/TU)
MDR50,32
(HP/TU)
MDR50,64
(HP/TU)
MDR50,128
(HP/TU)
Assault Rifle Assault Rifle Magazine Snap Shot 5.0 4.5 2.8 1.1-
3-Round Burst 9.5 8.6 5.4 2.1-
Full-Auto 15.8 13.7 7.9 2.8-
Aimed shot 2.6 2.5 2.0 1.1-
Minigun Minigun Magazine 5-Round Burst 5.8 3.8 2.0--
Full-Auto 17.9 10.3 4.2--
Full-Auto Sweep 9.3 4.7 1.9--
Machine Gun Machine Gun Magazine Short Burst 11.2 8.7 4.3 1.4-
Full-Auto 16.5 12.8 6.3 2.0-
Sniper Rifle Sniper Rifle Magazine Snap Shot 7.5 7.5 7.3 5.5 2.6
Aimed Shot 5.3 5.3 5.2 4.7 2.8
Headshot 5.8 5.8 5.8 5.1 3.1
7.62mm Pistol 7.62mm Pistol Magazine Snap Shot 5.0 4.7 3.1--
3-Round Burst 9.5 8.6 5.4--
Aimed Shot 3.9 3.7 2.6--
Machine Pistol 4.2mm MP Magazine Snap Shot 3.7 3.2 1.9--
3-Round Burst 7.3 6.2 3.5--
Full-Auto 9.2 7.7 4.1--
Submachine Gun SMG Magazine 5-Round Burst 12.2 11.2 7.2--
Full-Auto 19.2 17.4 10.9--
Riot Shotgun Saboted Slugs Single Shot 4.6 4.2---
3-Round Burst 7.1 5.3---
Flechette Shells Single Shot 10.8----
3-Round Burst 15.7----
Full-Auto 18.4----
Shotgun Flechette Shells Single Shot 9.9 7.6 3.7--
Double Shot 11.1 6.8 2.6--
Micro Shotgun Flechette Shells Single Shot 11.8----
3-Round Burst 15.8----
Flamethrower C90 Canister Candlelight 17.4----
Inferno 21.6----
Inferno Sweep 8.4----
Rocket Launcher HE Rocket Aimed Shot-----
IC Rocket-----
Grenade Launcher 25mm Flechette Grenades Single Shot 10.8----
3-Round Burst 14.2----
Bolter Rifle Bolter Rifle Magazine Snap Shot 8.6 7.5 4.4 1.6 0.4
Cannonade 14.2 11.5 6.0 2.0 0.5
Precision Shot 5.8 5.8 5.1 3.1 1.1
Laser Pistol D-F Cartridge Wave Fire 7.9 7.9 7.1--
Pulsed Fire 9.6 9.6 8.7--
Laser Rifle D-F Cartridge Wave Fire 7.1 7.1 6.7 4.6-
Pulsed Fire 7.9 7.9 7.4 5.1-
Heavy Laser D-F Cartridge Wave Fire 5.2 5.2 4.8 3.1-
Pulsed Fire 5.8 5.8 5.3 3.5-
Particle Beam Pistol Pistol Particle Accelerator Snap Shot 7.6 7.3---
Rapid Shots 13.1 10.6---
Particle Beam Rifle Rifle Particle Accelerator Snap Shot 8.1 7.6 5.2 2.2 0.6
Aimed Shot 5.6 5.5 4.4 2.3 0.8
Repeat Fire 13.8 12.1 7.1 2.6-
Particle Beam Cannon Cannon Particle Accelerator Snap Shot 7.9 7.5 5.2--
Rapid Shots 18.7 16.2 9.4--
Unrestricted Blast-----
Plasma Pistol Plasma Pistol Charger Snap Shot 6.0----
Burst 9.3----
Plasma Rifle Plasma Rifle Charger Snap Shot 5.1 4.7---
Aimed Shot 3.4 3.3---
Burst 7.8 7.2---
Plasma Blaster Plasma Blaster Charge Snap Shot 6.0 5.4 3.4--
Ball-----
Burst 15.3 12.4---