Class_name = "CTurret"
object_name = "_GAZ-MM-72K_T0"

AimingRay=true

[COCKPIT_LIMITS]
x= -0.1, 0.1
y= -0.2, 0.2
z= -0.1, 0.1
[END]

[OPEN_COCKPIT_LIMITS]
x= -0.1, 0.1
y= -0.2, 0.2
z= -0.1, 0.1
[END]

VisualImage=0,"graphics\Vehicles\_GAZ-MM\_GAZ-MM-72K-C1-low.mgm",33
VisualImage=1,"graphics\Vehicles\_GAZ-MM\_GAZ-MM-72K-C1.MGM",8
CollisionBody="graphics\Vehicles\_GAZ-MM\_GAZ-MM-72K-C1.col"
HitBody="graphics\Vehicles\_GAZ-MM\_GAZ-MM-72K-C1_DetColl.col"
KeepNetworkImages=true	//high-poly cockpit will be visible from other workstations of the object

//VisualImage=ID,model_or_effect,cast_shadows[,debris_effects]
//ID:					INT:	0 - visible everywhere, 1 - visible inside, 2 - visible outside
//model_or_effect:		STRING:	path to model file (mgm) of effect file (epl)
//cast_shadows: 		BOOL/INT:	cast shadows from object or not (cast_shadows=Attr1+Attr2+...+AttrN)
//						VIF_CASTSHADOWS=1,
//						VIF_BLENDMASKLAST=2,
//						VIF_ALWAYSONTOP=4,
//						VIF_FLATAMBIENT=8,
//						VIF_DONTCAST_COCKPIT_SHADOWS=16,
//						VIF_GRASS_CAPSULES=32
//[,debris_effects]:	BOOL:	optional parameter, show effects on object debris or not

TransparentCockpit=true	// If false - Attached bot will be not rendered if cockpit hatch is closed (default =true)

ImageAttrs="IA_NOCLIP","IA_SLOW_DECALS"
EnabledDecals=true	//      ,    

LocalPosRot=true
ConvexAnimThreshold=0.000001	//  

VisualRadius=5.0

mp_site=true

IsCritical=true	//true -       

TurretType = 11	//    ,    (, )
//11 -  
//12 -  
//13 -  

[attach=0]
	object = "LuaScripts/WorldObjects/Bots/BotTankGAZMM72K_Gunner.txt"
	position = 0,0.0,0.0
	rotation = 0,180,0
	convex="bot_pos",false	//false: Attach object relative to "bot_pos" convex (not absolute)
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCameraByAttach.txt"
	convex="gunsight0",false	//false: Attach object relative to convex (not absolute)
[end]

[attach=3]
	position = 0.0, 0.0, 0.0
	rotation = 0,0,0
	object = "LuaScripts/WorldObjects/TurretCameraByAttach.txt"
	convex="gunsight1",false	//false: Attach object relative to convex (not absolute)
[end]

[attach=4]
	position = 0.0, 0.0, 0.0
	rotation = 0,0,0
	object = "LuaScripts/WorldObjects/Vehicles/Sights/VisorCameraByAttach.txt"
	convex="gunsight2",false	//false: Attach object relative to convex (not absolute)
[end]

//AttachedCameras = "LuaScripts\WorldObjects\fixcameras\Vehicles\_GAZ-MM-72K_T.txt"

TargetingScript = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_GER_50_CV.bin"

SoundScript="LuaScripts/Sound/Vehicles/GAZ-MM_Turret_Main.cfg"

Script="LuaScripts\ObjectScripts\Vehicles\_GAZ-MM-72K_T0.sc"

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)

AimAngleLimit=10,40

DirectControl=true
DirectAimSpeed=1
DirectAimPower=3

[TurretsPos=0]
	position = 0.0, 0.0, 0.0
	PosMoveArg = 21000
	SeatArg=22113
	SeatUpTime=4.0
	SeatDownTime=4.0

	LockTurretCamera = false
	KeepUserDirection = true	// Keep direction after user have switched to another pos or cockpit

	BotRotaionValueZ = 0.0
	LegsParameter = 0.0
	BotMinFirstAngle  = -90
	BotMaxFirstAngle  = 90
	BotMinSecondAngle = -90
	BotMaxSecondAngle = 90
	FirstToSecondInterp = 0.0

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -180.0
		SectorAngleMax = 180.0
		DefaultPos = 0.5

		AngularSpeed   = 37.89
		ManualAngularSpeed = 37.89	//19     , 2   
		PrecisionAngle = 5
		MaxInclineAngle = 20

		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 10020
		AnimationArgComNum = 20	//      DirectControl (=AnimationArg  DirectControl=false, =0.5  DirectControl=true)
		ManualControlAnimationArgNum = 220
