-- UNITDEF -- TLLCOM3 -- -------------------------------------------------------------------------------- local unitName = "tllcom3" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.21, activateWhenBuilt = true, amphibious = 1, autoHeal = 9, bmcode = 1, brakeRate = 0.39, buildCostEnergy = 7500, buildCostMetal = 3500, buildDistance = 152, builder = true, buildPic = [[tllcom.png]], buildTime = 300000, canAttack = true, canCapture = true, canGuard = true, canManualFire = true, canMove = true, canPatrol = true, canreclamate = 1, canstop = 1, category = [[ALL COMMANDER CONSTR LARGE MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], cloakCost = 100, cloakCostMoving = 800, collisionvolumeoffsets = [[0 -13 0]], collisionvolumescales = [[45 52 26]], collisionvolumetest = 1, collisionvolumetype = [[Ell]], commander = true, corpse = [[DEAD]], decoyFor = [[tllcom]], defaultmissiontype = [[Standby]], description = [[Commander]], energyMake = 30, energyStorage = 5000, energyUse = 0, explodeAs = [[COMMANDER_BLAST5]], firestandorders = 1, footprintX = 2, footprintZ = 2, hideDamage = true, iconType = [[tllcommander]], idleAutoHeal = 9, idleTime = 1400, immunetoparalyzer = 1, maneuverleashlength = 640, mass = 5000, maxDamage = 5000, maxSlope = 26, maxVelocity = 1.3, maxWaterDepth = 35, metalMake = 2.25, metalStorage = 5000, minCloakDistance = 40, mobilestandorders = 1, movementClass = [[AKBOT2]], name = [[Battle Commander]], noChaseCategory = [[ALL SUB]], norestrict = 1, objectName = [[TLLCOM3]], radarDistance = 940, reclaimable = false, script = [[tllcom.cob]], seismicSignature = 0, selfDestructAs = [[COMMANDER_SELFD]], selfDestructCountdown = 4, showPlayerName = true, side = [[TLL]], sightDistance = 650, sonarDistance = 460, standingfireorder = 2, standingmoveorder = 0, steeringmode = 2, turnRate = 1298, unitname = [[tllcom3]], upright = true, workerTime = 400, sfxtypes = { explosiongenerators = { [1] = [[custom:tllroaster1_muzzle]], [2] = [[custom:com_sea_laser_bubbles]], }, }, buildoptions = { [1] = [[tllsolar]], [2] = [[tlltide]], [3] = [[tllwindtrap]], [4] = [[tllmstor]], [5] = [[tllestor]], [6] = [[tlluwmstorage]], [7] = [[tlluwestorage]], [8] = [[tllmex]], [9] = [[tlluwmex]], [10] = [[tllmm]], [11] = [[tllwmconv]], [12] = [[tlllab]], [13] = [[tllvp]], [14] = [[tllap]], [15] = [[tllsy]], [16] = [[tlltower]], [17] = [[tllradar]], [18] = [[tllsonar]], [19] = [[tlldt]], [20] = [[tlldtns]], [21] = [[tllllt]], [22] = [[tlltorp]], [23] = [[tlllmt]], [24] = [[tlllmtns]], [25] = [[tlldcsta]], [26] = [[tllshoretorp]], [27] = [[tllsolarns]], [28] = [[tllhltns]], [29] = [[tllck]], [30] = [[tllfireraiser]], [31] = [[tllnanotc]], }, customParams = { providetech = [[Battle Commander]], iscommander = true, }, featureDefs = nil, sounds = { build = [[nanlath1]], canceldestruct = [[cancel2]], capture = [[capture1]], cloak = [[kloak1]], repair = [[repair1]], uncloak = [[kloak1un]], underattack = [[warning2]], unitcomplete = [[kcarmmov]], working = [[reclaim1]], cant = { [1] = [[cantdo4]], }, count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, ok = { [1] = [[kcarmmov]], }, select = { [1] = [[kcarmsel]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[TLLCOM_LIGHTNING3]], }, [3] = { def = [[TLL_DISINTEGRATOR1]], }, [4] = { def = [[TLLCOMSEALASER]], badtargetcategory = [[VTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { TLL_DISINTEGRATOR1 = { areaOfEffect = 36, avoidFeature = false, avoidFriendly = false, avoidground = false, beamWeapon = true, commandfire = true, craterBoost = 0, craterMult = 0, energypershot = 500, explosionGenerator = [[custom:DGUNTRACE]], fireStarter = 100, impulseBoost = 0, impulseFactor = 0, lineOfSight = true, name = [[Disintegrator]], noExplode = true, noSelfDamage = true, range = 300, reloadtime = 1, renderType = 3, rgbColor = [[1.000 0.000 0.000]], soundHitDry = [[xplomas2]], soundStart = [[disigun1]], soundTrigger = true, startsmoke = 1, tolerance = 10000, turret = true, weaponTimer = 4.2, weaponType = [[DGun]], weaponVelocity = 300, damage = { commanders = 450, chicken = 4500, default = 999999, }, }, TLLCOM_LIGHTNING3 = { areaOfEffect = 12, beamttl = 10, beamWeapon = true, craterBoost = 0, craterMult = 0, duration = 3, explosionGenerator = [[custom:tllweb_exp]], fireStarter = 85, id = 217, impulseBoost = 0.123, impulseFactor = 0.123, lineOfSight = true, name = [[Commander Lightning Beam]], noSelfDamage = true, range = 405, reloadtime = 0.8, renderType = 7, rgbColor = [[0.6 0.6 0.9]], soundHitDry = [[lashit2]], soundStart = [[Lghthvy1]], texture1 = [[strike]], thickness = 3, tolerance = 600, turret = true, weaponTimer = 1, weaponType = [[LightningCannon]], weaponVelocity = 860, damage = { bombers = 277.5, default = 185, fighters = 277.5, flak_resistant = 277.5, subs = 5, unclassed_air = 485.625, }, }, TLLCOMSEALASER = { areaofeffect = 12, avoidfeature = false, beamtime = 0.3, corethickness = 0.4, craterboost = 0, cratermult = 0, cylindertargeting = 1, edgeeffectiveness = 1, explosiongenerator = "custom:UW_LASER_BURN", firestarter = 35, impactonly = 1, impulseboost = 0.123, impulsefactor = 0.123, laserflaresize = 7, name = "J7NSLaser", noselfdamage = true, range = 260, reloadtime = 1, rgbcolor = "0.2 0.2 0.6", rgbColor2 = "0.2 0.2 0.2", intensity = 0.3, soundstart = "uwlasrfir1", soundtrigger = true, targetmoveerror = 0.05, thickness = 5, tolerance = 10000, turret = true, fireSubmersed=true, waterWeapon=true, weapontype = "BeamLaser", weaponvelocity = 900, damage = { default = 225, subs = 135, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { DEAD = { blocking = true, category = [[corpses]], damage = 20.0000 * unitDef.maxDamage, description = [[Commander Wreckage]], energy = 0, featureDead = [[HEAP]], featurereclamate = [[SMUDGE01]], footprintX = 2, footprintZ = 2, height = 20, hitdensity = 100, metal = 0.08571 * unitDef.buildCostMetal, object = [[tllprivate_dead]], reclaimable = true, seqnamereclamate = [[TREE1RECLAMATE]], world = [[All Worlds]], }, HEAP = { blocking = false, category = [[heaps]], damage = 5.0000 * unitDef.maxDamage, description = [[Commander Debris]], energy = 0, featurereclamate = [[SMUDGE01]], footprintX = 2, footprintZ = 2, height = 4, hitdensity = 100, metal = 0.04286 * unitDef.buildCostMetal, object = [[2X2F]], reclaimable = true, seqnamereclamate = [[TREE1RECLAMATE]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------