Code: Select all
-- UNITDEF -- GMSNIPERCUSTOM --
--------------------------------------------------------------------------------
local unitName = "gmsnipercustom"
--------------------------------------------------------------------------------
local unitDef = {
acceleration = 1,
bmcode = "1",
brakeRate = 10,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildTime = 20,
canAttack = true,
canGuard = true,
canMove = true,
canPatrol = true,
canstop = "1",
category = "ARM NOTAIR",
corpse = "sniperII_dead",
defaultmissiontype = "standby",
description = "long or short range mech",
energyMake = 5,
explodeAs = "MEDMECHPOP",
firestandorders = "1",
footprintX = 2,
footprintZ = 2,
iconType = "fed",
idleAutoHeal = 0,
maneuverleashlength = "50",
mass = 2000,
maxDamage = 3500,
maxSlope = 37.50,
maxVelocity = 2,
maxWaterDepth = 5,
minCloakDistance = 70.627418518066,
minCollisionSpeed = 15,
mobilestandorders = "1",
movementClass = "POWERED",
name = "GM Sniper custom",
objectName = "gmsnipercustom.s3o",
power = 45,
pushResistant = true,
radarDistance = 1883.716916400000,
reclaimable = false,
scale = "1.5",
selfDestructAs = "MEDMECHPOP",
shootme = "1",
side = "renpou",
sightDistance = 900.00,
smoothAnim = true,
standingfireorder = "2",
standingmoveorder = "1",
steeringmode = "2",
TEDClass = "KBOT",
threed = "1",
transportByEnemy = false,
turnRate = 1000,
turnInPlace = 0,
unitname = "gmsnipercustom",
unitnumber = "413",
upright = true,
version = "1",
zbuffer = "1",
customparams = {
costrefined = "200",
costexotic = "70",
},
sfxtypes = {
explosiongenerators = {
"custom:kampfertail",
},
},
sounds = {
canceldestruct = "cancel2",
underattack = "fedwarning1",
arrived = {
"feddyok1",
},
cant = {
"cantdo4",
},
count = {
"count5",
"count4",
"count3",
"count2",
"count1",
"count0",
},
ok = {
"mechstep1",
},
select = {
"gundamstart1",
},
},
weapons = {
[1] = {
badTargetCategory = "AIR",
mainDir = "0 0 1",
maxAngleDif = 180,
name = "sniperbeam",
},
},
}
--------------------------------------------------------------------------------
local featureDefs = {
rubble = {
blocking = false,
category = "arm_corpses",
damage = 300,
description = "Wreckage",
footprintX = 2,
footprintZ = 2,
height = "5",
hitdensity = "50",
metal = 10,
object = "rubble",
reclaimable = true,
seqnamereclamate = "tree1reclamate",
world = "All Worlds",
},
sniperII_dead = {
blocking = true,
category = "arm_corpses",
damage = 2800,
description = "Wreckage",
featureDead = "sniperII_heap",
footprintX = 2,
footprintZ = 3,
height = "20",
hitdensity = "30",
metal = 1200,
object = "sniperII_dead",
reclaimable = true,
seqnamereclamate = "tree1reclamate",
world = "All Worlds",
},
sniperII_heap = {
blocking = false,
category = "arm_corpses",
damage = 1800,
description = "Wreckage",
featureDead = "rubble",
footprintX = 3,
footprintZ = 3,
height = "10",
hitdensity = "30",
metal = 500,
object = "sniperII_heap",
reclaimable = true,
seqnamereclamate = "tree1reclamate",
world = "All Worlds",
},
}
unitDef.featureDefs = featureDefs
--------------------------------------------------------------------------------
return lowerkeys({ [unitName] = unitDef })
--------------------------------------------------------------------------------