-- UNITDEF -- TLLPRIVATE -- -------------------------------------------------------------------------------- local unitName = "tllprivate" -------------------------------------------------------------------------------- local unitDef = { acceleration = 0.24, bmcode = 1, brakeRate = 0.4, buildCostEnergy = 535, buildCostMetal = 60, builder = false, buildTime = 1920, canAttack = true, canGuard = true, canMove = true, canPatrol = true, canstop = 1, category = [[ALL MOBILE NOTDEFENSE NOTHOVERNOTVTOL NOTSUB NOTSUBNOTSHIP NOTVTOL TINY WEAPON]], collisionVolumeOffsets = [[0 -8 0]], collisionVolumeScales = [[24 46 24]], collisionVolumeType = [[CylY]], corpse = [[dead]], defaultmissiontype = [[Standby]], description = [[Infantry Kbot]], designation = [[]], energyMake = 0.5, energyUse = 0.5, explodeAs = [[SMALL_UNITEX]], firestandorders = 1, footprintX = 2, footprintZ = 2, idleAutoHeal = 5, idleTime = 1800, maneuverleashlength = 640, maxDamage = 350, maxSlope = 17, maxVelocity = 2.85, maxWaterDepth = 12, mobilestandorders = 1, movementClass = [[KBOT2]], name = [[Private]], noAutoFire = false, noChaseCategory = [[SUB VTOL]], objectName = [[TLLPRIVATE]], selfDestructAs = [[SMALL_UNIT]], shootme = 1, side = [[TLL]], sightDistance = 455, standingfireorder = 2, standingmoveorder = 2, steeringmode = 2, turnRate = 1120, unitname = [[tllprivate]], unitnumber = 815, upright = true, featureDefs = nil, sfxtypes = { explosiongenerators = { [1] = [[custom:pw_muzzle]], }, }, sounds = { canceldestruct = [[cancel2]], underattack = [[tllwarning]], cant = { [1] = [[wearoff]], }, count = { [1] = [[tllcount]], [2] = [[tllcount]], [3] = [[tllcount]], [4] = [[tllcount]], [5] = [[tllcount]], [6] = [[tllcount]], }, ok = { [1] = [[tllkbotmove]], }, select = { [1] = [[tllunitok]], }, }, weaponDefs = nil, weapons = { [1] = { def = [[EMG]], onlyTargetCategory = [[NOTVTOL]], }, }, } -------------------------------------------------------------------------------- local weaponDefs = { EMG = { areaOfEffect = 8, avoidFeature = false, burst = 3, burstrate = 0.1, cegTag = [[Trail_emg]], craterBoost = 0, craterMult = 0, endsmoke = 0, explosionGenerator = [[custom:EMG_HIT]], fireStarter = 100, impactonly = 1, impulseBoost = 0.123, impulseFactor = 0.123, intensity = 0.7, lineOfSight = true, name = [[peewee]], noSelfDamage = true, range = 180, reloadtime = 0.31, renderType = 4, rgbColor = [[0.83 0.57 0]], size = 0.82, soundStart = [[flashemg]], sprayAngle = 1180, startsmoke = 0, tolerance = 5000, turret = true, weaponTimer = 0.1, weaponType = [[Cannon]], weaponVelocity = 500, damage = { default = 10, raider_resistant = 5, 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 = 2, footprintZ = 2, height = 20, hitdensity = 100, metal = 0.8000 * unitDef.buildCostMetal, object = [[tllprivate_dead]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, heap = { blocking = false, category = [[heaps]], damage = 0.3600 * unitDef.maxDamage, description = [[Wreckage]], featurereclamate = [[smudge01]], footprintX = 2, footprintZ = 2, height = 4, hitdensity = 100, metal = 0.6400 * unitDef.buildCostMetal, object = [[2x2a]], reclaimable = true, seqnamereclamate = [[tree1reclamate]], world = [[All Worlds]], }, } unitDef.featureDefs = featureDefs -------------------------------------------------------------------------------- return lowerkeys({[unitName] = unitDef}) --------------------------------------------------------------------------------