;_________________________________________
; UK AT gun
;=========================================


{from "pattern gun"			; L/55 "QF 17-pdr"
	{filling "bulleteng_76"}
	{fireSound "cannon/s3/d1/Shared/Cannon_75to76mm_HV/"}
	{fireSoundclose "cannon/s3/3p/Shared/Cannon_75to76mm_HV"}
	{reloadSound "utility/"}
	("range_210")
	{calibre 76}

	("reload time" seconds(6.5))

	("velocity m/s" ap(884) apcr(1204) he(876) heat(1))
	("armor health" damage(200))
	("armor health custom" shell(ap) damage(200) velocity(884) filler(0))
	("armor health custom" shell(apc) damage(200) velocity(884) filler(0))
	("armor health custom" shell(apcbc) damage(200) velocity(884) filler(0))
	("76_eng_slope_multipliers")

	("penetration_long" shell(ap) range(210) a(161) b(149) c(132) d(114) e(98))			; AP shot MK.III - VI
	("penetration_long" shell(apc) range(210) a(173) b(152) c(129) d(109) e(92))		; APC shot MK.IV
	("penetration_long" shell(apcbc) range(210) a(176) b(165) c(151) d(139) e(127))		; APCBC shot MK.VII
	("penetration_long" shell(apds) range(210) a(248) b(230) c(210) d(192) e(175))		; APDS shot MK.I; reduction in pen due to yaw issues

	;//("penetration_long" shell(apds) range(210) a(275) b(256) c(233) d(213) e(194))	; APDS shot MK.I, ideal penetration

	{parameters "he2" ;HE/HC reduced
		("velocity" mps(550))
	}

	("accuracy_direct" r1(0.65) range_ap(210) range_he(210) range_heat(210))

	{parameters "apds"	;// custom accuracy for 17pdr APDS as it had big issues With accuracy due to sabot separation and yawing
		{spreading
			;{radiusTable {0 0} {50 1.25} {100 1.75} {140 2.75} {209.99 4.75} {260 10}}
			{radiusTable {0 0} {50 0.65} {100 1.3} {140 2.275} {209.99 3.4125} {260 10}} ;// previous default apds accuracy
		}
	}
}
