-- UNITDEF -- TLLGATE -- -------------------------------------------------------------------------------- local unitName = "tllgate" -------------------------------------------------------------------------------- local unitDef = { activateWhenBuilt = true, bmcode = 0, buildAngle = 1700, buildCostEnergy = 29850, buildCostMetal = 3840, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 5, buildingGroundDecalSizeY = 5, buildingGroundDecalType = [[tllgate_aoplane.dds]], buildTime = 53485, canAttack = true, canattack = false, canstop = 1, category = [[ALL NOTDEFENSE NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL NOTWEAPON]], corpse = [[tllgate_dead]], description = [[Plasma Deflector]], designation = [[TLL-GG]], energyStorage = 1800, energyUse = 0, explodeAs = [[CRAWL_BLAST]], footprintX = 5, footprintZ = 3, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 3800, maxSlope = 10, maxWaterDepth = 0, metalStorage = 0, name = [[Shield Generator]], noAutoFire = false, noChaseCategory = [[ALL]], norestrict = 1, objectName = [[TLLGATE]], onoffable = true, ovradjust = 1, radarDistance = 0, selfDestructAs = [[MINE_NUKE]], side = [[TLL]], sightDistance = 240, unitname = [[tllgate]], unitnumber = 3403, useBuildingGroundDecal = true, workerTime = 0, yardMap = [[ooo ooo ooo ooo ooo]], 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] = [[drone1]], }, select = { [1] = [[drone1]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[REPULSOR]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { REPULSOR = { name = [[PlasmaRepulsor]], range = 400, shieldAlpha = 0.35, shieldBadColor = [[1 0.2 0.2]], shieldEnergyUse = 600, shieldForce = 7, shieldGoodColor = [[0.2 1 0.2]], shieldInterceptType = 1, shieldMaxSpeed = 3500, shieldPower = 7500, shieldPowerRegen = 150, shieldPowerRegenEnergy = 562.5, shieldRadius = 400, shieldRepulser = true, smartShield = true, visibleShield = true, visibleShieldHitFrames = 70, visibleShieldRepulse = true, weaponType = [[Shield]], damage = { default = 100, subs = 5, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Metal Shards]], featurereclamate = [[smudge01]], footprintX = 5, footprintZ = 5, hitdensity = 4, metal = 0.6400 * unitDef.buildCostMetal, object = [[5x5d]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, tllgate_dead = { blocking = true, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 5, footprintZ = 5, height = 12, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllgate_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------