-- UNITDEF -- TLLFLAK -- -------------------------------------------------------------------------------- local unitName = "tllflak" -------------------------------------------------------------------------------- local unitDef = { airsightdistance = 1100, bmcode = 0, buildAngle = 8192, buildCostEnergy = 10825, buildCostMetal = 1409, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 5, buildingGroundDecalSizeY = 5, buildingGroundDecalType = [[tllflak_aoplane.dds]], buildTime = 13995, canAttack = true, canstop = 1, category = [[ALL NOTHOVERNOTVTOL NOTMOBILE NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], defaultmissiontype = [[GUARD_NOMOVE]], description = [[Anti-Air Flak Gun]], designation = [[]], energyUse = 0, explodeAs = [[LARGE_BUILDINGEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, iconType = [[building]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 5699, maxSlope = 10, maxWaterDepth = 0, name = [[Candlestick]], noAutoFire = false, noChaseCategory = [[ALL]], objectName = [[TLLFLAK]], selfDestructAs = [[MEDIUM_BUILDING]], shootme = 1, side = [[TLL]], sightDistance = 550, standingfireorder = 2, unitname = [[tllflak]], unitnumber = 818, useBuildingGroundDecal = true, yardMap = [[ooooooooo]], featureDefs = nil, sounds = { canceldestruct = [[cancel2]], cloak = [[kloak1]], uncloak = [[kloak1un]], underattack = [[warning1]], cant = { [1] = [[cantdo4]], }, count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, ok = { [1] = [[twrturn3]], }, select = { [1] = [[twrturn3]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[ARMFLAK_GUN]], onlyTargetCategory = [[VTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { ARMFLAK_GUN = { accuracy = 1000, areaOfEffect = 192, ballistic = true, burnblow = true, canattackground = false, cegTag = [[tllflak-fx]], craterBoost = 0, craterMult = 0, edgeEffectiveness = 0.85, explosionGenerator = [[custom:FLASH3]], gravityaffected = true, impulseBoost = 0, impulseFactor = 0, minbarrelangle = -24, name = [[FlakCannon]], noSelfDamage = true, range = 975, reloadtime = 0.2, renderType = 4, rgbColor = [[1.0 0.5 0.0]], size = 5, soundHitDry = [[flakhit]], soundStart = [[flakfire]], startsmoke = 1, turret = true, unitsonly = 1, weaponTimer = 1, weaponType = [[Cannon]], weaponVelocity = 1550, damage = { bombers = 400, default = 5, fighters = 400, flak_resistant = 133, unclassed_air = 400, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 2, footprintZ = 2, height = 20, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllflak_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Wreckage]], featurereclamate = [[smudge01]], footprintX = 2, footprintZ = 2, height = 4, hitdensity = 100, metal = 0.6400 * unitDef.buildCostMetal, object = [[2x2f]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------