https://www.youtube.com/watch?v=0iNeAVR_doQ
anyone have thoughts?
Code: Select all
-- UNITDEF -- T61 --
--------------------------------------------------------------------------------
local unitName = "t61"
--------------------------------------------------------------------------------
local unitDef = {
acceleration = 0.05,
bmcode = "1",
brakeRate = 1,
builder = false,
buildTime = 10,
buildpic = "T61.png",
canAttack = true,
canGuard = true,
canMove = true,
canPatrol = true,
cantBeTransported = true,
canstop = "1",
category = " NOTAIR",
corpse = "dead",
defaultmissiontype = "standby",
description = "Support tank",
explodeAs = "RED_EXPLOSION",
firestandorders = "1",
footprintX = 3,
footprintZ = 3,
collisionvolumetype = "box",
collisionvolumescales = "25 18 32",
collisionvolumeoffsets = "0 0 0",
iconType = "fed",
idleAutoHeal = 0,
leaveTracks = true,
maneuverleashlength = "300",
mass = 2000,
maxDamage = 900,
maxSlope = 15.00,
maxVelocity = 2.4,
maxWaterDepth = 2,
minCloakDistance = 76.84440612793,
mobilestandorders = "1",
movementClass = "tank3",
name = "Type 61 tank",
noChaseCategory = "AIR",
objectName = "units/T61.s3o",
power = 4,
reclaimable = false,
script = "t61.cob",
selfDestructAs = "RED_EXPLOSION",
shootme = "1",
side = "renpou",
sightDistance = 900.00,
smoothAnim = true,
standingfireorder = "2",
standingmoveorder = "1",
steeringmode = "2",
TEDClass = "KBOT",
threed = "1",
trackOffset = 12,
trackStrength = 5,
trackStretch = 1,
trackType = "StdTank",
trackWidth = 18,
transportByEnemy = false,
turnRate = 500,
unitname = "t61",
unitnumber = "424",
customparams = {
factionname = "federation",
},
sfxtypes = {
explosiongenerators = {
"custom:greymuzzle",
},
},
sounds = {
canceldestruct = "cancel2",
underattack = "warning1",
arrived = {
"tank",
},
cant = {
"cantdo4",
},
count = {
"count5",
"count4",
"count3",
"count2",
"count1",
"count0",
},
ok = {
"tank",
},
select = {
"tank",
},
},
weapons = {
[1] = {
name = "t61shot",
onlyTargetCategory = "NOTAIR",
},
[2] = {
badTargetCategory = "AIR",
mainDir = "0 0.5 1",
maxAngleDif = 110,
name = "smokegrenade",
},
},
}
--------------------------------------------------------------------------------
local featureDefs = {
dead = {
blocking = false,
category = "_corpses",
damage = 800,
description = "Wreckage",
footprintX = 4,
footprintZ = 4,
height = "10",
hitdensity = "70",
collisionvolumetype = "box",
collisionvolumescales = "25 18 32",
collisionvolumeoffsets = "0 0 0",
object = "T61_dead",
reclaimable = true,
seqnamereclamate = "tree1reclamate",
world = "All Worlds",
},
}
unitDef.featureDefs = featureDefs
--------------------------------------------------------------------------------
return lowerkeys({ [unitName] = unitDef })
--------------------------------------------------------------------------------
Code: Select all
--------------------------------------------------------------------------------
local weaponDef = {
areaOfEffect = 32,
beamTime = 0.4,
weapontype = "LaserCannon",
coreThickness = 0.2,
explosionGenerator = "custom:BulletImpact",
fallOffRate = 0.1,
--filename = "weapons/t61shot.tdf",
impactOnly = 0,
impulseFactor = 0,
largeBeamLaser = true,
movingAccuracy = 500,
name = "150mm cannon",
noSelfDamage = true,
projectiles = 2,
range = 470,
reloadtime = 2,
rgbColor = "1 0.2 0.0",
rgbColor2 = "1 0.5 0.3",
soundHit = "boom1",
soundStart = "boom3",
soundTrigger = true,
startVelocity = 1000,
texture1 = "bigshot",
texture2 = "bigshot_front",
thickness = 1,
turret = true,
weaponTimer = 2,
weaponVelocity = 1000,
customparams = {
damagetype = "explosive",
},
damage = {
default = 120,
},
}
--------------------------------------------------------------------------------
return lowerkeys({["t61shot"] = weaponDef})
--------------------------------------------------------------------------------