Class_name = "CTurret"
object_name = "Turret_U2VS"

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

[OPEN_COCKPIT_LIMITS]
x= -0.2, 0.2
y= -0.25, 0.2
z= -0.4, 0.4
[END]

VisualImage=0,"graphics/planes/U2VS/U2VS-C1-low.mgm",true
VisualImage=1,"graphics/planes/U2VS/U2VS-C1.mgm",false
KeepNetworkImages=true

CollisionBody="graphics/planes/U2VS/U2VS-C1.col"

VisualRadius=2.0

mp_site=true

//       
Script="LuaScripts\ObjectScripts\AlternateBot.sc"
[AlterBot]			//CustomNum, CountryID, fromYYYYMMDD, tillYYYYMMDD, SeasonsList"sp su au wi", BotConfig. Fist match will be choosen.
	AlterBotConfig = 1, -1, -1, -1, "wi", "LuaScripts/WorldObjects/Bots/BotGunner_U2_femRUSwi.txt"
	AlterBotConfig = 1, -1, -1, 19430228, "", "LuaScripts/WorldObjects/Bots/BotGunner_U2_femRUS42.txt"
	AlterBotConfig = 1, -1, -1, -1, "", "LuaScripts/WorldObjects/Bots/BotGunner_U2_femRUS43.txt"
	AlterBotConfig = -1, -1, -1, -1, "wi", "LuaScripts/WorldObjects/Bots/BotGunner_U2_RUSwi.txt"
	AlterBotConfig = -1, -1, -1, 19420331, "", "LuaScripts/WorldObjects/Bots/BotGunner_U2_RUS41.txt"
	AlterBotConfig = -1, -1, 19420401, 19430228, "", "LuaScripts/WorldObjects/Bots/BotGunner_U2_RUS42.txt"
[end]

[attach=0]
	position = -0.50,-0.42,0
	object = "LuaScripts/WorldObjects/Bots/BotGunner_U2_RUS43.txt"
	rotation= 0, 180, 0
