// ------------------------------------------------------ Naming ------------------------------------------------------
Name HeavyBomber_Lancaster
ShortName heavybomber_lancaster
ItemID 11240
Description MAX HP:500_CargoSlots 8_FlareDelay 300_TimeFlareUsing 5s_Sound Horn_PlaneBomb LargeBomb[LancasterOnly]_PlaneBomb LargeBomb_PlaneBomb SmallBomb__PG 7.7mm Browning Ammo
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon BigPlane_Lancaster
Model ww2.Lancaster
Texture HeavyBomber_Lancaster
//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 5.0
//Third Person Camera Distance
CameraDistance 16.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.45
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 0.55
TurnRightSpeed 0.55
//Pitch modifiers
LookUpSpeed 0.5
LookDownSpeed 0.5
//Roll modifiers
RollLeftSpeed 0.85
RollRightSpeed 0.85
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.45
//Wheels
NumWheels 3
WheelPosition 0 80 -31 -52
WheelPosition 1 80 -31 52
WheelPosition 2 -100 -10 0
WheelSpringStrength 0.125
//Propeller Positions
Propeller 0 114 16 -52 nose parts_metalpropeller
Propeller 1 114 16 52 nose parts_metalpropeller
Propeller 2 98 16 -116 nose parts_metalpropeller
Propeller 3 98 16 116 nose parts_metalpropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Shell
Secondary Bomb
//Time between shots in 1/20ths of seconds
PlaceTimePrimary 160
ShootDelayPrimary 85
ReloadTimePrimary 80
PlaceTimeSecondary 240
ShootDelaySecondary 7
ReloadTimeSecondary 240
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//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 0 16 0 core
ShootPointSecondary 48 -19 6 core
ShootPointSecondary 48 -19 -6 core
ShootParticlesPrimary note 0 3 0
ShootParticlesPrimary note 0 4 0
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 8
BombSlots 8
MissileSlots 1
AllowAllAmmo False
AddAmmo planebomb_largebomb
AddAmmo planebomb_smallbomb
AddAmmo planebomb_largebomb[lancasteronly]
AddAmmo sound_horn
AddAmmo dummyammo
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 20000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 115 20 0
Passengers 5
//Passenger <ID> <x> <y> <z> <part> [minYaw] [maxYaw] [minPitch] [maxPitch] [gunType] [gunModelName]
Passenger 1 148 2 0 nose -30 30 -30 30 pg_7.7mm_browning Nose
GunOrigin 1 148 -4 0
Passenger 2 90 10 0 core -360 360 -89 89
Passenger 3 70 10 0 core -360 360 -89 89
Passenger 4 -48 36 0 core -360 360 -10 55 pg_7.7mm_browning Dorsal
GunOrigin 4 -48 30 0
Passenger 5 -128 20 0 tail 120 240 -35 35 pg_7.7mm_browning Tail
GunOrigin 5 -128 14 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound Lancaster_StartSound
StartSoundLength 40
PropSound Lancaster_PropSound
PropSoundLength 40
StartSoundRange 100
EngineSoundRange 1000
PlaceSoundPrimary Spitfire_PlaceSound
ShootSoundPrimary whistle1
ReloadSoundPrimary PG_reload
PlaceSoundSecondary None
ShootSoundSecondary Bombair
ReloadSoundSecondary PlaneBomb_reload1
LockedOnSound Lock
SoundTime 8
LockedOnSoundRange 15
// ------------------------------------------------------ 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 nose 1 parts_metalcockpit 1 parts_bombbay 10 iron rightWing 2 parts_metalwingsection 3 parts_largewheel
AddRecipeParts leftWing 2 parts_metalwingsection
AddRecipeParts tail 1 parts_metaltail
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
//AddDye 0 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 500 -64 -4 -16 224 48 32
SetupPart leftWing 400 -16 26 -240 80 4 480
SetupPart tail 325 -144 12 -16 80 32 32
HasGear True
BulletDetection 5
SquashMobs false
//Collision points for breaking wings etc. upon crashing
//LeftWing
CollisionPoint 0 28 -50 leftWing
CollisionPoint 0 28 -90 leftWing
CollisionPoint 0 28 -130 leftWing
CollisionPoint 0 28 -170 leftWing
CollisionPoint 0 28 -210 leftWing
CollisionPoint 40 28 -50 leftWing
CollisionPoint 40 28 -90 leftWing
CollisionPoint 40 28 -130 leftWing
CollisionPoint 40 28 -170 leftWing
CollisionPoint 40 28 -210 leftWing
CollisionPoint 0 28 50 rightWing
CollisionPoint 0 28 90 rightWing
CollisionPoint 0 28 130 rightWing
CollisionPoint 0 28 170 rightWing
CollisionPoint 0 28 210 rightWing
CollisionPoint 40 28 50 rightWing
CollisionPoint 40 28 90 rightWing
CollisionPoint 40 28 130 rightWing
CollisionPoint 40 28 170 rightWing
CollisionPoint 40 28 210 rightWing
//Tail
CollisionPoint -140 28 16 tail
CollisionPoint -120 28 16 tail
CollisionPoint -100 28 16 tail
CollisionPoint -140 28 -16 tail
CollisionPoint -120 28 -16 tail
CollisionPoint -100 28 -16 tail
IsExplosionWhenDestroyed true
CollisionDamageEnable false
CollisionDamageThrottle 0.21
CollisionDamageTimes 0
HasFlare True
FlareDelay 300
FlareSound Flare
TimeFlareUsing 5