Skip to content

Commit

Permalink
legion tunings (#3281)
Browse files Browse the repository at this point in the history
Minor updates and bugfixes.

Added missing unit groups to a few entries
New torpedo model (thanks to Tharsis)
Fixed radar pivot point
Legdrone now fires 33% faster for 3/4 damage, making inaccuracy hurt less (was underperforming heavily)
And Triton now able to be shot by submarines and similar (it's not a hover)
  • Loading branch information
TheSilverHornet authored Jul 1, 2024
1 parent a550383 commit 3078e8a
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 184 deletions.
2 changes: 1 addition & 1 deletion gamedata/armordefs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ local armorDefs = {
"legtriarius",
"legtriariusheatray",
"legtriariusdrone",
"legpontus",
"legportent",
"corarch",
"armaas",
"armcrus",
Expand Down
6 changes: 5 additions & 1 deletion gamedata/icontypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2532,14 +2532,18 @@ local icontypes = {
bitmap = "icons/air_trans.png",
size = 1.83749986
},
legsy = {
legjim = {
bitmap = "icons/factory_ship.png",
size = 1.52250004
},
legtide = {
bitmap = "icons/energy1_1.0.png",
size = 1.04999995
},
legtl = {
bitmap = "icons/defence_1_naval.png",
size = 1.10249984
},
legfmkr = {
bitmap = "icons/metalmaker_t1.png",
size = 0.78749996
Expand Down
4 changes: 2 additions & 2 deletions language/en/units.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
"legsh": "Glaucus",
"legsilo": "Supernova",
"legsnapper": "Snapper",
"legsy": "Shipyard",
"legjim": "Shipyard",
"leggob": "Goblin",
"leghades": "Alaris",
"leghastatus": "Hastatus",
Expand Down Expand Up @@ -1521,7 +1521,7 @@
"legsh": "Fast Attack Hovercraft",
"legsilo": "Nuclear ICBM Launcher",
"legsnapper": "Amphibious Screwdrive Bomb",
"legsy": "Produces Tech 1 Ships",
"legjim": "Produces Tech 1 Ships",
"leggob": "Light Skirmish Bot",
"leghades": "Fast Assault Tank",
"leghastatus": "Assault Frigate",
Expand Down
2 changes: 1 addition & 1 deletion luaui/configs/buildmenu_sorting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ local unitOrderTable = {

['armsy'] = 211100,
['corsy'] = 211200,
['legsy'] = 211300,
['legjim'] = 211300,
['armfhp'] = 212100,
['corfhp'] = 212200,
['legfhp'] = 212250,
Expand Down
Binary file modified objects3d/Units/armrad.s3o
Binary file not shown.
Binary file added objects3d/legtorpedo.s3o
Binary file not shown.
1 change: 1 addition & 0 deletions units/ArmBuildings/LandUtil/armdrag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ return {
sightdistance = 1,
yardmap = "ffff",
customparams = {
unitgroup = "util",
usebuildinggrounddecal = true,
buildinggrounddecaltype = "decals/armdrag_aoplane.dds",
buildinggrounddecalsizey = 4,
Expand Down
1 change: 1 addition & 0 deletions units/ArmBuildings/LandUtil/armfort.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ return {
sightdistance = 1,
yardmap = "ffff",
customparams = {
unitgroup = "util",
usebuildinggrounddecal = true,
buildinggrounddecaltype = "decals/armfort_aoplane.dds",
buildinggrounddecalsizey = 4,
Expand Down
1 change: 1 addition & 0 deletions units/CorBuildings/LandUtil/cordrag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ return {
sightdistance = 1,
yardmap = "ffff",
customparams = {
unitgroup = "util",
usebuildinggrounddecal = true,
buildinggrounddecaltype = "decals/cordrag_aoplane.dds",
buildinggrounddecalsizey = 4,
Expand Down
1 change: 1 addition & 0 deletions units/CorBuildings/LandUtil/corfort.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ return {
sightdistance = 1,
yardmap = "ffff",
customparams = {
unitgroup = "util",
usebuildinggrounddecal = true,
buildinggrounddecaltype = "decals/corfort_aoplane.dds",
buildinggrounddecalsizey = 4,
Expand Down
6 changes: 3 additions & 3 deletions units/Legion/Air/legdrone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ return {
ownerExpAccWeight = 4.0,
proximitypriority = 3,
range = 300,
reloadtime = 0.8,
reloadtime = 0.6,
rgbcolor = "1 0.95 0.4",
soundhit = "bimpact3",
soundhitwet = "splshbig",
Expand All @@ -136,8 +136,8 @@ return {
weapontype = "LaserCannon",
weaponvelocity = 990,
damage = {
default = 16,
vtol = 5,
default = 12,
vtol = 4,
},
},
},
Expand Down
15 changes: 2 additions & 13 deletions units/Legion/Labs/legsy.lua → units/Legion/Labs/legjim.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
return {
legsy = {
legjim = {
maxacc = 0,
maxdec = 0,
energycost = 1200,
Expand Down Expand Up @@ -33,18 +33,7 @@ return {
yardmap = "oyyyyyyoyccccccyyccccccyyccccccyyccccccyyccccccyyccccccyoyyyyyyo",
buildoptions = {
[1] = "legcs",
[2] = "legstingray",--
[3] = "legvelite",--
[4] = "legpontus",
[5] = "leghastatus",
[6] = "legtriarius",--
[7] = "legsub",--
[8] = "correcl",
[9] = "legoptio",
[10] = "leghastatusalt",
[11] = "legportent",
[12] = "legtriariusdrone",
[13] = "legtriariusheatray"--mortar


},
customparams = {
Expand Down
6 changes: 3 additions & 3 deletions units/Legion/Ships/legpontus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ return {
armseap_weapon1 = {
areaofeffect = 16,
avoidfeature = false,
avoidfriendly = true,
avoidfriendly = false,
burnblow = true,
cegtag = "torpedotrail-tiny",
collidefriendly = false,
Expand All @@ -125,7 +125,7 @@ return {
gravityaffected = "false",
impulseboost = 0.123,
impulsefactor = 0.123,
model = "torpedo.s3o",
model = "legtorpedo.s3o",
name = "Homing torpedo launcher",
noselfdamage = true,
predictboost = 0.3,
Expand All @@ -139,7 +139,7 @@ return {
startvelocity = 45,
tolerance = 12000,
tracks = true,
turnrate = 4500,
turnrate = 5200,
turret = true,
waterweapon = true,
weaponacceleration = 2,
Expand Down
2 changes: 1 addition & 1 deletion units/Legion/Ships/legstingray.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ return {
flighttime = 3,
impulseboost = 0.123,
impulsefactor = 0.123,
model = "cortorpedo.s3o",
model = "legtorpedo.s3o",
name = "Light torpedo launcher",
noselfdamage = true,
predictboost = 1,
Expand Down
4 changes: 2 additions & 2 deletions units/Legion/Ships/legtriariusdrone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ return {
maxdec = 0.02757,
buildangle = 16384,
energycost = 8000,
metalcost = 820,
metalcost = 760,
buildpic = "legtriariusdrone.DDS",
buildtime = 11500,
canmove = true,
Expand Down Expand Up @@ -209,7 +209,7 @@ return {
badtargetcategory = "VTOL",
def = "heatroy",
onlytargetcategory = "SURFACE",
fastautoretargeting = true,
fastautoretargeting = false,
},

[2] = {
Expand Down
2 changes: 1 addition & 1 deletion units/Legion/Ships/legvelite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ return {
sightdistance = 550,
turninplace = true,
turninplaceanglelimit = 90,
turnrate = 400,
turnrate = 430,
waterline = 0,
customparams = {
unitgroup = 'weapon',
Expand Down
155 changes: 0 additions & 155 deletions units/Legion/Ships/legvelitealt.lua

This file was deleted.

2 changes: 1 addition & 1 deletion units/Legion/Vehicles/T2 Vehicles/legfloat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ return {
buildpic = "LEGFLOAT.DDS",
buildtime = 16000,
canmove = true,
category = "ALL TANK MOBILE WEAPON NOTSHIP NOTAIR NOTSUB SURFACE PHIB EMPABLE",
category = "ALL TANK MOBILE WEAPON NOTSHIP NOTHOVER NOTAIR NOTSUB SURFACE PHIB EMPABLE",
collisionvolumeoffsets = "0 0 -0.5",
collisionvolumescales = "40 27 60",
collisionvolumetype = "Box",
Expand Down

0 comments on commit 3078e8a

Please sign in to comment.