[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/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_RUS_7-62x54_APsmk.bin"

SoundScript="LuaScripts/Sound/Planes/U2VS_T.cfg"

DropsArg=100
HumidityArg=101

SetCockpitArgs=false	// 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, 0000, 0, 9119, 0.0, "smooth_clamp", 0.0, "granted_single" //     
CockpitArg = -2, 0001, 0, 9118, 0.0, "smooth_clamp", 0.5, "med_freq" //     
CockpitArg = -2, 0001, 1, 9105, 0.0, "smooth_clamp", 0.3, "med_freq" // 

[TurretsPos=0]
	position = 0,0.1436,0
	PosMoveArg = 21000
	SeatArg=22002
	SeatUpTime=1.0
	SeatDownTime=1.0

	ReloadDelay = 0.3
	ShootOutSoundID = 0
	BotRotaionValueZ = 0.0	//-2.0
	LegsParameter = 0.0
	BotMinFirstAngle  = -45
	BotMaxFirstAngle  = 45
	BotMinSecondAngle = -45
	BotMaxSecondAngle = 45
	FirstToSecondInterp = 0.0
	
	LockTurretCamera=false
	
	// Joints in orientation order!!!
	[Joint=0]
		SectorAngleMin = -15.0
		SectorAngleMax = 15.0
		DefaultPos = 0.5

		AngularSpeed   = 60.0

		AnimationArgMin = 0.416667
		AnimationArgMax = 0.583333

		AnimationArgNum = 22001

		Point = 0.1371,0.0685,0
		Axis = 0.0,1.0,0.0

		IsCycled = false
		NextLinkedId = 1

		SoundNumber = 1
	[end]

	[Joint=1]
		SectorAngleMin = -30.0
		SectorAngleMax = 30.0
		DefaultPos = 0.0
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.333333
		AnimationArgMax = 0.666667

		AnimationArgNum = 22006

		Point = -0.0278,0.0323,0
		Axis  = 0.0,1.0,0.0

		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
	[end]

	[Joint=2]
		SectorAngleMin = -20.0
		SectorAngleMax = 25.0
		DefaultPos = 0.795405
		
		AngularSpeed = 120.0
		
		AnimationArgMin = 0.388889
		AnimationArgMax = 0.638889

		AnimationArgNum = 22007
		PrevLinkedId = 1
		
		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

		SoundNumber = 2

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

	[GunAnimation=0]
		FireArg = 9113
	[end]

	FireLightArg=60220

	relativeBotStand = 0.0, 0.0, 0.0
	relativeBotSit = 0.0, 0.0, 0.0
	relativeBotDead = 0.0, 0.0, 0.0
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2
	BotSecondAnimJointId  = 1

	SightPosition = 0.0, 0.5, 0.0

	defaultDirection = 1.0, -0.4, -0.57735027
	AimSector=-50, 50, -30, 30	//AI aim limits: left, right, down, up

	CamDisplacement = -0.4951,0.1345,0.0
[end]


[TurretsGun=0]
	LinkedTurretPos = 0
//	Convex = "gun0"
	DGroup="MachineGun"
	DamageProp = 0.25

	Displacement = 0.47, -0.0097, 0.0
	GunsightPosition = -0.4951,0.1345,0.0
	ParallaxDistance = 400.0

	GunType = "LuaScripts/WorldObjects/Weapons/MG_RUS_ShKAS.txt"

	ReLoadingStagesTime = 1.0, 10.0, 1.0, 0.3
 
	GunSoundsIdx = 1
	ShotSoundType = 0

	ReservedMagazinesArgIdx = 9119
	FlashAnimationArgIdx = 9113
	TriggerPositionArgIdx = 9101
	RoundsInMagazineArgIdx = 9111
	AmmunitionMovingArgIdx = 9009
	HideAmmunitionArgIdx = 9112
	ReLoadingArgIdx = 9118
	AzimuthDeviationArgIdx = 9106
	ElevationDeviationArgIdx = 9107
	FiringPinPositionArgIdx = 0			// not used
	DrawAnimationArgIdx = 0, 9105

	Deviation = 0.8856, 2.6568, 0.0, 0.008, 0.1, 0.4  //1.08    (  -2), 4.32   ,    .  820/
	// /:
	//-      , /
	//-      , /
	//-       (0.9 -    0.1  ,   )
	//-    
	//-     
	//-      100/

	NumOfAnimations = 4

	BushCoord = -0.1146,-0.4931,0.0142
	BushSpeed = 0.944, -0.096, -0.316

	BushConfig = "LuaScripts/WorldObjects/Trash/Batch_case07-08mm.txt"

	SoundNumber = 1

[end]

[Ammunition0]
	GunAmmunition0=0
[end]
[GunAmmunition0]
	MaxRoundsInMagazine = 100
	RoundsInMagazine = 100
	MaxReservedMagazines = 8
	ReservedMagazines = 8
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 8
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_RUS_7-62x54_APsmk.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_RUS_7-62x54_APsmk.txt"
[end]

SightPos = 0.0, 0.2, 0.0
PositionChangeTime = 1.0
StandDuration = 2.0
SitDuration = 2.0
PreEjectDuration = 2.0

//   ,         
SectorLimits = -40.0, +40.0, -30.0, +90.0


[Entrance]
	EntrancePos= -0.50,-0.42,0
	EntranceRot= 0,180,0
	JumpDir=1,1,2
[end]
[Entrance]
	EntrancePos= -0.50,-0.42,0
	EntranceRot= 0,180,0
	JumpDir=-2,6,1
	SelectorDir=0,2,0	//        2/
[end]

// Damage

SphereHitProtection=0	//  /     

[SphereProtectionBoxOpen]	//    ,        ,   ,     SphereHitProtection=
	FovH=120				//          ,     ,  ArmorFront
	FovV=120				//          ,     ,  ArmorFront
							//  5        
	ArmorFront=2
	ArmorBack=16
	ArmorTop=0
	ArmorBottom=2
	ArmorRight=0
	ArmorLeft=0
[end]

[SphereProtectionBoxClose]	//    ,        ,   ,     SphereHitProtection=
	FovH=120				//          ,     ,  ArmorFront
	FovV=120				//          ,     ,  ArmorFront
							//  5        
	ArmorFront=2
	ArmorBack=16
	ArmorTop=0
	ArmorBottom=2
	ArmorRight=0
	ArmorLeft=0
[end]

Armor=0
LifeRate=50000
LifeRateFrag=5000 
Firing=0.0 

energyloss="",true,0.7,1000 //     , true -       -,       ,        
energyloss="gun",true,5.0,20000 // 

[DGroup=MachineGun]
	IsCritical=false
	LifeK=20
	convex="gun",5,600,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=90
		FovV=90
		ArmorFront=5
		ArmorBack=15
		ArmorTop=5
		ArmorBottom=7
		ArmorRight=5
		ArmorLeft=5
	[end]
	LifeRateFrag=600
	RepairSpeed=0.0166667	// (1 )
	RepairSource=4
	InstantRepair=true
[end]

OpenCockpitArg=22101

ReArmTime=15 //  60,     -2  2 