-- UNITDEF -- TLLORC -- -------------------------------------------------------------------------------- local unitName = "tllorc" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.04, activateWhenBuilt = true, bmcode = 1, brakeRate = 0.019, buildCostEnergy = 21407, buildCostMetal = 4500, builder = false, buildTime = 41765, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL LARGE MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTVTOL SUB WEAPON]], collisionvolumeoffsets = [[0 0 0]], collisionvolumescales = [[44 24 74]], collisionvolumetest = 1, collisionvolumetype = [[Ell]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Battle Sub]], designation = [[]], explodeAs = [[BIG_UNITEX]], firestandorders = 1, footprintX = 3, footprintZ = 3, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 3500, maxVelocity = 1.75, minWaterDepth = 20, mobilestandorders = 1, movementClass = [[UBOAT3]], name = [[Orc]], noAutoFire = false, noChaseCategory = [[NOTSUBNOTSHIP]], objectName = [[TLLORC]], selfDestructAs = [[BIG_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 190, sonarDistance = 720, standingfireorder = 2, standingmoveorder = 1, steeringmode = 1, turnRate = 75, unitname = [[tllorc]], unitnumber = 905, upright = true, waterline = 32, 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] = [[sucormov]], }, select = { [1] = [[sucorsel]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[CORSSUB_WEAPON]], mainDir = [[0 0 1]], maxAngleDif = 90, onlyTargetCategory = [[NOTHOVERNOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { CORSSUB_WEAPON = { areaOfEffect = 16, avoidFriendly = false, burnblow = true, collideFriendly = false, craterBoost = 0, craterMult = 0, explosionGenerator = [[custom:FLASH3]], guidance = true, impactonly = 1, impulseBoost = 0.123, impulseFactor = 0.123, lineOfSight = true, model = [[advtorpedo]], name = [[advTorpedo]], noSelfDamage = true, propeller = 1, range = 690, reloadtime = 1.5, renderType = 1, selfprop = true, soundHitDry = [[xplodep1]], soundStart = [[torpedo1]], startVelocity = 150, tolerance = 18000, tracks = true, turnRate = 1500, turret = true, waterWeapon = true, weaponAcceleration = 25, weaponTimer = 4, weaponType = [[TorpedoLauncher]], weaponVelocity = 220, damage = { default = 1600, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 5, footprintZ = 5, height = 10, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllorc_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Wreckage]], featurereclamate = [[smudge01]], footprintX = 5, footprintZ = 5, height = 4, hitdensity = 20, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3d]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------