(include "\set\small_firearms_accuracy.inc")

;/*=========================*/

(define "burst_short"
	{burst
		{short 2 1}			;// short burst shots on long distance, rand (+-)shots
		{long 6 2}				;// long burst shots on short distance, rand (+-)shots
		{rangeKoef 0.5}			;// rangeKoef * aimRange = max long burst distance
	}
)

(define "burst_medium"
	{burst
		{short 4 1}
		{long 8 3}
		{rangeKoef 0.5}
	}
)

(define "burst_long"
	{burst
		{short 5 1}
		{long 10 3}
		{rangeKoef 0.5}
	}
)

(define "burst_stand"
	{burst
		{short 6 3}
		{long 12 3}
		{rangeKoef 0.5}
	}
)

(define "burst_aa"
	{burst
		{short 12 0}
		{long 25 3}
		{rangeKoef 0.5}
	}
)

(define "burst_aa_quad"
	{burst
		{short 30 0}
		{long 150 3}
		{rangeKoef 0.5}
	}
)

;/*=========================*/

(define "spreading_mounted_low"
	{spreading
		{BurstAccuracy 80 78 76 74 72 70 68 66 64 62 60}
	}
)
(define "spreading_mounted"
	{spreading
		{BurstAccuracy 80 77 74 71 68 65 62 59 56 53 50}
	}
)

(define "spreading_low"
	{spreading
		{BurstAccuracy 100 92 84 76 69 62 56 50 45 40 36 32 29 26 24 22 20 19 18}
	}
)

(define "spreading_medium"
	{spreading 
		{BurstAccuracy 100 85 74 63 53 45 38 32 28 25 22 20 18 17}
	}
)

(define "spreading_high"
	{spreading 
		{BurstAccuracy 100 75 60 46 37 30 25 20 17 15}
	}
)

;/*=========================*/

(define "reload_belt"
	("reload time" seconds(8.5))
)

(define "penetration"
	{projectileDamageTable {20 %0} {100 %1} {155 %2} {250 %3} {400 %4}}
)

(define "armor health"
	{minimumDamageModifier (* 1.0 %damage)}
)

(define "ger_ap_bullets"
	("penetration" args 11.5 5.5 3 2 0) ;// SmK L'spur / ball belts

	{parameters "ap"
		("penetration" args 18 8.8 5.3 2 0) ;// SmK
		("armor health" damage(5))
		{cursorReloading "gun_ap"}
	}
	{parameters "ap2"
		("penetration" args 25.9 12.7 7.7 3 0) ;// SmK(H)
		("armor health" damage(5))
		{cursorReloading "gun_ap"}
	}
)

(define "rus_ap_bullets"
	{parameters "ap"
		("penetration" args 17.8 8.6 4.2 2 0) ;// B-30
		("armor health" damage(5))
		{cursorReloading "gun_ap"}
	}
	{parameters "api"
		("penetration" args 17.8 8.6 4.2 2 0) ;// B-32
		("armor health" damage(6))
		{cursorReloading "gun_api"}
		("human health" damage(100))
	}
)

(define "airborne_mg"
	{range 140 140}
	(mod not "mp"
		{range 300 500}
	)

	{spreading
		{SpreadPower 1.5}
		{BurstRecoveryTime 0.5}
		{BurstAccuracy 100 95 90 85 80}
		{SpreadXYRatio	1}
	}
	{AimingTolerance 20}

	("accuracy_mg_plane")
)