-- UNITDEF -- TLLHOPLIT -- -------------------------------------------------------------------------------- local unitName = "tllhoplit" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.16, airsightdistance = 980, bmcode = 1, brakeRate = 0.12, buildCostEnergy = 2010, buildCostMetal = 155, builder = false, buildTime = 6059, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTSUB NOTSUBNOTSHIP NOTVTOL SMALL WEAPON]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Anti-Air Rocket Tank]], designation = [[TL-TK]], explodeAs = [[BIG_UNITEX]], firestandorders = 1, footprintX = 2, footprintZ = 2, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 940, maxSlope = 10, maxVelocity = 2.4, maxWaterDepth = 12, mobilestandorders = 1, movementClass = [[TANK2]], name = [[Hoplit]], noAutoFire = false, noChaseCategory = [[ALL SUB]], objectName = [[TLLHOPLIT]], ovradjust = 1, selfDestructAs = [[BIG_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 740, standingfireorder = 2, standingmoveorder = 1, steeringmode = 1, turnRate = 795, unitname = [[tllhoplit]], unitnumber = 874, 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 = [[PACKO_MISSILE]], onlyTargetCategory = [[VTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { PACKO_MISSILE = { areaOfEffect = 16, burst = 2, burstrate = 0.2, canattackground = false, cegTag = [[Tll_Def_AA_Rocket]], craterBoost = 0, craterMult = 0, energypershot = 0, explosionGenerator = [[custom:FLASH2]], fireStarter = 72, flightTime = 2, guidance = true, impactonly = 1, impulseBoost = 0.123, impulseFactor = 0.123, lineOfSight = true, metalpershot = 0, model = [[missile]], name = [[AA2Missile]], noSelfDamage = true, proximityPriority = 1, range = 1000, reloadtime = 1.7, renderType = 1, selfprop = true, smokedelay = 0.1, smokeTrail = true, soundHitDry = [[packohit]], soundStart = [[packolau]], soundTrigger = true, startsmoke = 1, startVelocity = 520, texture1 = [[null]], texture2 = [[armsmoketrail]], texture3 = [[null]], texture4 = [[null]], tolerance = 9950, tracks = true, turnRate = 68000, turret = true, weaponAcceleration = 160, weaponTimer = 2, weaponType = [[MissileLauncher]], weaponVelocity = 820, wobble = 120, damage = { bombers = 135, default = 5, fighters = 135, flak_resistant = 135, unclassed_air = 135, }, }, } 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 = 12, hitdensity = 45, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllhoplit_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Metal Shards]], featurereclamate = [[smudge01]], footprintX = 2, footprintZ = 2, hitdensity = 4, metal = 0.6400 * unitDef.buildCostMetal, object = [[2x2f]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[all]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------