-- UNITDEF -- TLLARAD -- -------------------------------------------------------------------------------- local unitName = "tllarad" -------------------------------------------------------------------------------- local unitDef = { activateWhenBuilt = true, bmcode = 0, buildAngle = 8192, buildCostEnergy = 1950, buildCostMetal = 431, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 5, buildingGroundDecalSizeY = 5, buildingGroundDecalType = [[tllarad_aoplane.dds]], buildTime = 5050, category = [[ALL NOTDEFENSE NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL NOTWEAPON]], corpse = [[dead]], damageModifier = 0.8, description = [[Long Range Radar Tower]], designation = [[T-RAD2]], energyStorage = 0, energyUse = 60, explodeAs = [[SMALL_BUILDINGEX]], footprintX = 3, footprintZ = 3, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, iconType = [[building]], maxDamage = 432, maxSlope = 10, maxWaterDepth = 0, metalStorage = 0, name = [[Advanced Radar Tower]], noAutoFire = false, noChaseCategory = [[ALL]], objectName = [[tllARAD]], onoffable = true, ovradjust = 1, radarDistance = 3080, script = [[tllarad.lua]], selfDestructAs = [[SMALL_BUILDING]], side = [[TLL]], sightDistance = 350, unitname = [[tllarad]], unitnumber = 843, useBuildingGroundDecal = true, workerTime = 0, yardMap = [[ooooooooo]], featureDefs = nil, sounds = { activate = [[radadvn1]], canceldestruct = [[cancel2]], deactivate = [[radadde1]], underattack = [[warning1]], working = [[radar2]], count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, select = { [1] = [[radadvn1]], }, }, } -------------------------------------------------------------------------------- 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 = 23, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllarad_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 = 4, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3c]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------