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


//---Standard-------------------------------------
// Naming
Name M1128 Stryker MGS - Trophy
ShortName GFS_M1128Trophy
ItemID Your ID


// Visuals
Model gfs.M1128Trophy
ModelScale 1.1
Icon IconM1128


// Recipe


//Misc
Description US Army Airborne Assault Gun_1x 105mm Rifled Gun_1x 7.62mm Machine Gun_Active Protection_Introduced: 2023

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

//---Driveables-----------------------------------
//Visuals
Texture SkinM1128Trophy


//Movement
MaxThrottle 1.61
MaxNegativeThrottle 1.2
Drag 5.0


//Wheels
NumWheels 4
WheelPosition 0 -17 -10 -22
WheelPosition 1 -17 -10 22
WheelPosition 2 57 -10 22
WheelPosition 3 57 -10 -22
WheelRadius 1.5
WheelSpringStrength 0.5


//Floating


//Ammo
BulletSpeed 9
BulletSpread 1
AllowAllAmmo False
AddAmmo GFS_105mmHEAT
AddAmmo GFS_105mmAPFSDS
AddAmmo GFS_105mmM900


//Weapons
Primary SHELL
Secondary GUN
ShootDelayPrimary 95
ShootDelaySecondary 3
AlternatePrimary False
AlternateSecondary False
ModePrimary FULLAUTO
ModeSecondary FULLAUTO
ShootPointPrimary 95 42 0 turret
ShootPointSecondary 13 47 -7 turret GFS_M240


//Driver and Passenger
Driver 0 37 0 -360 360 -8 16
RotatedDriverOffset 16 -16 -12
Passengers 0
SetPlayerInvisible true
DriverPart barrel


//Inventory Slots
CargoSlots 9
ShellSlots 4
FuelTankSize 6000


//Recipe
AddRecipeParts core 1 GFS_APCChassis 1 GFS_ActiveProtection
AddRecipeParts turret 1 GFS_MBTTurret
AddDye 6 green


//Health and Collision
SetupPart core 550 -50 4 -28 138 26 56
SetupPart turret 200 -39 30 -13 68 19 26
SetupPart APS 3000 -70 4 -50 180 50 100
BulletDetection 7
AddEmitter cloud 1 [22,27,29] [1,5,5] [-0.75,-1,1.25] 0.25 2 0 1 core
AddEmitter largesmoke 3 [22,27,29] [1,5,5] [-0.75,-1,1.25] 0.75 2 0 1 core
//Damage
AddEmitter flame 1 [42,29,20] [12,1,12] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [42,29,20] [12,1,12] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [42,29,20] [12,1,12] [0,1,0] -1 1 0 0.5 core
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary cloud 1 0 0
ShootParticlesPrimary cloud 1.75 0 0
ShootParticlesPrimary cloud 1.5 0 0
ShootParticlesPrimary cloud 1.25 0 0
ShootParticlesPrimary cloud 0.75 0 0
ShootParticlesPrimary cloud 0.5 0 0
ShootParticlesPrimary cloud 0.25 0 0
ShootParticlesPrimary explode 1.5 0 0
ShootParticlesPrimary largesmoke 0.5 0 0.1
ShootParticlesPrimary largesmoke 0.5 0 -0.1
ShootParticlesPrimary largesmoke 0.5 0.06 0.06
ShootParticlesPrimary largesmoke 0.5 0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.1 0
ShootParticlesPrimary largesmoke 0.5 0.1 0
ShootParticlesPrimary cloud 0.05 0 0.2
ShootParticlesPrimary cloud 0.05 0 -0.2
ShootParticlesPrimary cloud 0.05 0.13 0.13
ShootParticlesPrimary cloud 0.05 0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.13 0.13
ShootParticlesPrimary cloud 0.05 -0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.2 0
ShootParticlesPrimary cloud 0.05 0.2 0
ShootParticlesPrimary explode 0.1 0 0.4
ShootParticlesPrimary explode 0.1 0 -0.4
ShootParticlesPrimary explode 0.1 0.26 0.26
ShootParticlesPrimary explode 0.1 0.26 -0.26
ShootParticlesPrimary explode 0.1 -0.26 0.26
ShootParticlesPrimary explode 0.1 -0.26 -0.26
ShootParticlesPrimary explode 0.1 -0.4 0
ShootParticlesPrimary explode 0.1 0.4 0
ShootParticlesSecondary flame 0.025 0 0
ShootParticlesSecondary flansmod.fmsmoke 0 0.01 0




//Misc
CameraDistance 15


//Sounds
PlaceSoundPrimary EngineStart_IFV_Stryker
IdleSound EngineIdle_IFV_Stryker
IdleSoundLength 20
EngineSound Engine_IFV_Stryker
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_Tnk_105mm
ShootSoundSecondary Shoot_Gun_M240
VehicleGunReloadTick 85
ShootReloadSound Reload_Tnk_Auto2

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

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


//Movement
TurnLeftSpeed 0.30
TurnRightSpeed 0.30
FourWheelDrive False


//Misc
Tank False
CanMountEntity true


//Turret rotation stuff
DriverAimSpeed 6 6 0
DriverYawBeforePitch true
DriverTraverseSounds true
YawSound TurretYaw2
YawSoundLength 21
PitchSound TurretPitch2
PitchSoundLength 20

//------------------------------------------------
AddSmokePoint [21,37,-5] [0.25,0.75,-0.75] 20 turret
AddSmokePoint [21,37,5] [0.25,0.75,0.75] 20 turret

AddSmokePoint [16,37,-5] [0.50,0.75,-0.25] 20 turret
AddSmokePoint [16,37,5] [0.50,0.75,0.25] 20 turret
HasFlare True

HasSmoke True
FlareDelay 350
FlareSound SmokeDeploy