//		NetworkSend = false	//     CockpitArg

		Point = 0.20271, 0.58029, 0.0
		Axis = 0.0,1.0,0.0

		IsCycled = true

		SoundNumber = 2

		HaveManualControl=true
		HaveElectroControl=false
		HaveHydraulicControl=false
		HaveSelfPowered=false
	[end]

	[Joint=1]
		SectorAngleMin = -85.0
		SectorAngleMax = 10.0
		DefaultPos = 0.758316

		AngularSpeed   = 22.49	//12.0365      , 3    (12.67   100  )
		PrecisionAngle = 2

		AnimationArgMin = 0.263889
		AnimationArgMax = 0.527778

		AnimationArgNum = 301
		ManualControlAnimationArgNum = 340

		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

		SoundNumber = 1

		GunMovement=true

		NoMoveFar=true	// Block rotation when the target is in the rear henisphere
	[end]

	[GunAnimation=0]
		FireArg = 60320
		CockingArg = 9002
	[end]

//	FireLightArg=60220

	relativeBotStand = 0.0, 0.0, 0.0 // not used for tank
	relativeBotSit = 0.0, 0.0, 0.0 // not used for tank
	relativeBotDead = 0.0, 0.0, 0.0 // not used for tank
	TransitionStandPower = 1 // not used for tank
	TransitionDeadPower = 1 // not used for tank

	BotAttachJointId = 0
	BotFirstAnimJointId = 1
	BotSecondAnimJointId  = 0

	SightPosition = 0.0, 1, 0.0

	defaultDirection = 1.0, 0.230133, 0.0
	AimSector=-180, 180, -10, 85	//AI aim limits: left, right, down, up

	CamDisplacement = 0.20534,-0.01075,-0.32777
[end]

[TurretsGun=0]
	LinkedTurretPos = 0
	//Convex = "#gun"
	DGroup="MainGun"
	DamageProp = 0.001
	AC = true //    tc_fire,  false
	MG = false //    tc_fire_secondary,  false

	ShowAutoReloading = false //   GUI      ( )

	Displacement = 2.40237, 0.0, 0.00078
	GunsightPosition = 0.0, 0.0, 0.00078
	GunType = "LuaScripts/WorldObjects/Weapons/_72K.txt"
	ParallaxDistance = 1000000.0

	ReLoadingStagesTime = 0.001, 0.001, 0.001, 0.001

	ReservedMagazinesArgIdx = 9008
//	FlashAnimationArgIdx = 60320
	TriggerPositionArgIdx = 9001
	RoundsInMagazineArgIdx = 9009
	AmmunitionMovingArgIdx = 9005
	HideAmmunitionArgIdx = 9010
//	ReLoadingArgIdx = 9011
	AzimuthDeviationArgIdx = 9006
	ElevationDeviationArgIdx = 9007
//	FiringPinPositionArgIdx = 0			// not used
	DrawAnimationArgIdx = 1, 9004		//   
	DrawAnimationArgIdx = 2, 9003		// 
//	DrawAnimationArgIdx = 3, 9002		//  

	Deviation = 0.67, 2.1, 0.0, 0.01, 0.03, 0.06  //0.8333   , 3.3333   ,    .  840/
	// /:
	//-      , /
	//-      , /
	//-       (0.9 -    0.1  ,   )
	//-    
	//-     
	//-      100/

	NumOfAnimations = 4

//	BushCoord = 0.435, -0.561, 0
//	BushSpeed = 1, -1, 0

//	BushConfig = "LuaScripts/WorldObjects/Trash/Batch_case12-20mm.txt"

	SoundNumber = 3
[end]

// Weapon Modes (unlocks). Tanks uses them just as filter.

//[WeaponMode0]
//	WMname="default"
//	WMgroup="default"
//[end]
//[WeaponMode1]
//	WMname="CAVITY"
//	WMgroup="1"
//[end]
//[WeaponMode3]
//	WMname="HVAP"
//	WMgroup="3"
//[end]
//[WeaponMode5]
//	WMname="HE"
//	WMgroup="5"
//[end]





////////// AMMUNITIONS (PAYLOADS)


[Ammunition0]	//  (default, duplicates one of 2-types payload)
	name="0-72K-APHE-147"
	WeaponModes=-1,-2
	GunAmmunition0=2
[end]
[Ammunition1]
	name="0-72K-APHE-147"
	WeaponModes=12
	GunAmmunition0=2
[end]
[Ammunition2]
	name="0-72K-HE-147"
	WeaponModes=-1,2
	GunAmmunition0=0
[end]
[Ammunition3]
	name="0-72K-AP-147"
	WeaponModes=-2,1
	GunAmmunition0=1
[end]
[Ammunition4]
	name="0-72K-APHE-77"
	WeaponModes=12
	GunAmmunition0=5
