-- UNITDEF -- TLLTORP -- -------------------------------------------------------------------------------- local unitName = "tlltorp" -------------------------------------------------------------------------------- local unitDef = { activateWhenBuilt = true, bmcode = 0, buildAngle = 16384, buildCostEnergy = 1988, buildCostMetal = 324, builder = false, buildTime = 4204, canAttack = true, canstop = 1, category = [[ALL NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], defaultmissiontype = [[GUARD_NOMOVE]], description = [[Torpedo Launcher]], designation = [[TLL-TL]], energyMake = 0.1, energyUse = 0.1, explodeAs = [[SMALL_UNITEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 2190, minWaterDepth = 12, name = [[Torpedo Launcher]], noAutoFire = false, noChaseCategory = [[ALL]], noshadow = 1, objectName = [[TLLtorp]], ovradjust = 1, selfDestructAs = [[SMALL_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 150, sonarDistance = 450, standingfireorder = 2, unitname = [[tlltorp]], unitnumber = 855, waterline = 0, workerTime = 0, yardMap = [[wwwwwwwww]], featureDefs = nil, sounds = { canceldestruct = [[cancel2]], underattack = [[warning1]], cant = { [1] = [[cantdo4]], }, count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, ok = { [1] = [[sharmmov]], }, select = { [1] = [[sharmsel]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[COAX_TORPEDO]], onlyTargetCategory = [[NOTHOVERNOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { COAX_TORPEDO = { areaOfEffect = 16, avoidFriendly = false, burnblow = true, collideFriendly = false, craterBoost = 0, craterMult = 0, explosionGenerator = [[custom:FLASH2]], guidance = true, impactonly = 1, impulseBoost = 0.123, impulseFactor = 0.123, lineOfSight = true, model = [[torpedo]], name = [[Level1TorpedoLauncher]], noSelfDamage = true, propeller = 1, range = 600, reloadtime = 1.9, renderType = 1, selfprop = true, soundHitDry = [[xplodep2]], soundStart = [[torpedo1]], startVelocity = 200, tracks = true, turnRate = 2500, turret = true, waterWeapon = true, weaponAcceleration = 40, weaponTimer = 3, weaponType = [[TorpedoLauncher]], weaponVelocity = 320, damage = { commanders = 260, default = 280, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = false, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, height = 12, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tlltorp_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Metal Shards]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, hitdensity = 45, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3a]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------