local t=.05 local s=1/t local P=(range/bulletSpeed)*s local G=range/P local W=(G*bulletDrop)/100 local f=-math.tan(W/G)
-- Making some calculations based on configurations

local waitBetweenSegments = 0.05
local segmentsPerSecond = 1 / waitBetweenSegments
local numSegments = range / bulletSpeed * segmentsPerSecond
local segmentLength = range / numSegments
local dropPerSegment = segmentLength * bulletDrop / 100
local dropAngle = -math.tan(dropPerSegment / segmentLength)