[end]
[Ammunition5]
	name="0-72K-HE-77"
	WeaponModes=-1,2
	GunAmmunition0=3
[end]
[Ammunition6]
	name="0-72K-AP-77"
	WeaponModes=-2,1
	GunAmmunition0=4
[end]

////////// GUN BELT AMMUNITIONS

[GunAmmunition0]
	MaxRoundsInMagazine = 7
	RoundsInMagazine = 7
	MaxReservedMagazines = 20
	ReservedMagazines = 20
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition1]
	MaxRoundsInMagazine = 7
	RoundsInMagazine = 7
	MaxReservedMagazines = 20
	ReservedMagazines = 20
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition2]
	MaxRoundsInMagazine = 7
	RoundsInMagazine = 7
	MaxReservedMagazines = 20
	ReservedMagazines = 20
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.txt"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition3]
	MaxRoundsInMagazine = 7
	RoundsInMagazine = 7
	MaxReservedMagazines = 20
	ReservedMagazines = 10
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition4]
	MaxRoundsInMagazine = 7
	RoundsInMagazine = 7
	MaxReservedMagazines = 20
	ReservedMagazines = 10
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition5]
	MaxRoundsInMagazine = 7
	RoundsInMagazine = 7
	MaxReservedMagazines = 20
	ReservedMagazines = 10
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 1
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_HE.txt"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_25x218_AP.txt"
	GunSightTypeArgValue = 0.0
[end]

SightPos = 0.0, 1.3, 0.0
PositionChangeTime = 0.5
StandDuration = 1.0
SitDuration = 1.0
PreEjectDuration = 1.0
ReloadDelay = 0.1
FreezeOnReload = false
AutoRecharge = true

BotRotaionValueZ = 0	// not used for tank
LegsParameter = 0 // not used for tank

BotMaxSecondAngle = 25.0 // not used for tank
BotMinSecondAngle = -5.0 // not used for tank

BotMaxFirstAngle  = 10.0 // not used for tank
BotMinFirstAngle  = -10.0  // not used for tank

FirstToSecondInterp = 0.0 // not used for tank

GunSightDistanceArg = 9544
GunSightYawArg = 9546
//GunSightTypeArg = 9545
GunSightDistanceAxisDefault = 0.5377
GunSightYawAxisDefault = 0.0

//   ,         
SectorLimits = -170.0, -133.0,  -8.0, 90.0
SectorLimits =  -40.0,   -5.0,   9.0, 90.0
SectorLimits =   -5.0,   +5.0, 12.96, 90.0
SectorLimits =   +5.0,  +40.0,   9.0, 90.0
SectorLimits = +133.0, +170.0,  -8.0, 90.0


// Damage

//BeamHitZeroArmor=true //      m_fArmor  m_fArmorSides ( ,       )
//LifeRate=30000
//LifeRateFrag=30000 
//Firing=0.005
//Armor=30
//[ArmorBox]			//    ,     ,   ,     Armor=
//	FovH=90			//          ,     ,  ArmorFront
//	FovV=150		//          ,     ,  ArmorFront
//					//  5        
//	ArmorFront=80
//	ArmorBack=30
//	ArmorTop=10
//	ArmorBottom=30
//	ArmorRight=30
//	ArmorLeft=30
//[end]

//maxDamageArgValue=0.98
//DamageArg=5000
damageablePart=""

IsCritical=true	//true -       
LifeK=400			//         ( -  )

KillChildObjectsOnParentDeath = true

SphereHitProtection=0	//       

////	Energy loss for bullet travel through HitBody convices	////

energyloss="",true,1,200	//     , true -       -,       ,        

//Damageable parts
energyloss="#^1gun1",true,10,20000			//Main gun barrel
energyloss="^1gun2",true,10,20000				//Main gun breech
energyloss="#gun3",true,5,10000				//Main gun loader
energyloss="turretGN",false,5,20000			//Turret traversing mechanism
energyloss="turretVN_01",true,5,20000		//Gun elevation mechanism parts
energyloss="turretVN_02",true,5,20000		//Gun elevation mechanism parts
energyloss="^1turretVN_03",true,5,20000		//Gun elevation mechanism parts
energyloss="turretVN_04",true,5,20000		//Gun elevation mechanism parts
energyloss="electric",true,1,15000			//Electric battery unit
energyloss="#^1sight1a",false,2,10000			//Iron sight
energyloss="#sight1b",false,2,10000			//Iron sight
energyloss="#sight2",false,1,1				//Collimator sight, arg 1050

