From f95fbc347676abcbaa0c2a09113b90d2bbfb00ba Mon Sep 17 00:00:00 2001 From: sprunk Date: Mon, 13 May 2024 00:45:40 +0200 Subject: [PATCH] Fix track stretching for new engines --- gamedata/configs/unitdefs_data.lua | 2 +- gamedata/weapondefs_post.lua | 9 +++++++++ units/Kern/corthud.lua | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gamedata/configs/unitdefs_data.lua b/gamedata/configs/unitdefs_data.lua index 8e531a6d..010dc81f 100644 --- a/gamedata/configs/unitdefs_data.lua +++ b/gamedata/configs/unitdefs_data.lua @@ -502,7 +502,7 @@ local SDEData = { [310]={"cortech3",{name="Moho Tech Center",side="Kern",description="Unlocks Tier 5 units",activatewhenbuilt=true,autoheal=0,buildcostmetal=650,buildcostenergy=3250,builddistance=100,builder=true,buildinggrounddecaldecayspeed=30,buildinggrounddecalsizex=15,buildinggrounddecalsizey=15,buildinggrounddecaltype="AOplanes/armtech_aoplane.dds",buildpic="Bow/ARMTECH.DDS",buildtime=22400,canassist=false,canbeassisted=false,cancapture=false,category="ALL NOTLAND NOTSUB NOWEAPON NOTSHIP NOTAIR SURFACE",collisionvolumeoffsets="0 0 0",collisionvolumescales="100 64 120",collisionvolumetype="Box",corpse="armtech_dead",damagemodifier=0.4,energyuse=250,explodeas="LARGE_BUILDINGEX",featuredefs={dead = {blocking = true,category = "corpses",collisionvolumeoffsets = "-1.875 0.0 4.375",collisionvolumescales = "53.75 37.25 61.25",collisionvolumetype = "Box",damage = 1140,description = "Tech Center Wreckage",energy = 0,featuredead = "HEAP",featurereclamate = "SMUDGE01",footprintx = 5,footprintz = 4,height = 20,hitdensity = 100,metal = 492,object = "ARMTECH_DEAD",reclaimable = true,seqnamereclamate = "TREE1RECLAMATE",world = "All Worlds",},heap = {blocking = false,category = "heaps",damage = 570,description = "Tech Center Heap",energy = 0,featurereclamate = "SMUDGE01",footprintx = 5,footprintz = 4,height = 4,hitdensity = 100,metal = 197,object = "features/cor4x4a.s3o", collisionvolumescales = "85.0 14.0 6.0", collisionvolumetype = "cylY",reclaimable = true,resurrectable = 0,seqnamereclamate = "TREE1RECLAMATE",world = "All Worlds",},},floater=true,footprintx=7,footprintz=10,hidedamage=true,idleautoheal=0,idletime=1800,istargetingupgrade=true,mass=1300,maxdamage=5980,maxslope=10,maxwaterdepth=255,metalmake=0,objectname="Units/Bow/armtech.dae",onoffable=true,script="Units/TAP/cortech.lua",selfdestructas="LARGE_BUILDING",shownanospray=false,sightdistance=273,sounds={deactivate="targoff1",activate="targon1",count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",select={"targsel1",},underattack="warning1",working="targsel1",},stealth=false,terraformspeed=1000,transportbyenemy=false,usebuildinggrounddecal=true,waterline=4.5,weapondefs={},weapons={},workertime=100,yardmap="oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo",customparams={tier=3, tedclass="tech", func="tech", providetech="TechCenter, T4 TechCenter", requiretech="MohoTech", morphdef={ into = 'cortech4', cmdname = [[Uber]], text = 'Upgrade to Uber Tech Center', time = 200}, normaltex="UnitTextures/corOTA_normal.png", vertdisp=5.725961707138591, }, }}, [311]={"cortech4",{name="Uber Tech Center",side="Kern",description="Unlocks Tier 6 units",activatewhenbuilt=true,autoheal=0,buildcostmetal=1600,buildcostenergy=8000,builddistance=100,builder=true,buildinggrounddecaldecayspeed=30,buildinggrounddecalsizex=15,buildinggrounddecalsizey=15,buildinggrounddecaltype="AOplanes/armtech_aoplane.dds",buildpic="Bow/ARMTECH.DDS",buildtime=54000,canassist=false,canbeassisted=false,cancapture=false,category="ALL NOTLAND NOTSUB NOWEAPON NOTSHIP NOTAIR SURFACE",collisionvolumeoffsets="0 0 0",collisionvolumescales="100 64 120",collisionvolumetype="Box",corpse="armtech_dead",damagemodifier=0.4,energyuse=500,explodeas="LARGE_BUILDINGEX",featuredefs={dead = {blocking = true,category = "corpses",collisionvolumeoffsets = "-1.875 0.0 4.375",collisionvolumescales = "53.75 37.25 61.25",collisionvolumetype = "Box",damage = 1140,description = "Tech Center Wreckage",energy = 0,featuredead = "HEAP",featurereclamate = "SMUDGE01",footprintx = 5,footprintz = 4,height = 20,hitdensity = 100,metal = 492,object = "ARMTECH_DEAD",reclaimable = true,seqnamereclamate = "TREE1RECLAMATE",world = "All Worlds",},heap = {blocking = false,category = "heaps",damage = 570,description = "Tech Center Heap",energy = 0,featurereclamate = "SMUDGE01",footprintx = 5,footprintz = 4,height = 4,hitdensity = 100,metal = 197,object = "features/cor4x4a.s3o", collisionvolumescales = "85.0 14.0 6.0", collisionvolumetype = "cylY",reclaimable = true,resurrectable = 0,seqnamereclamate = "TREE1RECLAMATE",world = "All Worlds",},},floater=true,footprintx=7,footprintz=10,hidedamage=true,idleautoheal=0,idletime=1800,istargetingupgrade=true,mass=3200,maxdamage=7770,maxslope=10,maxwaterdepth=255,metalmake=0,objectname="Units/Bow/armtech.dae",onoffable=true,script="Units/TAP/cortech.lua",selfdestructas="LARGE_BUILDING",shownanospray=false,sightdistance=273,sounds={deactivate="targoff1",activate="targon1",count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",select={"targsel1",},underattack="warning1",working="targsel1",},stealth=false,terraformspeed=1000,transportbyenemy=false,usebuildinggrounddecal=true,waterline=4.5,weapondefs={},weapons={},workertime=100,yardmap="oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo",customparams={tier=4, tedclass="tech", func="tech", providetech="TechCenter, T4 TechCenter", requiretech="UberTech", normaltex="UnitTextures/corOTA_normal.png", vertdisp=5.725961707138591, }, }}, [312]={"cortermite",{name="Backburner",side="Kern",description="Heavy All-terrain Assault Spider",acceleration=0.171,autoheal=0,brakerate=0.52499998,buildcostmetal=1200,buildcostenergy=12100,buildoptions={},buildpic="Kern/CORTERMITE.DDS",buildtime=25200,canmove=true,category="ALL VEHICLE WEAPON NOTSUB NOTAIR SURFACE",collisionvolumeoffsets="0 -14 0",collisionvolumescales="37 38 56",collisionvolumetype="Box",corpse="cortermite_dead",explodeas="BIG_UNITEX",featuredefs={heap={footprintx=3,description="Termite Heap",resurrectable=0,hitdensity=100,blocking=false,collisionvolumescales="55.0 4.0 6.0",damage=1500,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="cylY",reclaimable=true,footprintz=3,world="all",object="Features/cor3X3A.s3o",category="heaps",energy=0,metal=209,},dead={footprintx=3,description="Termite Wreckage",featuredead="cortermite_heap",hitdensity=100,blocking=true,collisionvolumescales="32.3684997559 15.844833374 33.5386505127",damage=2000,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="Box",world="all",reclaimable=true,object="Features/CORTERMITE_DEAD",footprintz=3,collisionvolumeoffsets="0.0 -1.81045331299 4.38243865967",height=10,category="corpses",energy=0,metal=523,},},footprintx=3,footprintz=3,icontype="bot_assault",idleautoheal=0,idletime=1800,mass=2400,maxdamage=2800,maxslope=50,maxvelocity=2.093000013,maxwaterdepth=30,metalmake=0,movementclass="TKBOT3",mygravity=10000,nochasecategory="VTOL",objectname="Units/Kern/CORTERMITE.s3o",script="Units/TAP/cortermite.cob",selfdestructas="BIG_UNIT",sightdistance=380,sounds={ok={"spider2",},count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",cant={"cantdo4",},select={"spider",},underattack="warning1",},stealth=false,transportbyenemy=false,turninplaceanglelimit=140,turninplacespeedlimit=1.06260002,turnrate=1056,weapondefs={ core_termite_flamethrower={ craterboost=0, firestarter=100, avoidfeature=false, craterareaofeffect=0, burst=17, name="FlameThrower", targetmoveerror=0.001, soundhitwet="sizzle", noselfdamage=true, burstrate=0.01, impulseboost=0, groundbounce=false, cratermult=0, weapontimer=2.5, turret=true, weapontype="Flame", soundtrigger=false, soundstart="Flamhvy1", soundhitwetvolume=0.5, impulsefactor=0, intensity=0.79999998, flamegfxtime=1.4, colorMap="1 1 1 1 1 1 0.96 0.96 0.99 0.73 0.25 0.45 0.96 0.63 0.18 0.29 0.98 0.40 0.07 0.03 0.47 0.31 0.29 0.008 0.84 0.07 0.00 0.001 0.19 0.16 0.15 0.0002", tolerance=2500, proximitypriority=3, range=380, damage={ default=25, }, reloadtime=1.2, sprayangle=1000, weaponvelocity=300, sizegrowth=1.12, areaofeffect=64, edgeeffectiveness=0.9, }},weapons={ { name="cortermite_core_termite_flamethrower", onlytargetcategory="SURFACE", },},customparams={tier=3, tedclass="spider", paralyzemultiplier=0.125, normaltex="UnitTextures/bot_normal.dds", icontag="bot_assault", vertdisp=4.469525374021986, }, }}, - [313]={"corthud",{name="Thug",side="Kern",description="Plasma Bot [x2]",acceleration=0.13786,autoheal=0,brakerate=0.67500001,buildcostmetal=325,buildcostenergy=1132,buildoptions={},buildpic="Kern/CORTHUD.DDS",buildtime=9750,canmove=true,category="KBOT MOBILE WEAPON ALL NOTSUB NOTSHIP NOTAIR SURFACE",collisionvolumeoffsets="0 0 0",collisionvolumescales="25 27 25",collisionvolumetype="CylY",corpse="corthud_dead",crushresistance=400,energystorage=25,explodeas="BIG_UNITEX",featuredefs={heap={footprintx=2,description="Thud Heap",resurrectable=0,hitdensity=100,blocking=false,collisionvolumescales="35.0 4.0 6.0",damage=370,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="cylY",reclaimable=true,world="All Worlds",footprintz=2,object="Features/cor2X2D.s3o",height=4,category="heaps",energy=0,metal=38,},dead={footprintx=2,description="Thud Wreckage",featuredead="corthud_heap",hitdensity=100,blocking=true,collisionvolumescales="27.809387207 16.8939208984 40.2852935791",damage=640,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="Box",world="All Worlds",reclaimable=true,object="Features/CORTHUD_DEAD",footprintz=2,collisionvolumeoffsets="-1.26663208008 -3.12783955078 2.54402923584",height=20,category="corpses",energy=0,metal=96,},},footprintx=2,footprintz=2,icontype="bot_plasma",idleautoheal=0,idletime=1800,leavetracks=true,losemitheight=32,mass=569,maxdamage=790,maxslope=14,maxvelocity=1.452,maxwaterdepth=21,metalmake=0,movementclass="KBOT2",mygravity=2,nochasecategory="VTOL",objectname="Units/Kern/CORTHUD.s3o",script="Units/TAP/corthud.cob",selfdestructas="BIG_UNIT",sightdistance=420,sounds={ok={"kbcormov",},count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",cant={"cantdo4",},select={"kbcorsel",},underattack="warning1",},stealth=false,trackoffset=2,trackstrength=8,trackstretch=0.32499999,tracktype="kbottrack1.bmp",trackwidth=26,transportbyenemy=false,turninplaceanglelimit=140,turninplacespeedlimit=0.99000001,turnrate=1099,upright=true,weapondefs={arm_ham={name="PlasmaCannon", craterboost=0,explosiongenerator="custom:LIGHT_PLASMA",predictboost=0.40000001,avoidfeature=false,soundhit="xplomed3",soundstart="cannon1",soundhitwetvolume=0.5,soundhitwet="splshbig",impulsefactor=0.123,impulseboost=0.123,turret=true,canattackground=true,proximitypriority=-100, craterareaofeffect=0,cratermult=0,gravityaffected="false",noselfdamage=true, weapontype="MissileLauncher", model="Projectiles/plasmatpt",startvelocity=461.3, weaponacceleration=-200,weaponvelocity=461.3,range=360,damage={default=130,},reloadtime=1.95, areaofeffect=28,trajectoryheight=0.5, customparams={minrange=130},},},weapons={ { onlytargetcategory="SURFACE", badtargetcategory="VEHICLE DEFENSE", name="corthud_arm_ham", }, },customparams={tier=0, tedclass="bot", func="plasma", groupdef={ size = 2, delay = 16,}, morphdef={ into = 'corcan', cmdname = [[Can]], text = 'Upgrade to Can', require = 'AdvancedTech',}, minrange=130, normaltex="UnitTextures/bot_normal.dds", icontag="bot_plasma", vertdisp=4.282842712474619, }, }}, + [313]={"corthud",{name="Thug",side="Kern",description="Plasma Bot [x2]",acceleration=0.13786,autoheal=0,brakerate=0.67500001,buildcostmetal=325,buildcostenergy=1132,buildoptions={},buildpic="Kern/CORTHUD.DDS",buildtime=9750,canmove=true,category="KBOT MOBILE WEAPON ALL NOTSUB NOTSHIP NOTAIR SURFACE",collisionvolumeoffsets="0 0 0",collisionvolumescales="25 27 25",collisionvolumetype="CylY",corpse="corthud_dead",crushresistance=400,energystorage=25,explodeas="BIG_UNITEX",featuredefs={heap={footprintx=2,description="Thud Heap",resurrectable=0,hitdensity=100,blocking=false,collisionvolumescales="35.0 4.0 6.0",damage=370,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="cylY",reclaimable=true,world="All Worlds",footprintz=2,object="Features/cor2X2D.s3o",height=4,category="heaps",energy=0,metal=38,},dead={footprintx=2,description="Thud Wreckage",featuredead="corthud_heap",hitdensity=100,blocking=true,collisionvolumescales="27.809387207 16.8939208984 40.2852935791",damage=640,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="Box",world="All Worlds",reclaimable=true,object="Features/CORTHUD_DEAD",footprintz=2,collisionvolumeoffsets="-1.26663208008 -3.12783955078 2.54402923584",height=20,category="corpses",energy=0,metal=96,},},footprintx=2,footprintz=2,icontype="bot_plasma",idleautoheal=0,idletime=1800,leavetracks=true,losemitheight=32,mass=569,maxdamage=790,maxslope=14,maxvelocity=1.452,maxwaterdepth=21,metalmake=0,movementclass="KBOT2",mygravity=2,nochasecategory="VTOL",objectname="Units/Kern/CORTHUD.s3o",script="Units/TAP/corthud.cob",selfdestructas="BIG_UNIT",sightdistance=420,sounds={ok={"kbcormov",},count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",cant={"cantdo4",},select={"kbcorsel",},underattack="warning1",},stealth=false,trackoffset=2,trackstrength=8,trackstretch=3.077,tracktype="kbottrack1.bmp",trackwidth=26,transportbyenemy=false,turninplaceanglelimit=140,turninplacespeedlimit=0.99000001,turnrate=1099,upright=true,weapondefs={arm_ham={name="PlasmaCannon", craterboost=0,explosiongenerator="custom:LIGHT_PLASMA",predictboost=0.40000001,avoidfeature=false,soundhit="xplomed3",soundstart="cannon1",soundhitwetvolume=0.5,soundhitwet="splshbig",impulsefactor=0.123,impulseboost=0.123,turret=true,canattackground=true,proximitypriority=-100, craterareaofeffect=0,cratermult=0,gravityaffected="false",noselfdamage=true, weapontype="MissileLauncher", model="Projectiles/plasmatpt",startvelocity=461.3, weaponacceleration=-200,weaponvelocity=461.3,range=360,damage={default=130,},reloadtime=1.95, areaofeffect=28,trajectoryheight=0.5, customparams={minrange=130},},},weapons={ { onlytargetcategory="SURFACE", badtargetcategory="VEHICLE DEFENSE", name="corthud_arm_ham", }, },customparams={tier=0, tedclass="bot", func="plasma", groupdef={ size = 2, delay = 16,}, morphdef={ into = 'corcan', cmdname = [[Can]], text = 'Upgrade to Can', require = 'AdvancedTech',}, minrange=130, normaltex="UnitTextures/bot_normal.dds", icontag="bot_plasma", vertdisp=4.282842712474619, }, }}, [314]={"cortide",{name="Tidal Generator",side="Kern",description="Produces Energy",activatewhenbuilt=true,autoheal=0,buildcostmetal=90,buildcostenergy=124,buildoptions={},buildpic="Kern/CORTIDE.DDS",buildtime=2700,category="ALL NOTLAND NOTSUB NOWEAPON NOTSHIP NOTAIR SURFACE",collisionvolumeoffsets="-3 0 -1",collisionvolumescales="28 26 33",collisionvolumetype="Box",corpse="cortide_dead",energystorage=50,explodeas="TIDAL_DEATHEX",featuredefs={heap={footprintx=2,description="Tidal Generator Heap",resurrectable=0,hitdensity=100,blocking=false,collisionvolumescales="35.0 4.0 6.0",damage=185,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="cylY",reclaimable=true,world="All Worlds",footprintz=2,object="Features/cor2X2D.s3o",height=4,category="heaps",energy=0,metal=17,},dead={footprintx=4,description="Tidal Generator Wreckage",featuredead="cortide_heap",hitdensity=100,blocking=false,collisionvolumescales="43.4789733887 28.4617004395 39.825012207",damage=145,seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="Box",world="All Worlds",reclaimable=true,object="Features/CORTIDE_DEAD",footprintz=4,collisionvolumeoffsets="0.0854949951172 0.00585021972656 -1.6875",height=4,category="corpses",energy=0,metal=53,},},footprintx=3,footprintz=3,icontype="structure_energy",idleautoheal=0,idletime=1800,mass=180,maxdamage=350,maxslope=10,metalmake=0,minwaterdepth=20,objectname="Units/Kern/CORTIDE.s3o",onoffable=true,script="Units/TAP/cortide.cob",selfdestructas="SMALL_BUILDING",sightdistance=130,sounds={select={"tidegen2",},underattack="warning1",count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",},stealth=false,tidalgenerator=1,transportbyenemy=false,waterline=13,weapondefs={},weapons={},yardmap="wwwwwwwww",customparams={tier=0, tedclass="resource", func="energy", specialty="tide", normaltex="UnitTextures/corOTA_normal.png", icontag="structure_energy", vertdisp=4.469525374021986, }, }}, [315]={"cortl",{name="Urchin",side="Kern",description="Torpedo Launcher",activatewhenbuilt=true,autoheal=0,buildcostmetal=600,buildcostenergy=2195,buildoptions={},buildpic="Kern/CORTL.DDS",buildtime=18000,category="ALL NOTLAND WEAPON NOTSHIP NOTSUB SPECIAL NOTAIR SURFACE SEA DEFENSE",corpse="cortl_dead",explodeas="MEDIUM_BUILDINGEX",featuredefs={dead={footprintx=3,description="Urchin Wreckage",hitdensity=100,blocking=false,collisionvolumescales="30.8800354004 19.4210968018 32.1831512451",damage=912,seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="Box",world="All Worlds",reclaimable=true,object="Features/CORTL_DEAD",footprintz=3,collisionvolumeoffsets="-0.449691772461 -1.59912109332e-06 0.155464172363",height=4,category="corpses",energy=0,metal=205,},},footprintx=3,footprintz=3,icontype="def_cannon",idleautoheal=0,idletime=1800,mass=1200,maxdamage=2280,maxslope=10,metalmake=0,minwaterdepth=12,objectname="Units/Kern/CORTL.s3o",script="Units/TAP/cortl.cob",selfdestructas="MEDIUM_BUILDING",sightdistance=455,sounds={ok={"shcormov",},count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",cant={"cantdo4",},select={"shcorsel",},underattack="warning1",},stealth=false,transportbyenemy=false,waterline=13,weapondefs={coax_torpedo={craterboost=0,reloadtime=1.70000005,startvelocity=200,weaponvelocity=320,weaponacceleration=60,impulsefactor=0.123,avoidfriendly=false,explosiongenerator="custom:FLASH2",tracks=true,avoidfeature=false,impulseboost=0.123,burnblow=true,craterareaofeffect=0,damage={default=280,},range=600,flighttime=1.35000002,weapontimer=4,cratermult=0,turret=true,edgeeffectiveness=0.40000001,collidefriendly=true,soundhit="xplodep2",soundstart="torpedo1",weapontype="TorpedoLauncher",name="Level1TorpedoLauncher",model="Projectiles/torpedo",noselfdamage=true,waterweapon=true,turnrate=2500,areaofeffect=48,targetBorder=-1,},},weapons={ { onlytargetcategory="SEA", name="cortl_coax_torpedo", },},yardmap="wwwwwwwww",customparams={tier=0, tedclass="defense", normaltex="UnitTextures/corOTA_normal.png", icontag="def_cannon", vertdisp=4.469525374021986, }, }}, [316]={"cortoast",{name="Toaster",side="Kern",description="Heavy Plasma Cannon",activatewhenbuilt=true,autoheal=0,buildcostmetal=1800,buildcostenergy=17189,buildinggrounddecaldecayspeed=30,buildinggrounddecalsizex=5,buildinggrounddecalsizey=5,buildinggrounddecaltype="AOplanes/cortoast_aoplane.dds",buildoptions={},buildpic="Kern/CORTOAST.DDS",buildtime=38700,category="ALL NOTLAND WEAPON NOTSUB NOTSHIP NOTAIR SURFACE DEFENSE",corpse="cortoast_dead",damagemodifier=0.25,explodeas="LARGE_BUILDINGEX",featuredefs={heap={footprintx=3,world="All Worlds",description="Toaster Heap",resurrectable=0,collisionvolumetype="cylY",metal=241,reclaimable=true,category="heaps",hitdensity=100,object="Features/cor3X3A.s3o",footprintz=3,blocking=false,height=4,collisionvolumescales="55.0 4.0 6.0",energy=0,damage=576,},dead={footprintx=3,description="Toaster Wreckage",featuredead="cortoast_heap",hitdensity=100,blocking=true,collisionvolumescales="66.412979126 46.1585998535 60.6329803467",damage=2304,featurereclamate="SMUDGE01",seqnamereclamate="TREE1RECLAMATE",collisionvolumetype="Box",world="All Worlds",reclaimable=true,object="Features/CORTOAST_DEAD",footprintz=3,collisionvolumeoffsets="2.98622894287 -7.32421874261e-08 6.36557769775",height=20,category="corpses",energy=0,metal=1507,},},footprintx=4,footprintz=4,hightrajectory=2,icontype="def_plasma",idleautoheal=0,idletime=1800,mass=3600,maxdamage=2300,maxslope=10,metalmake=0,nochasecategory="MOBILE",objectname="Units/Kern/CORTOAST.s3o",script="Units/TAP/cortoast.cob",selfdestructas="LARGE_BUILDING",sightdistance=416,sounds={ok={"twrturn3",},select={"twrturn3",},count={"count6","count5","count4","count3","count2","count1",},canceldestruct="cancel2",cant={"cantdo4",},underattack="warning1",uncloak="kloak2un",cloak="kloak2",},stealth=false,transportbyenemy=false,usebuildinggrounddecal=true,usepiececollisionvolumes=1,weapondefs={cortoast_gun={craterboost=0,gravityaffected="true",impulsefactor=0.5,areaofeffect=164,explosiongenerator="custom:genericshellexplosion-medium",predictboost=0.2,avoidfeature=false,craterareaofeffect=164,range=980,damage={default=450,},reloadtime=2.55,turret=true,accuracy=450,weaponvelocity=450,impulseboost=0.123,soundhitwetvolume=0.5,soundhit="xplomed2",soundstart="cannhvy5",weapontype="Cannon",name="PopupCannon",noselfdamage=true,soundhitwet="splslrg",edgeeffectiveness=0.33,cratermult=0,},cortoast_gun_high={craterboost=0,gravityaffected="true",impulsefactor=2,areaofeffect=240,explosiongenerator="custom:genericshellexplosion-medium",proximitypriority=-2,avoidfeature=false,craterareaofeffect=240,range=980,damage={default=1077,},reloadtime=7,turret=true,accuracy=450,weaponvelocity=440,impulseboost=0.123,soundhitwetvolume=0.5,soundhit="xplomed2",soundstart="cannhvy5",weapontype="Cannon",name="PopupCannon",noselfdamage=true,soundhitwet="splslrg",edgeeffectiveness=0.6,cratermult=0,},},weapons={ { badtargetcategory="VTOL GROUNDSCOUT VEHICLE", maxangledif=230, name="cortoast_cortoast_gun", onlytargetcategory="SURFACE", maindir="0 1 0", }, { onlytargetcategory="SURFACE", badtargetcategory="VTOL GROUNDSCOUT VEHICLE", name="cortoast_cortoast_gun_high", },},yardmap="oooooooooooooooo",customparams={tier=2, tedclass="defense", func="plasma", specialty="midrange", requiretech="AdvancedTech", normaltex="UnitTextures/corOTA_normal.png", icontag="def_plasma", vertdisp=4.672717132202972, }, }}, diff --git a/gamedata/weapondefs_post.lua b/gamedata/weapondefs_post.lua index 88fb0072..657f49d3 100644 --- a/gamedata/weapondefs_post.lua +++ b/gamedata/weapondefs_post.lua @@ -134,3 +134,12 @@ end -- apply mod options that need _post ModOptions_Post(UnitDefs, WeaponDefs) + +-- engine compatibility +if not Script.IsEngineMinVersion(105, 0, 2365) then + for name, ud in pairs(UnitDefs) do + if ud.trackstretch then + ud.trackstretch = 1 / ud.trackstretch + end + end +end diff --git a/units/Kern/corthud.lua b/units/Kern/corthud.lua index d5ede316..fd222dd0 100644 --- a/units/Kern/corthud.lua +++ b/units/Kern/corthud.lua @@ -35,7 +35,7 @@ return { sightdistance = 380, trackoffset = 2, trackstrength = 8, - trackstretch = 0.325, + trackstretch = 3.077, tracktype = "kbottrack1.bmp", trackwidth = 26, turninplaceanglelimit = 140,