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


//---Standard-------------------------------------
// Naming
Name PGZ-95 AAA
ShortName GFS_PGZ95
ItemID Your ID


// Visuals
Model gfs.Type95
ModelScale 1
Icon IconPGZ95


// Recipe


//Misc
Description Chinese Mobile Anti-Air_4x 25mm Autocannon_4x QW2 Vanguard_Introduction: 1999

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

//---Driveables-----------------------------------
//Visuals
Texture SkinPGZ95


//Movement
MaxThrottle 0.75
MaxNegativeThrottle 0.15
Drag 10.0


//Wheels
NumWheels 4
WheelPosition 0 -20 -10 -32
WheelPosition 1 -20 -10 32
WheelPosition 2 77 -10 32
WheelPosition 3 77 -10 -32
WheelSpringStrength 0.5
WheelRadius 1.5

//Ammo
BulletSpeed 10
AllowAllAmmo False
AddAmmo GFS_QW2


//Weapons
Primary GUN
Secondary MISSILE
ShootDelayPrimary 1
ShootDelaySecondary 50
ReloadTimeSecondary 100
AlternatePrimary True
AlternateSecondary True
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary -14 33 -10 turret GFS_25mmAirGun4 42 3 -3  
ShootPointPrimary -14 33 10 turret GFS_25mmAirGun4 42 3 3  
ShootPointPrimary -14 33 -10 turret GFS_25mmAirGun4 42 0 -6  
ShootPointPrimary -14 33 10 turret GFS_25mmAirGun4 42 0 6  
ShootPointSecondary -14 33 -10 turret 42 10 0
ShootPointSecondary -14 33 10 turret 42 10 0


//Driver and Passengers
Driver 0 18 0 -360 360 -10 80
RotatedDriverOffset 22 0 0
Passengers 0
SetPlayerInvisible true


//Inventory Slots
CargoSlots 4
ShellSlots 3
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_MBTChassis
AddRecipeParts turret 1 GFS_AATurret
AddRecipeParts leftTrack 1 GFS_TankTracks
AddRecipeParts rightTrack 1 GFS_TankTracks
AddDye 4 brown 6 yellow


//Health and Collision
SetupPart core 350 -36 4 -25 110 16 50
SetupPart turret 150 -25 20 -10 54 21 20
SetupPart rightTrack 250 -36 -10 -28 110 20 8
SetupPart leftTrack 250 -36 -10 20 110 20 8
BulletDetection 7
AddEmitter cloud 1 [20,18,25] [1,5,5] [-0.01,-0.05,0.75] 0.25 2 0 1 core
AddEmitter largesmoke 1 [20,18,25] [1,5,5] [-0.01,-0.05,0.75] 0.75 2 0 1 core
//Damage
AddEmitter largesmoke 1 [67,14,7] [1,5,5] [0,1,0] -1 2 0 0.4 core
AddEmitter largesmoke 1 [67,14,-7] [1,5,5] [0,1,0] -1 2 0 0.4 core
AddEmitter flame 1 [67,14,7] [1,5,5] [0,1,0] -1 2 0 0.25 core
AddEmitter flame 1 [67,14,-7] [1,5,5] [0,1,0] -1 2 0 0.25 core
AddEmitter largesmoke 3 [67,14,7] [1,5,5] [0,1.5,0] -1 2 0 0.25 core
AddEmitter largesmoke 3 [67,14,-7] [1,5,5] [0,1.5,0] -1 2 0 0.25 core
ShootParticlesPrimary smoke 0 0 0
ShootParticlesPrimary explode 0.5 0 0
ShootParticlesPrimary explode 0.1 0.05 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
PlaceSoundPrimary EngineStart_IFV_BMPD
IdleSound EngineIdle_IFV_BMPD
IdleSoundLength 20
EngineSound Engine_IFV_BMPD
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_AA_Cannon3
ShootSoundSecondary Shoot_AIM

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

//---Vehicle--------------------------------------
//Visuals
RotateWheels True


//Movement
TurnLeftSpeed 1
TurnRightSpeed 1
FourWheelDrive True


//Misc
SquashMobs True
Tank True


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

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