//Armour
energyloss="#^1platform",false,2,1		//Gun mount details, 3mm, K=0.5
energyloss="#^1front",false,2,1			//Gun mount details, 3mm, K=0.5
energyloss="#^1left_1a",false,2,1			//Gun mount details, 3mm, K=0.5
energyloss="#^1left_1b",false,2,1			//Gun mount details, 3mm, K=0.5
energyloss="#^1right_1",false,2,1			//Gun mount details, 3mm, K=0.5
energyloss="#^1right_2a",false,4,1		//Gun mount details, 6mm, K=0.5
energyloss="#^1right_2b",false,4,1		//Gun mount details, 6mm, K=0.5
energyloss="#^1right_3",false,4,1			//Gun mount details, 6mm, K=0.5
energyloss="#^1shield_1a",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1020, detachable
energyloss="#^1shield_1b",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1020, detachable
energyloss="#^1shield_1c",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1020, detachable
energyloss="#^1shield_2a",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1020, detachable
energyloss="#^1shield_2b",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1020, detachable
energyloss="#^1shield_2c",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1020, detachable
energyloss="#^1shield_1d",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1021, detachable
energyloss="#^1shield_2d",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1021, detachable
energyloss="#^1shield_1e",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1022, detachable
energyloss="#^1shield_1f",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1022, detachable
energyloss="#^1shield_2e",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1022, detachable
energyloss="#^1shield_2f",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1022, detachable
energyloss="#^1shield_2g",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1022, detachable
energyloss="#^1shield_1h",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1023, detachable
energyloss="#^1shield_1i",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1023, detachable
energyloss="#^1shield_2h",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1023, detachable
energyloss="#^1shield_2i",false,5,1		//Gun shield optional armour plate, 5mm, K=1.0, arg 1023, detachable

Armor=2 //  ,    

/////Functional Damage Groups

[DGroup=TurretTurn]		//   _KV1s.txt     DGroup
	IsCritical=false
	LifeK=200
	convex="turretGN",5,5000,"MT_METAL"
	SphereHitProtection=5
	LifeRateFrag=2500
	RepairSpeed=0.008333	// (2 )
	RepairSource=0
	InstantRepair=true
	GuiParam=12, true,true,true
[end]
[DGroup=GunTurn]
	IsCritical=false
	LifeK=100
	convex="turretVN_01",5,5000,"MT_METAL"
	convex="turretVN_02",5,5000,"MT_METAL"
	convex="^1turretVN_03",5,5000,"MT_METAL"
	convex="turretVN_04",5,5000,"MT_METAL"
	SphereHitProtection=5
	LifeRateFrag=2500
	RepairSpeed=0.016667	// (1 )
	RepairSource=0
	InstantRepair=true
	RepairDependsOn="TurretTurn", 0.95
	GuiParam=14, true,true,true
[end]
[DGroup=MainGun]
	IsCritical=false
	LifeK=100
	convex="#^1gun1",10,10000,"MT_METAL"
	convex="^1gun2",10,10000,"MT_METAL"
	convex="#gun3",5,10000,"MT_METAL"
	SphereHitProtection=10
	LifeRateFrag=5000
	RepairSpeed=0.008333	// (2 )
	RepairSource=0
	InstantRepair=true
	GuiParam=15, true,true,true
[end]
[DGroup=SightElectrics]
	IsCritical=false
	LifeK=100
	convex="electric", 1,1000,"MT_METAL"
	SphereHitProtection=1
	LifeRateFrag=500
	DamageArg=5919
	RepairSpeed=0.016667	// (1 )
	RepairSource=0
	InstantRepair=true
	GuiParam=4, false,true,true
[end]
[DGroup=Body]
	IsCritical=true
	LifeK=20
	DamageArg=5000
	MinValidLife=0.02
[end]

//End of Functional Damage Groups
//Graphical Damage Groups:

[DGroup=Sight1]
	IsCritical=false
	LifeK=100
	convex="#^1sight1a",1,2000,"MT_METAL"
	convex="#sight1b",1,2000,"MT_METAL"
	SphereHitProtection=1
	LifeRateFrag=1000
	DamageArg=1051
	RepairSpeed=0.066667	// (15 )
	RepairSource=0
	InstantRepair=true
	GuiParam=11, true,true,true
[end]
[DGroup=Sight2]
	IsCritical=false
	LifeK=100
	convex="#sight2",1,500,"MT_METAL"
	SphereHitProtection=1
	LifeRateFrag=250
	DamageArg=1050
	RepairSpeed=0.066667	// (15 )
	RepairSource=0
	InstantRepair=true
	GuiParam=11, true,true,true
	RepairDependsOn="Sight1", 0.95
[end]

