﻿//---Standard Vehicle Config for Flans Mod--------
//Created by Minecraft-SMP Toolbox 2.1.4.2


//---Standard-------------------------------------
// Naming
Name Pantsir S2
Description Russian AA Emplacement_2x 30mm Autocannon_6x 9M311 Treugolnik Missile_Introduction: 2012
ShortName GFS_CIWSPantsir
ItemID Your ID


// Visuals
Model gfs.CIWSPantsir
ModelScale 1
Icon IconCIWSPantsir

//------------------------------------------------

//---Driveables-----------------------------------
//Visuals
Texture SkinCIWSPantsir


//Movement
MaxThrottle 0
MaxNegativeThrottle 0


//Wheels
NumWheels 4
WheelPosition 0 -36 -10 -22
WheelPosition 1 -36 -10 20
WheelPosition 2 42 -10 20
WheelPosition 3 42 -10 -20
WheelRadius 1.0
WheelSpringStrength 0.5


//Floating


//Ammo
BulletSpeed 6
AllowAllAmmo False
AddAmmo GFS_Treugolnik 


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 1
ShootDelaySecondary 220
AlternatePrimary True
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary -14 20 -15 turret GFS_30mmAirGun4 50 0 0
ShootPointPrimary -14 20 15 turret GFS_30mmAirGun4 50 0 0
ShootPointSecondary -14 20 -23 turret 28 0 0
ShootPointSecondary -14 20 23 turret 28 0 0


//Driver and Passengers
Driver 0 16 0 -360 360 -10 75
RotatedDriverOffset 15 0 2
Passengers 0


//Inventory Slots
CargoSlots 0
BombSlots 0
MissileSlots 3
FuelTankSize 0


//Recipe
AddRecipeParts core 1 GFS_IFVTurret
AddRecipeParts turret 1 GFS_IFVTurret
AddDye 4 brown


//Health and Collision
SetupPart core 100 -37 -10 -21 80 18 42
SetupPart turret 50 -26 8 -30 60 30 60
BulletDetection 7
ShootParticlesPrimary smoke 0 0 0
ShootParticlesPrimary explode 0.5 0 0
ShootParticlesPrimary explode 0.1 0.05 0
ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesSecondary flansmod.fmflame -0.5 0 0
ShootParticlesSecondary flansmod.fmflame 1.0 0 0
ShootParticlesSecondary cloud 0.25 0.05 0
ShootParticlesSecondary cloud 0.25 -0.05 0
ShootParticlesSecondary cloud 0.25 0 -0.05
ShootParticlesSecondary cloud 0.25 0 0.05
ShootParticlesSecondary cloud 0.25 0.025 0.025
ShootParticlesSecondary cloud 0.25 -0.025 0.025
ShootParticlesSecondary cloud 0.25 0.025 -0.025
ShootParticlesSecondary cloud 0.25 -0.025 -0.025
ShootParticlesSecondary cloud -0.5 0.05 0
ShootParticlesSecondary cloud -0.5 -0.05 0
ShootParticlesSecondary cloud -0.5 0 -0.05
ShootParticlesSecondary cloud -0.5 0 0.05
ShootParticlesSecondary cloud -0.5 0.025 0.025
ShootParticlesSecondary cloud -0.5 -0.025 0.025
ShootParticlesSecondary cloud -0.5 0.025 -0.025
ShootParticlesSecondary cloud -0.5 -0.025 -0.025
ShootParticlesSecondary cloud -1.5 0.05 0
ShootParticlesSecondary cloud -1.5 -0.05 0
ShootParticlesSecondary cloud -1.5 0 -0.05
ShootParticlesSecondary cloud -1.5 0 0.05
ShootParticlesSecondary cloud -1.5 0.025 0.025
ShootParticlesSecondary cloud -1.5 -0.025 0.025
ShootParticlesSecondary cloud -1.5 0.025 -0.025
ShootParticlesSecondary cloud -1.5 -0.025 -0.025


//Misc
CameraDistance 15


//Sounds
IdleSound None
IdleSoundLength 0
EngineSound None
EngineSoundLength 0
ShootSoundPrimary Shoot_AA_Cannon2
ShootSoundSecondary Shoot_9M311

//------------------------------------------------

//---Vehicle--------------------------------------
//Visuals


//Movement
TurnLeftSpeed 0
TurnRightSpeed 0
FourWheelDrive True


//Misc
Tank True


//Turret rotation stuff
DriverAimSpeed 4 4 0
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretYaw4
YawSoundLength 21
PitchSound TurretPitch4
PitchSoundLength 20

//------------------------------------------------
LockOnToPlanes True
LockOnToVehicles False
LockOnToPlayers False
LockOnToLivings False
CanLockOnAngle 10
MaxRangeLockOn 750
LockedOnSoundRange 1
LockOnSound Lockon_AA2
LockOnSoundTime 14