Rate of fire (DX)

Rate of fire (ROF), or rate of attack, is a property of weapons in Deus Ex that pertains to how rapidly the weapon fires or attacks over successive rounds or strikes. This page describes the game mechanics of this property.

Overview
The inventory interface displays a ROF value for non-melee weapons. This value, which is sometimes called the "nominal ROF," is computed as the reciprocal of the ShotTime attribute defined for the weapon, truncated to one decimal places. In general, ShotTime defines a delay in between successive shots or attacks, although whether it actually governs depends on other factors.

However, the nominal ROF displayed in-game is not necessarily the weapon's true rate of fire. The weapon's true rate of fire, also referred to as "actual ROF" in articles on this wiki, depends on not only the ShotTime attribute, but also the attributes of the weapon's attack animation, as well as whether the weapon is "automatic" or non-automatic.

Calculating the actual rate of fire
The actual ROF, in rounds per second (or attacks per second), is computed as follows:


 * Non-automatic weapons: Actual ROF = 1 / Max(ShotTime, FramesAnim / RateAnim + 0.1)
 * Automatic weapons: Actual ROF = 1 / Min(ShotTime, FramesAnim / RateAnim)

Where:


 * Automatic weapons consists of the pepper gun, assault rifle, assault shotgun, and flamethrower, while all other weapons listed below are non-automatic. A weapon is considered to be "automatic" or "non-automatic" based on the internal property "bAutomatic."
 * ShotTime is an internal attribute of weapons that defines a delay period in number of seconds. The ShotTime attribute of each weapon is listed in the table below.
 * FramesAnim is the value of "NUMFRAMES" defined for the weapon's attack animation as specified in the DeusExItems.u package. The attack animation is Shoot for ranged weapons and Attack, Attack2, and Attack3 for melee weapons.
 * RateAnim is the value of "RATE" defined for the weapon's attack animation. The factor "FramesAnim / RateAnim" has units of seconds and is listed under the "Fr.Rate" column in the table below.
 * The "0.1" factor is a "tween-time" duration that is specified in the game files. For non-automatic weapons, this factor lengthens the overall animation by 0.1 seconds; the overall animation length with the 0.1 sec factor included is listed under the "overall" column in the table below.
 * The "Max" and "Min" functions respectively indicate taking the larger or smaller of the two values. The output of this computation is shown in the "actual delay" column in the table below.

"Hand-to-hand" weapons
Weapons that have the "hand-to-hand" attribute (which include all lethal low-tech skill weapons plus the baton) have three possible attack animations (Attack, Attack2, and Attack3), one of which is selected depending on a random roll at probabilities of 33%, 33%, and 34, respectively. For some weapons, the three attack animations may have different respective number of frames and/or animation rates (resulting in different attack rates depending on which specific animation is selected).

Weapons that have animations of different attributes are given three separate entries in the table below, and their "actual ROF" is computed based on the individual actual delays weighted by the above probability factors.

Legend

 * A superscript "A" indicates that the weapon is automatic.
 * An additional entry of "(1.0)" in the ShotTime column indicates that the weapon's default ShotTime is overridden with a value of "1.0" when loaded with a selectable projectile ammo. In practice, this only affects the assault rifle when it is loaded with 20mm HE ammo. In the case of the Assault Rifle, the automatic property is disabled when it is loaded with the HE ammo.
 * A dash (–) in the "nominal ROF" column indicates that no ROF is displayed in the in-game inventory interface.
 * A checkmark (✓) indicates that the nominal ROF matches the actual ROF, notwithstanding decimal precision. This occurs when the actual ROF is governed by the ShotTime attribute and not by the animation attributes.
 * * The firing of 20mm HE rounds does not use any animation.
 * ** The GEP Gun has a magazine size of 1 and must reload after each shot. Therefore, a rate of fire is not directly applicable to this weapon.