[DGroup=GunShield1]
	IsCritical=false
	LifeK=10
	convex="#^1shield_1a",5,5000,"MT_METAL"
	convex="#^1shield_1b",5,5000,"MT_METAL"
	convex="#^1shield_1c",5,5000,"MT_METAL"
	convex="#^1shield_2a",5,5000,"MT_METAL"
	convex="#^1shield_2b",5,5000,"MT_METAL"
	convex="#^1shield_2c",5,5000,"MT_METAL"
	SphereHitProtection=5
	LifeRateFrag=5000
	DamageArg=1020
	RepairSpeed=0.066667	// (15 )
	RepairSource=4			//     ""
	InstantRepair=true
[end]
[DGroup=GunShield2]
	IsCritical=false
	LifeK=10
	convex="#^1shield_1d",5,5000,"MT_METAL"
	convex="#^1shield_2d",5,5000,"MT_METAL"
	SphereHitProtection=5
	LifeRateFrag=5000
	DamageArg=1021
	RepairSpeed=0.066667	// (15 )
	RepairSource=4			//     ""
	InstantRepair=true
	RepairDependsOn="GunShield1", 0.95
[end]
[DGroup=GunShield3]
	IsCritical=false
	LifeK=10
	convex="#^1shield_1e",5,5000,"MT_METAL"
	convex="#^1shield_1f",5,5000,"MT_METAL"
	convex="#^1shield_2e",5,5000,"MT_METAL"
	convex="#^1shield_2f",5,5000,"MT_METAL"
	convex="#^1shield_2g",5,5000,"MT_METAL"
	SphereHitProtection=5
	LifeRateFrag=5000
	DamageArg=1022
	RepairSpeed=0.066667	// (15 )
	RepairSource=4			//     ""
	InstantRepair=true
	RepairDependsOn="GunShield2", 0.95
[end]
[DGroup=GunShield4]
	IsCritical=false
	LifeK=10
	convex="#^1shield_1h",5,5000,"MT_METAL"
	convex="#^1shield_1i",5,5000,"MT_METAL"
	convex="#^1shield_2h",5,5000,"MT_METAL"
	convex="#^1shield_2i",5,5000,"MT_METAL"
	SphereHitProtection=5
	LifeRateFrag=5000
	DamageArg=1023
	RepairSpeed=0.066667	// (15 )
	RepairSource=4			//     ""
	InstantRepair=true
	RepairDependsOn="GunShield3", 0.95
[end]

[DGroup=FakeParts]	// Fake, to set material for hit decals
	IsCritical=false
	LifeK=1
	convex="#^1left_1a",1,10000,"MT_METAL"
	convex="#^1left_1b",1,10000,"MT_METAL"
	convex="#^1right_2a",1,10000,"MT_METAL"
	convex="#^1right_2b",1,10000,"MT_METAL"
	convex="#^1right_1",1,10000,"MT_METAL"
	convex="#^1right_3",1,10000,"MT_METAL"
	convex="#^1platform",1,10000,"MT_METAL"
	convex="#^1front",1,10000,"MT_METAL"
	SphereHitProtection=1
	LifeRateFrag=10000
	RepairSpeed=0.066667	// (15 )
	RepairSource=4			//     ""
	InstantRepair=false
[end]

[Sights]	//AI will stop aim if all these groups damaged more than assigned level
	SightDGroup="Sight1",0.9
	SightDGroup="Sight2",0.9
[end]

[trashspawner]
	[spawn=0]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldC1.txt"
		Position=-0.41629,-0.24671,0
		Rotation=0,0,180
		convex="gun_elev_dummy",false	//false: Attach object relative to  convex (not absolute)
		SpawnDir=-3,0,0
	[end]
	[spawn=1]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldC2.txt"
		Position=-0.41629,-0.24671,0
		Rotation=0,0,180
		convex="gun_elev_dummy",false	//false: Attach object relative to  convex (not absolute)
		SpawnDir=-3,0,0
	[end]
	[spawn=2]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldHatch1.txt"
		Position=0.21988,0.077374,-0.027923
		Rotation=0,-90,-18.3
		convex="hatch",false	//false: Attach object relative to  convex (not absolute)
		SpawnDir=3,0,-1
	[end]
	[spawn=3]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldHatch1.txt"
		Position=0.21988,0.077374,-0.027923
		Rotation=0,-90,-18.3
		convex="hatch",false	//false: Attach object relative to  convex (not absolute)
		SpawnDir=3,0,-1
	[end]
	[spawn=4]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldL1.txt"
		Position=0.65363, 0.59103, -0.43299
		SpawnDir=2,0,-1
	[end]
	[spawn=5]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldL2.txt"
		Position=0.65363, 0.59103, -0.43299
		SpawnDir=2,0,-1
	[end]
	[spawn=6]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldR1.txt"
		Position=0.6685, 0.5892, 0.43293
		SpawnDir=2,0,1
	[end]
	[spawn=7]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_shieldR2.txt"
		Position=0.6685, 0.5892, 0.43293
		SpawnDir=2,0,1
	[end]
	[spawn=8]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_case.txt"
		Position=0.716,0.049,0.0
		Rotation=0,0,135
		SpawnDir=0.75,-0.5,0
	[end]
	[spawn=9]
		solidtrash="LuaScripts\WorldObjects\Trash\TankTrash\_GAZ-MM-72K-trash_clip.txt"
		Position=0.14852,0.080641,-0.166828
		Rotation=-28, 0, 180.5
		convex="gun_elev_dummy",false	//false: Attach object relative to  convex (not absolute)
		SpawnDir=0.0,0.25,-0.12
	[end]
