-- UNITDEF -- TLLLONGSHOT -- -------------------------------------------------------------------------------- local unitName = "tlllongshot" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.5, badTargetCategory = [[VTOL]], bmcode = 1, brakeRate = 0.5, buildCostEnergy = 280000, buildCostMetal = 8000, builder = false, buildTime = 200000, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL HUGE MEDIUM MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Medium Artillery Assault Tank]], designation = [[none]], energyMake = 1, energyStorage = 0, energyUse = 0, explodeAs = [[ARM_BERTHACANNONEMP1]], firestandorders = 1, footprintX = 4, footprintZ = 4, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 2400, maxSlope = 25, maxVelocity = 1.2, maxWaterDepth = 12, metalStorage = 0, mobilestandorders = 1, movementClass = [[TANK4]], name = [[Longshot]], noAutoFire = false, noChaseCategory = [[VTOL]], objectName = [[tlllongshot]], radarDistance = 0, scale = 1.2, selfDestructAs = [[ATOMIC_BLAST]], shootme = 1, side = [[BIO]], sightDistance = 370, standingfireorder = 2, standingmoveorder = 1, steeringmode = 1, TEDClass = [[TANK]], turnRate = 325, unitname = [[tlllongshot]], unitnumber = 30119, workerTime = 0, 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] = [[tcormove]], }, select = { [1] = [[tcorsel]], }, }, weaponDefs = nil, weapons = { [1] = { badTargetCategory = [[VTOL]], def = [[EMP_ARTILLERY]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { EMP_ARTILLERY = { accuracy = 300, aimrate = 500, alphaDecay = 0.01, areaOfEffect = 240, ballistic = true, cegTag = [[vulcanfx1]], craterBoost = 0, craterMult = 0, edgeEffectiveness = 50, energypershot = 4000, explosionGenerator = [[custom:EMPFLASH240]], fireStarter = 50, gravityaffected = true, groundbounce = false, holdtime = 1, id = 72, impulseBoost = 0, impulseFactor = 0, name = [[Emp Cannon]], noGap = true, nogap = 1, paralyzer = true, paralyzeTime = 16, range = 6750, reloadtime = 8, renderType = 4, rgbColor = [[1 0.8 0.5]], separation = 0.01, size = 4, sizeDecay = -0.01, sizedecay = -0.15, soundHitDry = [[EMGPULS1]], soundStart = [[xplonuk4]], stages = 20, startsmoke = 1, tolerance = 7000, turret = true, waterbounce = false, weaponType = [[Cannon]], weaponVelocity = 800, damage = { default = 950, subs = 5, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, catagory = [[corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 4, footprintZ = 4, height = 1, hitdensity = 23, metal = 0.8000 * unitDef.buildCostMetal, object = [[tlllongshot_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, heap = { blocking = false, catagory = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Metal Shards]], featurereclamate = [[smudge01]], footprintX = 4, footprintZ = 4, hitdensity = 4, metal = 0.6400 * unitDef.buildCostMetal, object = [[4x4a]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------