-- UNITDEF -- TLLDEMON -- -------------------------------------------------------------------------------- local unitName = "tlldemon" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.6, badTargetCategory = [[VTOL]], bmcode = 1, brakeRate = 0.6, buildCostEnergy = 70000, buildCostMetal = 6000, builder = false, buildTime = 33000, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL LARGE MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Heavy Prototype Anti-Kbot Assault Tank]], designation = [[none]], energyMake = 2, energyStorage = 0, energyUse = 2, explodeAs = [[BIG_UNITEX]], firestandorders = 1, footprintX = 4, footprintZ = 4, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 26000, maxSlope = 10, maxVelocity = 1, maxWaterDepth = 12, metalStorage = 0, mobilestandorders = 1, movementClass = [[HTANK4]], name = [[Demon Slayer Mark II]], noAutoFire = false, noChaseCategory = [[SUB VTOL]], objectName = [[tlldemon]], radarDistance = 0, scale = 1.2, selfDestructAs = [[BIG_UNIT]], shootme = 1, sightDistance = 750, standingfireorder = 2, standingmoveorder = 1, steeringmode = 1, turnRate = 400, unitname = [[tlldemon]], unitnumber = 30001, workerTime = 0, featureDefs = nil, sfxtypes = { explosiongenerators = { [1] = [[custom:dgunflare]], }, }, sounds = { canceldestruct = [[cancel2]], underattack = [[warning1]], cant = { [1] = [[cantdo4]], }, count = { [1] = [[count6]], [2] = [[count5]], [3] = [[count4]], [4] = [[count3]], [5] = [[count2]], [6] = [[count1]], }, ok = { [1] = [[tcormove]], }, select = { [1] = [[tcorsel]], }, }, weaponDefs = nil, weapons = { [1] = { badTargetCategory = [[SMALL TINY]], def = [[DEMONSLAYER_CANNON]], onlyTargetCategory = [[NOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { DEMONSLAYER_CANNON = { accuracy = 750, aimrate = 2500, areaOfEffect = 500, ballistic = true, energypershot = 200, explosionGenerator = [[custom:FLASHNUKE480]], flightTime = 4, gravityaffected = [[true]], holdtime = 1, id = 229, impulseBoost = 0.123, impulseFactor = 0.123, metalpershot = 200, model = [[missile10]], name = [[Anti-Dreadnaught Heavy Cannon]], proximityPriority = -1, range = 1200, reloadtime = 8, renderType = 4, smokedelay = 0.01, smokeTrail = true, soundHitDry = [[rockhit]], soundStart = [[rapidrocket3]], startsmoke = 1, startVelocity = 500, texture2 = [[armsmoketrail]], trajectoryHeight = 0.5, turnRate = 6000, turret = true, weaponAcceleration = 120, weaponTimer = 6, weaponType = [[MissileLauncher]], weaponVelocity = 800, damage = { commanders = 1000, default = 5000, subs = 5, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, catagory = [[corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, height = 1, hitdensity = 23, metal = 0.8000 * unitDef.buildCostMetal, object = [[tlldemon_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, heap = { blocking = false, catagory = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Metal Shards]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, hitdensity = 4, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3a]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------