[end]

//End of Graphical Damage Groups

[Entrance]
	EntrancePos= 0.0, -0.382, 5.5
	EntranceRot= 0,90,0
	JumpDir= 0,0,0
	GroundAligned= true
	ForceDropByDecline=55.0
[end]

ColimatorHideArg=9547

//DefaultGun=0	//default=-1, all of the guns are active, switching belts in gun 0. >=0 sets default gun and switshing will be between guns

FixedHatch=true						// True -     
FixedWindow=false					// True -     
NoAimingWhenOpened=false			// True -      
NoAimingWhenClosed=false			// True -      
StopIfAimingProhibited=false		// True -         NoAimingWhenOpened/NoAimingWhenClosed
DenyDisabledTurretCamera=false		// True -         
NoVisorCameraWhenOpened=false		// True -   -   
CanopyOpenByDefault=true
WindowOpenByDefault=false
//canopytime=4.75	//   Arg=0  Arg=0.95.     Arg=0.1  Arg=0.9     (4 ),    0.95/0.8*4=4.75.
windowtime=1.5

OpenCockpitArg=31
AutoCanopy=false
//CockpitLightArg=30000,0.25,0.251,0.6
canopyLockSoundMask=2 	// 0 bit - canopy unlock, start
						// 1 bit - canopy unlock, end
						// 2 bit - canopy lock, start
						// 3 bit - canopy lock, end

OpenWindowArg=33
AutoWindow=false
//WindowLightArg=30010,0.3,0.45,0.6

TechChatCrewRole=3	//    (Driver: 1, Gunner: 3, Commander: 5, Machinegunner: 7, Radioman: 9)

SetCockpitArgs=true	// true -             , false -              

//CockpitArg= FetchType, CmdID, SubcmdID, ArgNum, ArgValDefault, SmoothingType, SmoothingPower, NetworkFlag
//FetchType=-1:       
//FetchType=-2:         
//FetchType=-3:          parent-
//FetchType>=0:          child-   Attach ID
//CmdID=[0..999]: ID    ,    .
//CmdID=[1000..1999]: ID    ,    .
//SubcmdID=[0..3]: ID     .
//SubcmdID=[0..1]: ID     .
//ArgNum:     / .
//ArgValDefault:      ,    .
//SmoothingType: smooth_clamp -  - 
//SmoothingType: smooth_wrap -   
//SmoothingPower:   
//NetworkFlag="":           ,  SetCockpitArgs=false
//NetworkFlag="low_freq":     ,       ,    
//NetworkFlag="med_freq":     ,       ,    
//NetworkFlag="high_freq":     ,       ,    
//NetworkFlag="granted_single":     ,       ,     

CockpitArg = -2, 0100, 0, 9008, 0.0, "", 0.0, "granted_single"			// 

CockpitArg = -2, 0150, 0, 9001, 0.0, "smooth_clamp", 0.1, "med_freq"	// TriggerPositionArgIdx, gun1
CockpitArg = -2, 0150, 1, 9009, 0.0, "smooth_wrap", 0.1, "med_freq"		// RoundsInMagazineArgIdx, gun1
CockpitArg = -2, 0150, 2, 9004, 0.0, "smooth_clamp", 0.1, "med_freq"	// DrawAnimationArgIdx = 1

CockpitArg = -2, 0151, 0, 9548, 0.75, "smooth_wrap", 0.1, "med_freq"	// Script-calculated arg, aspect gear
CockpitArg = -2, 0151, 1, 9547, 0.0, "smooth_clamp", 0.1, "med_freq"	// Script-calculated arg, aspect gear lock
CockpitArg = -2, 0151, 2, 9544, 0.0, "smooth_clamp", 0.1, "med_freq"	// GunSightDistanceArg
CockpitArg = -2, 0151, 3, 9546, 0.0, "smooth_clamp", 0.1, "med_freq"	// GunSightYawArg

CockpitArg = -2, 1150, 0, 220, 0.5, "smooth_clamp", 0.5, "low_freq"		// ManualControlAnimationArgNum, [Joint=0]
CockpitArg = -2, 1150, 1, 340, 0.5, "smooth_clamp", 0.5, "low_freq"		// ManualControlAnimationArgNum, [Joint=1]

