-- UNITDEF -- TLLSHORETORP -- -------------------------------------------------------------------------------- local unitName = "tllshoretorp" -------------------------------------------------------------------------------- local unitDef = { bmcode = 0, buildAngle = 32768, buildCostEnergy = 5724, buildCostMetal = 602, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 5, buildingGroundDecalSizeY = 5, buildingGroundDecalType = [[tllshoretorp_aoplane.dds]], buildTime = 9911, canAttack = true, canGuard = true, canstop = 1, category = [[ALL NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], defaultmissiontype = [[GUARD_NOMOVE]], description = [[Shore Torpedo Launcher]], designation = [[]], energyStorage = 200, energyUse = 0, explodeAs = [[MEDIUM_BUILDINGEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 1380, maxSlope = 14, maxWaterDepth = 5, name = [[Fish Hook]], noAutoFire = false, noChaseCategory = [[ALL]], objectName = [[TLLshoretorp]], selfDestructAs = [[MEDIUM_BUILDING]], shootme = 1, side = [[TLL]], sightDistance = 380, standingfireorder = 2, unitname = [[tllshoretorp]], unitnumber = 946, useBuildingGroundDecal = true, yardMap = [[ooo ooo ooo]], featureDefs = nil, sounds = { canceldestruct = [[cancel2]], cloak = [[kloak1]], uncloak = [[kloak1un]], underattack = [[warning1]], cant = { [1] = [[cantdo4]], }, count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, ok = { [1] = [[twrturn3]], }, select = { [1] = [[twrturn3]], }, }, weaponDefs = nil, weapons = { [1] = { badTargetCategory = [[TINY]], def = [[TLL_TORPEDO]], onlyTargetCategory = [[NOTHOVERNOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { TLL_TORPEDO = { avoidFriendly = false, bouncerebound = 0.6, bounceslip = 0.6, burnblow = true, collideFriendly = false, craterBoost = 0, craterMult = 0, explosionGenerator = [[custom:FLASH2]], flighttime = 2, groundbounce = true, guidance = true, impulseBoost = 0.123, impulseFactor = 0.123, model = [[tlltorpedo]], name = [[Shore Torpedo Launcher]], noSelfDamage = true, numbounce = 1, range = 615, reloadtime = 3.5, soundHitDry = [[xplodep2]], soundStart = [[torpedo1]], startVelocity = 300, tracks = true, turnRate = 64000, turret = true, waterWeapon = true, weaponAcceleration = 200, weaponType = [[TorpedoLauncher]], weaponVelocity = 200, damage = { default = 475, }, }, } 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 = 12, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllshoretorp_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 = 5, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3d]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------