﻿//Naming
Name TOS-1A "Buratino"
ShortName GFS_TOS1A
Description Russian Peoples Army MRLS_24x 220mm Incendiary Rockets_Introduced: 1988
//Visuals
Icon IconTOS1A
Model gfs.TOS1A
Texture SkinTOS1A
//Third Person Camera Distance
CameraDistance 15
ModelScale 1
//Throttle
MaxThrottle 0.75
MaxNegativeThrottle 0.6
//Steering modifiers
TurnLeftSpeed 1
TurnRightSpeed 1
//Drag
Drag 10.0
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.5
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
NumWheels 4
WheelPosition 0 -50 -10 -44
WheelPosition 1 -50 -10 44
WheelPosition 2 55 -10 44
WheelPosition 3 55 -10 -44
RotateWheels True
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary None
AllowAllAmmo False
BulletSpeed 8
BulletSpread 2
AddAmmo GFS_220mm
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 10
ReloadTimePrimary 200
ShootDelaySecondary 0
//Whether to alternate or fire all together
AlternatePrimary True
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary -47 20 0 turret 86 22 18
ShootPointPrimary -47 20 0 turret 86 22 13
ShootPointPrimary -47 20 0 turret 86 22 8
ShootPointPrimary -47 20 0 turret 86 22 3
ShootPointPrimary -47 20 0 turret 86 22 -3
ShootPointPrimary -47 20 0 turret 86 22 -8
ShootPointPrimary -47 20 0 turret 86 22 -13
ShootPointPrimary -47 20 0 turret 86 22 -18
ShootPointPrimary -47 20 0 turret 86 17 18
ShootPointPrimary -47 20 0 turret 86 17 13
ShootPointPrimary -47 20 0 turret 86 17 8
ShootPointPrimary -47 20 0 turret 86 17 3
ShootPointPrimary -47 20 0 turret 86 17 -3
ShootPointPrimary -47 20 0 turret 86 17 -8
ShootPointPrimary -47 20 0 turret 86 17 -13
ShootPointPrimary -47 20 0 turret 86 17 -18
ShootPointPrimary -47 20 0 turret 86 12 18
ShootPointPrimary -47 20 0 turret 86 12 13
ShootPointPrimary -47 20 0 turret 86 12 8
ShootPointPrimary -47 20 0 turret 86 12 3
ShootPointPrimary -47 20 0 turret 86 12 -3
ShootPointPrimary -47 20 0 turret 86 12 -8
ShootPointPrimary -47 20 0 turret 86 12 -13
ShootPointPrimary -47 20 0 turret 86 12 -18
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
//Inventory Slots
CargoSlots 0
ShellSlots 2
//Driver and passenger positions
Driver 0 8 0 -360 360 0 45
RotatedDriverOffset 20 0 5
Passengers 0
SetPlayerInvisible true
//Turret rotation stuff
DriverAimSpeed 3 1 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretYaw3
YawSoundLength 21
PitchSound TurretPitch3
PitchSoundLength 20
//Delays are in ticks or 1/20ths of seconds
//Sounds
PlaceSoundPrimary EngineStart_Tnk_Diesel
IdleSound EngineIdle_Tnk_Diesel
IdleSoundLength 20
EngineSound Engine_Tnk_Diesel
EngineSoundLength 20
StartSoundRange 12
EngineSoundRange 90
BackSoundRange 50
ShootSoundPrimary Shoot_MLRS_M142
ReloadSoundPrimary Reload_MLRS
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 GFS_MBTChassis
AddRecipeParts turret 1 GFS_ArtyModule
AddRecipeParts rightTrack 1 GFS_TankTracks
AddRecipeParts leftTrack 1 GFS_TankTracks
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 4 brown 6 yellow
//Health and collision
SetupPart core 2000 -61 -3 -32 120 20 64
SetupPart turret 1000 -33 28 -22 72 18 44
SetupPart rightTrack 500 -54 -10 -34 102 20 12
SetupPart leftTrack 500 -54 -10 22 102 20 12
BulletDetection 7
SquashMobs True
ShootParticlesPrimary largeexplode 0 0 0
ShootParticlesPrimary explode -2 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 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 cloud -1 0 0
ShootParticlesPrimary cloud -1.5 0 0
ShootParticlesPrimary cloud -0.5 0 0
ShootParticlesPrimary cloud -0.25 0 0
ShootParticlesPrimary cloud -1.5 0 0
ShootParticlesPrimary cloud -0.5 0 0.1
ShootParticlesPrimary cloud -0.5 0 -0.1
ShootParticlesPrimary cloud -0.5 0.06 0.06
ShootParticlesPrimary cloud -0.5 0.06 -0.06
ShootParticlesPrimary cloud -0.5 -0.06 0.06
ShootParticlesPrimary cloud -0.5 -0.06 -0.06
ShootParticlesPrimary cloud -0.5 -0.1 0
ShootParticlesPrimary cloud -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 cloud -0.1 0 0.4
ShootParticlesPrimary cloud -0.1 0 -0.4
ShootParticlesPrimary cloud -0.1 0.26 0.26
ShootParticlesPrimary cloud -0.1 0.26 -0.26
ShootParticlesPrimary cloud -0.1 -0.26 0.26
ShootParticlesPrimary cloud -0.1 -0.26 -0.26
ShootParticlesPrimary cloud -0.1 -0.4 0
ShootParticlesPrimary cloud -0.1 0.4 0

RightLinkPoint [60,10,-26]
RightLinkPoint [65,6,-26]
RightLinkPoint [65,2,-26]
RightLinkPoint [60,-3,-26]
RightLinkPoint [44,-9.5,-26]
RightLinkPoint [-36,-9.5,-26]
RightLinkPoint [-51,-3,-26]
RightLinkPoint [-56,2,-26]
RightLinkPoint [-56,6,-26]
RightLinkPoint [-51,10,-26]
LeftLinkPoint [60,10,26]
LeftLinkPoint [65,6,26]
LeftLinkPoint [65,2,26]
LeftLinkPoint [60,-3,26]
LeftLinkPoint [44,-9.5,26]
LeftLinkPoint [-36,-9.5,26]
LeftLinkPoint [-52,-3,26]
LeftLinkPoint [-57,2,26]
LeftLinkPoint [-57,6,26]
LeftLinkPoint [-52,10,26]
TrackLinkLength 3
FlipLinkFix true
FixTrackLink 5

AddEmitter cloud 1 [-32,15,-28] [1,1,1] [0,0,-0.5] 0.4 1 0 1 core
AddEmitter largesmoke 1 [-32,15,-28] [1,1,1] [0,0,-0.5] 0.8 1 0 1 core
AddEmitter cloud 1 [-32,15,28] [1,1,1] [0,0,0.5] 0.4 1 0 1 core
AddEmitter largesmoke 1 [-32,15,28] [1,1,1] [0,0,0.5] 0.8 1 0 1 core
//Damage
AddEmitter flame 1 [-46,16,9] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter flame 1 [-46,16,-9] [1,1,1] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-46,16,9] [1,1,1] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 3 [-46,16,-9] [1,1,1] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-46,16,9] [1,1,1] [0,1.5,0] -1 1 0 0.4 core
AddEmitter largesmoke 1 [-46,16,-9 [1,1,1] [0,1.5,0] -1 1 0 0.4 core