//////////////////////////////////////

[moveBotDeviator]
  HiFreqAmp = 0.2f
  MaxDeviation = 0.3f
  Periods = 2.1, 0.4;
[end]
accelBotDirK = 0.3
accelBotDirSmooth = 0.05
accelBotSideK = 0.3
accelBotSideSmooth = 0.05

[AimDistHE]
	AimDist= 0.000,0
	AimDist= 0.020,100
	AimDist= 0.041,200
	AimDist= 0.061,300
	AimDist= 0.082,400
	AimDist= 0.103,500
	AimDist= 0.123,600
	AimDist= 0.144,700
	AimDist= 0.165,800
	AimDist= 0.186,900
	AimDist= 0.213,1000
	AimDist= 0.241,1100
	AimDist= 0.271,1200
	AimDist= 0.301,1300
	AimDist= 0.329,1400
	AimDist= 0.356,1500
	AimDist= 0.397,1600
	AimDist= 0.436,1700
	AimDist= 0.478,1800
	AimDist= 0.525,1900
	AimDist= 0.576,2000
	AimDist= 0.628,2100
	AimDist= 0.686,2200
	AimDist= 0.763,2300
	AimDist= 0.854,2400
[end]

[AimDiveSpeedScale]
	DiveSpeed= 0.000,200.0
	DiveSpeed= 0.138,150.0
	DiveSpeed= 0.269,100.0
	DiveSpeed= 0.407,50.0
	DiveSpeed= 0.5377,0.0
	DiveSpeed= 0.678,50.0
	DiveSpeed= 0.812,100.0
	DiveSpeed= 0.947,150.0
	DiveSpeed= 1.000,170.0
[end]

[AimDiveAngleVertScale]
	DiveAngle= 0.046,90.0
	DiveAngle= 0.068,75.0
	DiveAngle= 0.107,60.0
	DiveAngle= 0.182,45.0
	DiveAngle= 0.289,30.0
	DiveAngle= 0.407,15.0
	DiveAngle= 0.5377,0.0
	DiveAngle= 0.665,15.0
	DiveAngle= 0.783,30.0
	DiveAngle= 0.871,45.0
	DiveAngle= 0.969,60.0
[end]

[AimHorizontSpeedScale]
	HorizSpeed= 0.000,0.0
	HorizSpeed= 0.252,50.0
	HorizSpeed= 0.490,100.0
	HorizSpeed= 0.733,150.0
	HorizSpeed= 0.978,200.0
[end]

[AimDiveAngleHorizScale]
	DiveAngle= 0.055,90.0
	DiveAngle= 0.298,75.0
	DiveAngle= 0.510,60.0
	DiveAngle= 0.720,45.0
	DiveAngle= 0.880,30.0
	DiveAngle= 0.956,15.0
	DiveAngle= 1.000,0.0
[end]

[PitchCorr00Arg]	//(9544=0.0 9548=0.25)
	ArgCorrect= -1.00,0.000,0.250,0.500,0.750,1.000
	ArgCorrect= 0.263,0.204,0.257,0.310,0.361,0.412
	ArgCorrect= 0.300,0.252,0.303,0.357,0.409,0.464
	ArgCorrect= 0.350,0.313,0.363,0.416,0.468,0.527
	ArgCorrect= 0.400,0.374,0.416,0.462,0.514,0.565
	ArgCorrect= 0.450,0.416,0.451,0.486,0.530,0.573
	ArgCorrect= 0.500,0.450,0.466,0.488,0.512,0.540
	ArgCorrect= 0.528,0.457,0.462,0.475,0.486,0.495
[end]
[PitchCorr01Arg]	//(9544=0.0 9548=0.75)
	ArgCorrect= -1.00,0.000,0.250,0.500,0.750,1.000
	ArgCorrect= 0.263,0.203,0.150,0.100,0.050,0.000
	ArgCorrect= 0.300,0.251,0.201,0.152,0.105,0.059
	ArgCorrect= 0.350,0.313,0.269,0.225,0.182,0.144
	ArgCorrect= 0.400,0.370,0.330,0.295,0.263,0.230
	ArgCorrect= 0.450,0.418,0.387,0.361,0.335,0.315
	ArgCorrect= 0.500,0.450,0.433,0.418,0.405,0.395
	ArgCorrect= 0.528,0.457,0.451,0.446,0.442,0.435
[end]

