// ------------------------------------------------------ Naming ------------------------------------------------------
Name Piasecki CH-21C Shawnee
ShortName CH-21C
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconch21c
Model usavw.ch21c
Texture ch21c
//Third Person Camera Distance
CameraDistance 25.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
HasGear False
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Heli
//Throttle
MaxThrottle 0.9
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.25
TurnRightSpeed 1.25
//Pitch modifiers
LookUpSpeed 1.25
LookDownSpeed 1.25
//Roll modifiers
RollLeftSpeed 1.25
RollRightSpeed 1.25
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.4
//Lift
Lift 2.5
//Wheels (Fake wheels imitating skids)
NumWheels 3
WheelPosition 0 -44 -10 -45
WheelPosition 1 -44 -10 45
WheelPosition 2 130 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
//Propeller Positions
HeliPropeller 0 1 -50 -0,5 blades metalPropeller
HeliPropeller 1 135 -49 -2 blades metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Gun
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 1
ShootDelaySecondary 3
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 148 14 -4 nose browning
ShootPointPrimary 148 14 4 nose browning
ShootPointSecondary 81 20 -36 leftWing CRV7
ShootPointSecondary 81 11 -36 leftWing CRV7
ShootPointSecondary 81 15 -33 leftWing CRV7
ShootPointSecondary 81 15 -39 leftWing CRV7
ShootPointSecondary 81 20 36 rightWing CRV7
ShootPointSecondary 81 11 36 rightWing CRV7
ShootPointSecondary 81 15 33 rightWing CRV7
ShootPointSecondary 81 15 39 rightWing CRV7
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 10
BombSlots 0
MissileSlots 0
AllowAllAmmo False
AddAmmo mk4Rocket
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 5000
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and Passengers
Pilot 146 34 10
Passengers 12
Passenger 1 146 34 -10 core
Passenger 2 116 28 12 core 60 160 -45 45 browning PassengerGun2
GunOrigin 2 -107 33 -25
Passenger 3 -6 17 -13 tail -160 -60 -45 45 browning PassengerGun3
GunOrigin 3 0 22 27
Passenger 4 93 26 -14 core
Passenger 5 84 25 14 core
Passenger 6 75 24 -14 core
Passenger 7 66 23 14 core
Passenger 8 57 23 14 core
Passenger 9 48 22 -14 core
Passenger 10 39 21 14 core
Passenger 11 29 21 -14 core
Passenger 12 21 20 14 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound HelicopterStart
StartSoundLength 100
PropSound heloP
PropSoundLength 5
//ShootSoundPrimary M60Shoot
//ShootSoundSecondary RocketFire1
// ------------------------------------------------------ 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 3 passengerBay
AddRecipeParts nose 1 advancedMetalCockpit
AddRecipeParts coreWheel 4 wheel
AddRecipeParts blades 6 helicopterBlade
AddRecipeParts tail 1 metalTail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 16 green
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 5000 -34 0 -35 208 69 69
SetupPart nose 5000 175 7 -20 13 30 40
SetupPart tail 4000 -102 0 -35 88 95 69
SetupPart blades 3000 -239 95 -150 300 4 300
SetupPart blades 3000 -9 71 -150 300 4 300
CollisionPoint -9 49 -18 core
CollisionPoint 161 49 -18 core
CollisionPoint 161 49 18 core
CollisionPoint -9 49 18 core
CollisionPoint -9 5 29 core
CollisionPoint -9 4 -29 core
CollisionPoint 161 4 -20 core
CollisionPoint 161 4 20 core
CollisionPoint 162 4 20 nose
CollisionPoint 162 4 -20 nose
CollisionPoint 162 46 14 nose
CollisionPoint 162 47 -14 nose
CollisionPoint 189 20 0 nose
CollisionPoint -10 49 -18 tail
CollisionPoint -10 49 18 tail
CollisionPoint -101 49 18 tail
CollisionPoint -100 49 -18 tail
CollisionPoint -100 94 -18 tail
CollisionPoint -100 95 18 tail
CollisionPoint -26 83 8 tail
CollisionPoint -25 83 -9 tail
CollisionPoint -103 1 -28 tail
CollisionPoint -104 2 29 tail
CollisionPoint -10 2 29 tail
CollisionPoint -10 2 -29 tail
CollisionPoint 12 96 -143 blades
CollisionPoint 13 97 143 blades
CollisionPoint -238 97 2 blades
CollisionPoint -11 73 1 blades
CollisionPoint 239 73 -146 blades
CollisionPoint 239 73 146 blades
BulletDetection 8

IsExplosionWhenDestroyed true