-- UNITDEF -- TLLGATE1 -- -------------------------------------------------------------------------------- local unitName = "tllgate1" -------------------------------------------------------------------------------- local unitDef = { activateWhenBuilt = true, bmcode = 0, buildAngle = 1700, buildCostEnergy = 124382, buildCostMetal = 18000, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 6, buildingGroundDecalSizeY = 6, buildingGroundDecalType = [[tllgate1_aoplane.dds]], buildPic = [[tllgate.png]], buildTime = 253485, canAttack = true, canattack = false, canstop = 1, category = [[ALL NOTDEFENSE NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL NOTWEAPON]], corpse = [[tllgate_dead]], description = [[High Strength Plasma Deflector]], designation = [[TLL-GG]], energyStorage = 2000, energyUse = 0, explodeAs = [[CRAWL_BLAST]], footprintX = 6, footprintZ = 4, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 3800, maxSlope = 10, maxWaterDepth = 0, metalStorage = 0, name = [[Shield Generator]], noAutoFire = false, noChaseCategory = [[ALL]], norestrict = 1, objectName = [[TLLGATE1]], onoffable = true, ovradjust = 1, radarDistance = 0, script = [[tllgate.cob]], selfDestructAs = [[MINE_NUKE]], side = [[TLL]], sightDistance = 240, unitname = [[tllgate]], unitnumber = 3403, useBuildingGroundDecal = true, workerTime = 0, yardMap = [[oooooo oooooo oooooo oooooo]], 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 = 600, shieldAlpha = 0.35, shieldBadColor = [[1 0.2 0.2]], shieldEnergyUse = 600, shieldForce = 7, shieldGoodColor = [[0.2 1 0.2]], shieldInterceptType = 1, shieldMaxSpeed = 3500, shieldPower = 77500, shieldPowerRegen = 250, shieldPowerRegenEnergy = 4000, shieldRadius = 600, 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}) --------------------------------------------------------------------------------