[PitchCorr10Arg]	//(9544=0.5377 9548=0.25)
	ArgCorrect= -1.00,0.000,0.250,0.500,0.750,1.000
	ArgCorrect= 0.263,0.450,0.517,0.586,0.650,0.716
	ArgCorrect= 0.300,0.450,0.514,0.582,0.650,0.722
	ArgCorrect= 0.350,0.450,0.507,0.568,0.634,0.703
	ArgCorrect= 0.400,0.450,0.492,0.539,0.593,0.650
	ArgCorrect= 0.450,0.450,0.473,0.500,0.526,0.562
	ArgCorrect= 0.500,0.450,0.450,0.450,0.450,0.450
	ArgCorrect= 0.528,0.450,0.435,0.422,0.404,0.385
[end]
[PitchCorr11Arg]	//(9544=0.5377 9548=0.75)
	ArgCorrect= -1.00,0.000,0.250,0.500,0.750,1.000
	ArgCorrect= 0.263,0.450,0.381,0.318,0.254,0.194
	ArgCorrect= 0.300,0.450,0.388,0.327,0.271,0.219
	ArgCorrect= 0.350,0.450,0.397,0.349,0.305,0.264
	ArgCorrect= 0.400,0.450,0.411,0.379,0.348,0.322
	ArgCorrect= 0.450,0.450,0.429,0.413,0.397,0.385
	ArgCorrect= 0.500,0.450,0.450,0.450,0.450,0.450
	ArgCorrect= 0.528,0.450,0.460,0.470,0.467,0.486
[end]

[PitchCorr20Arg]	//(9544=1.0 9548=0.25)
	ArgCorrect= -1.00,0.000,0.250,0.500,0.750,1.000
	ArgCorrect= 0.263,0.646,0.737,0.825,0.908,1.000
	ArgCorrect= 0.300,0.582,0.663,0.748,0.838,0.930
	ArgCorrect= 0.350,0.512,0.571,0.639,0.713,0.799
	ArgCorrect= 0.400,0.460,0.488,0.532,0.578,0.628
	ArgCorrect= 0.450,0.444,0.449,0.453,0.460,0.473
	ArgCorrect= 0.500,0.450,0.431,0.414,0.392,0.368
	ArgCorrect= 0.528,0.460,0.431,0.405,0.374,0.333
[end]
[PitchCorr21Arg]	//(9544=1.0 9548=0.75)
	ArgCorrect= -1.00,0.000,0.250,0.500,0.750,1.000
	ArgCorrect= 0.263,0.645,0.562,0.485,0.403,0.328
	ArgCorrect= 0.300,0.582,0.503,0.433,0.370,0.311
	ArgCorrect= 0.350,0.508,0.453,0.407,0.365,0.326
	ArgCorrect= 0.400,0.460,0.431,0.405,0.383,0.368
	ArgCorrect= 0.450,0.444,0.442,0.433,0.429,0.427
	ArgCorrect= 0.500,0.450,0.462,0.475,0.485,0.495
	ArgCorrect= 0.528,0.460,0.484,0.503,0.523,0.536
[end]

[YawArgCorr]
	ArgCorrect= 0.00,0.00
	ArgCorrect= 0.05,0.00
	ArgCorrect= 0.10,0.02
	ArgCorrect= 0.15,0.12
	ArgCorrect= 0.20,0.28
	ArgCorrect= 0.30,0.71
	ArgCorrect= 0.35,0.88
	ArgCorrect= 0.40,0.98
	ArgCorrect= 0.45,1.00
	ArgCorrect= 0.50,1.00
	ArgCorrect= 0.55,0.94
	ArgCorrect= 0.60,0.85
	ArgCorrect= 0.70,0.63
	ArgCorrect= 0.80,0.38
	ArgCorrect= 0.90,0.15
	ArgCorrect= 0.95,0.06
	ArgCorrect= 1.00,0.00
[end]

[AYawAddCorrArg]
	ArgCorrect= 0.263,0.414
	ArgCorrect= 0.300,0.325
	ArgCorrect= 0.350,0.230
	ArgCorrect= 0.400,0.143
	ArgCorrect= 0.450,0.060
	ArgCorrect= 0.500,0.000
	ArgCorrect= 0.528,-0.060
[end]

[BYawAddCorrArg]
	ArgCorrect= 0.00,0.000
	ArgCorrect= 0.25,0.287
	ArgCorrect= 0.50,0.525
	ArgCorrect= 0.75,0.773
	ArgCorrect= 1.00,1.000
[end]

AttackDistance   = 2400.0		//AI max aim distance versus ground point
AttackDistanceTrgGnd = 1400.0	//AI max aim distance versus ground target
AttackDistanceTrgAir = 2300.0		//AI max aim distance versus air target

AIStartAimErrModifier = 0.1		//Modifier for AI initial bracketing aim error (reduced twice with each shot)

AIAimDelayModifier = 0.1		//Modifier for AI delay before start to aim to a new target at 1000m range

ReArmTime=45	//     