-- UNITDEF -- TLLWHALE -- -------------------------------------------------------------------------------- local unitName = "tllwhale" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.02, bmcode = 1, brakeRate = 0.01, buildCostEnergy = 24574, buildCostMetal = 4350, builder = false, buildTime = 37565, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, cantBeTransported = true, category = [[ALL LARGE MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTVTOL SUB WEAPON]], cloakCost = 100, cloakCostMoving = 180, corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Missile Sub]], designation = [[]], explodeAs = [[BIG_UNITEX]], firestandorders = 1, floater = true, footprintX = 3, footprintZ = 3, idleAutoHeal = 5, idleTime = 1800, initCloaked = false, maneuverleashlength = 640, maxDamage = 3150, maxVelocity = 0.85, minicloakdistance = 130, minWaterDepth = 20, mobilestandorders = 1, movementClass = [[UBOAT3]], name = [[Whale]], noAutoFire = false, noChaseCategory = [[NOTSUBNOTSHIP]], objectName = [[TLLWHALE]], selfDestructAs = [[BIG_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 290, sonarDistance = 720, sonarDistanceJam = 100, standingfireorder = 0, standingmoveorder = 1, stealth = true, steeringmode = 1, turnRate = 75, unitname = [[tllwhale]], unitnumber = 9201, waterline = 30, 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 = [[WHALE_VPULSE]], onlyTargetCategory = [[NOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { WHALE_VPULSE = { areaOfEffect = 126, cegTag = [[TLLRAVENTRAIL]], fireStarter = 100, fireSubmersed = true, flightTime = 10, guidance = true, id = 243, lineOfSight = true, metalpershot = 0, model = [[missilehorgue]], name = [[Vpulse2]], noautorange = 1, range = 1300, reloadtime = 12, renderType = 1, selfprop = true, smokedelay = 0.5, smokeTrail = false, soundHitDry = [[vpulsehit]], soundStart = [[vpulsefire]], startsmoke = 1, Texture1 = [[null]], Texture2 = [[null]], Texture3 = [[null]], Texture4 = [[null]], tolerance = 4000, turnRate = 24384, twoPhase = true, vlaunch = true, weaponAcceleration = 40, weaponTimer = 5, weaponType = [[StarburstLauncher]], weaponVelocity = 400, damage = { default = 550, }, }, } unitDef.weaponDefs = weaponDefs -------------------------------------------------------------------------------- local featureDefs = { dead = { blocking = true, category = [[tll_corpses]], damage = 0.6000 * unitDef.maxDamage, description = [[Wreckage]], featureDead = [[heap]], featurereclamate = [[smudge01]], footprintX = 6, footprintZ = 6, height = 10, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllwhale_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Wreckage]], featurereclamate = [[smudge01]], footprintX = 6, footprintZ = 6, height = 4, hitdensity = 20, metal = 0.6400 * unitDef.buildCostMetal, object = [[3x3e]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------