-- UNITDEF -- TLLPULASER -- -------------------------------------------------------------------------------- local unitName = "tllpulaser" -------------------------------------------------------------------------------- local unitDef = { bmcode = 0, buildAngle = 8192, buildCostEnergy = 1875, buildCostMetal = 661, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 5, buildingGroundDecalSizeY = 5, buildingGroundDecalType = [[tllpulaser_aoplane.dds]], buildTime = 12381, canAttack = true, canstop = 1, category = [[ALL NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], damageModifier = 0.125, defaultmissiontype = [[GUARD_NOMOVE]], description = [[Pop-Up Heavy Laser]], designation = [[TL-PUL]], digger = 1, downloadable = 1, energyUse = 0, explodeAs = [[MEDIUM_BUILDINGEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 1588, maxSlope = 10, maxWaterDepth = 0, name = [[Adder]], noAutoFire = false, noChaseCategory = [[ALL]], objectName = [[TLLPULASER]], selfDestructAs = [[MEDIUM_BUILDING]], shootme = 1, side = [[TLL]], sightDistance = 310, standingfireorder = 2, unitname = [[tllpulaser]], unitnumber = 844, useBuildingGroundDecal = true, workerTime = 0, yardMap = [[ooo ooo ooo]], featureDefs = nil, sounds = { canceldestruct = [[cancel2]], cloak = [[kloak2]], uncloak = [[kloak2un]], underattack = [[warning1]], cant = { [1] = [[cantdo4]], }, count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, ok = { [1] = [[servmed1]], }, select = { [1] = [[servmed1]], }, }, weaponDefs = nil, weapons = { [1] = { badTargetCategory = [[TINY]], def = [[ARM_LASERH2]], onlyTargetCategory = [[NOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { ARM_LASERH2 = { areaOfEffect = 14, beamlaser = 1, beamTime = 0.15, coreThickness = 0.2, craterBoost = 0, craterMult = 0, energypershot = 75, explosionGenerator = [[custom:GreenLaser]], fireStarter = 90, impulseBoost = 0.123, impulseFactor = 0.123, laserFlareSize = 10, lineOfSight = true, name = [[HighEnergyLaser]], noSelfDamage = true, range = 700, reloadtime = 0.6, renderType = 0, rgbColor = [[0 1 0]], soundHitDry = [[lasrhit1]], soundStart = [[Lasrmas2]], targetMoveError = 0.2, thickness = 3, tolerance = 10000, turret = true, weaponType = [[BeamLaser]], weaponVelocity = 2250, damage = { commanders = 500, default = 237, subs = 5, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 4, footprintZ = 3, height = 12, hitdensity = 23, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllpulaser_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Metal Shards]], featurereclamate = [[smudge01]], footprintX = 4, footprintZ = 3, hitdensity = 4, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3c]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------