-- UNITDEF -- TLLPLUNGER -- -------------------------------------------------------------------------------- local unitName = "tllplunger" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.033, activateWhenBuilt = true, bmcode = 1, brakeRate = 0.23, buildCostEnergy = 2041, buildCostMetal = 840, builder = false, buildTime = 9949, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL MEDIUM MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTVTOL SUB WEAPON]], collisionVolumeOffsets = [[0 -6 0]], collisionVolumeScales = [[33.213794708252 29.213794708252 59.213794708252]], collisionVolumeTest = 1, collisionVolumeType = [[ellipsoid]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Submarine]], designation = [[]], explodeAs = [[SMALL_UNITEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 1225, maxVelocity = 2.4, minWaterDepth = 20, mobilestandorders = 1, movementClass = [[UBOAT3]], name = [[Plunger]], noAutoFire = false, noChaseCategory = [[NOTSUBNOTSHIP]], objectName = [[TLLPLUNGER]], selfDestructAs = [[SMALL_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 400, sonarDistance = 415, standingfireorder = 2, standingmoveorder = 2, steeringmode = 1, turnRate = 356, unitname = [[tllplunger]], unitnumber = 895, upright = true, waterline = 40, featureDefs = nil, sounds = { canceldestruct = [[cancel2]], underattack = [[tllwarning]], arrived = { [1] = [[tllsub2]], }, cant = { [1] = [[wearoff]], }, count = { [1] = [[tllcount]], [2] = [[tllcount]], [3] = [[tllcount]], [4] = [[tllcount]], [5] = [[tllcount]], [6] = [[tllcount]], }, ok = { [1] = [[tllsub]], }, select = { [1] = [[sucorsel]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[ARM_TORPEDO]], mainDir = [[0 0 1]], maxAngleDif = 90, onlyTargetCategory = [[NOTHOVERNOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { ARM_TORPEDO = { areaOfEffect = 16, avoidFriendly = false, burnblow = true, collideFriendly = false, craterBoost = 0, craterMult = 0, explosionGenerator = [[custom:FLASH2]], flightTime = 2.3, guidance = true, impactonly = 1, impulseBoost = 0.123, impulseFactor = 0.123, lineOfSight = true, model = [[torpedo]], name = [[Torpedo]], noSelfDamage = true, propeller = 1, range = 500, reloadtime = 2.8, renderType = 1, selfprop = true, soundHitDry = [[xplodep1]], soundStart = [[torpedo1]], startVelocity = 100, tolerance = 32767, turnRate = 8000, turret = true, waterWeapon = true, weaponAcceleration = 15, weaponTimer = 3, weaponType = [[TorpedoLauncher]], weaponVelocity = 160, damage = { default = 255, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, height = 20, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllplunger_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Wreckage]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, height = 4, hitdensity = 5, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3d]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------