Missile weapon combat

Missile Weapon Accuracy
Missile weapons calculate accuracy in a different way that melee combat. Because of the distance, there are multiple factors that play into how accurate a shot will be.

The abstracted formula for accuracy is: $$\text{Accuracy Variance}= \text{Aim Variance} + \text{Weapon Variance} + \text{Flat Variance}$$

Where accuracy variance is the vector in degrees affecting the original trajectory. This means that the farther the projectile travels, the more this variance will affect its path. This formula cannot go below 0. If the answer is negative, it will become 0.

Weapon Variance
Weapon variance is the accuracy attribute on all missile weapons. Counterintuitively, the numeric representation of accuracy has a greater number represent lower accuracy, where 0 accuracy means that it is a perfect shot. For easier calculation, each missile weapon on this wiki also includes the numeric accuracy.

Flat Variance
$$\text{Accuracy} = 2d20 - 21 - \text{AGI mod} - \text{Bonus} $$

The bonus in this formula is a sum of different flags that depending on the attacker, weapon, and target effects:

If ended up above 25 (7.5%), the accuracy is subtracted instead.

Aim Variance
Aim variance is the flat variance added to the distance traveled.

aim variance = flat variance + distance + Bonus + [weapon accuracy, -weapon accuracy]

Projectile Hit
When the projectile actually hits the target, regular damage calculations occur. However, there is a -5 DV penalty. If the target has Swift Reflexes, the penalty will not be inflicted. If the creature is immobile, the DV is set to a flat -100.