Weapons that show "N/A" for all reload values have dynamic reload times. See reload mechanics page for more information.
random_uniform(-recoilLeft, recoilRight)to horizontal aim (yaw), positive being clockwise.
CurrentRecoil = Current amount of recoil (either ver. or hor.) RecoilDecrease = Weapon's recoil decrease value DeltaTime = Time since last logical frame (seconds) TimeSinceLastShot = Time since last fired shot (seconds) C = Some constant (approx. 5.0) RecoilTerm = ((abs(CurrentRecoil) / 0.5)^0.6 + .001) Decrease = RecoilTerm * RecoilDecrease * DeltaTime * TimeSinceLastShot^0.5 * C NewRecoil = (CurrentRecoil - Decrease) if CurrentRecoil > 0 else (CurrentRecoil + Decrease)
rand1 = rand(0,1) rand2 = rand(0,2*PI) horizontal_dispersion = rand1^a * spread * cos(rand2) vertical_dispersion = rand1^a * spread * sin(rand2)
a = 0.5for all other weapons than shotguns. Shotguns use
a = 1.0.
See separate reload mechanics page for the information.