-- UNITDEF -- TLLLOKI -- -------------------------------------------------------------------------------- local unitName = "tllloki" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.012, bmcode = 1, brakeRate = 0.01, buildCostEnergy = 1351, buildCostMetal = 482, builder = false, buildTime = 4770, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL MEDIUM MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTSUB NOTSUBNOTSHIP NOTVTOL WEAPON]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Mobile Artillery]], designation = [[]], explodeAs = [[BIG_UNITEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 642, maxSlope = 12, maxVelocity = 1.4, maxWaterDepth = 0, mobilestandorders = 1, movementClass = [[TANK3]], name = [[Loki]], noAutoFire = false, noChaseCategory = [[SUB VTOL]], objectName = [[TLLLOKI]], pushResistant = true, selfDestructAs = [[BIG_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 230, standingfireorder = 2, standingmoveorder = 0, steeringmode = 1, turnRate = 350, unitname = [[tllloki]], unitnumber = 836, 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] = [[tarmmove]], }, select = { [1] = [[tarmsel]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[CORE_ARTILLERY]], onlyTargetCategory = [[NOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { CORE_ARTILLERY = { accuracy = 960, areaOfEffect = 129, ballistic = true, cegTag = [[Trail_cannon]], craterBoost = 0, craterMult = 0, edgeEffectiveness = 0.5, explosionGenerator = [[custom:FLASH4]], gravityaffected = [[TRUE]], impulseBoost = 0.123, impulseFactor = 0.123, minbarrelangle = -10, name = [[PlasmaCannon]], nogap = 1, noSelfDamage = true, range = 1265, reloadtime = 2, renderType = 4, rgbColor = [[0.65 0.28 0]], separation = 0.45, size = 2.06, sizedecay = -0.15, soundHitDry = [[xplomed4]], soundStart = [[cannhvy2]], stages = 20, startsmoke = 1, turret = true, weaponType = [[Cannon]], weaponVelocity = 413.24932861328, damage = { default = 90, 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 = 3, footprintZ = 3, height = 20, hitdensity = 200, metal = 0.8000 * unitDef.buildCostMetal, object = [[TLLLOKI_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Wreckage]], featurereclamate = [[smudge01]], footprintX = 3, footprintZ = 3, height = 4, hitdensity = 80, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3C]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------