Skip to content

Commit

Permalink
legadvsol (#2818)
Browse files Browse the repository at this point in the history
Added Legadvsol, from a model made by EnderRobo
  • Loading branch information
TheSilverHornet authored Apr 5, 2024
1 parent 6e27dc8 commit 9d0dad4
Show file tree
Hide file tree
Showing 21 changed files with 1,081 additions and 25 deletions.
2 changes: 2 additions & 0 deletions gamedata/armordefs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ local armorDefs = {
"legstarfall",
"legflak",
"legsolar",
"legsolar",
"legadvsol",

"coruwgeo",
"coruwageo",
Expand Down
4 changes: 4 additions & 0 deletions gamedata/icontypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,10 @@ local icontypes = {
bitmap = "icons/vehicle_t2_worker.png",
size = 1.36499989
},
legadvsol = {
bitmap = "icons/energy2_1.18.png",
size = 1.23899984
},
legalab = {
bitmap = "icons/factory_bot_t2.png",
size = 1.9425
Expand Down
2 changes: 2 additions & 0 deletions language/en/units.json
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@
"legaca": "Advanced Construction Aircraft",
"legack": "Advanced Construction Bot",
"legacv": "Advanced Construction Vehicle",
"legadvsol": "Advanced Solar Collector",
"legassistdrone": "Assist Drone",
"legassistdrone_land": "Assist Vehicle",
"legavp": "Advanced Vehicle Plant",
Expand Down Expand Up @@ -1362,6 +1363,7 @@
"legaca": "Tech 2 Constructor",
"legack": "Tech 2 Constructor",
"legacv": "Tech 2 Constructor",
"legadvsol": "Produces 100 Energy",
"legassistdrone": "Portable Buildpower",
"legassistdrone_land": "Portable Buildpower",
"legavp": "Produces Tech 2 Vehicles",
Expand Down
6 changes: 5 additions & 1 deletion luarules/configs/gui_soundeffects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,11 @@ GUIUnitSoundEffects = {
BaseSoundActivate = "arm-bld-solar-activate",
BaseSoundDeactivate = "arm-bld-solar-deactivate",
},

legadvsol = {
BaseSoundSelectType = "arm-bld-nrghum",
--BaseSoundMovementType = "",
BaseSoundWeaponType = "arm-bld-solar-alt-adv",
},

-- LEGION T1 BOTS
legck = {
Expand Down
15 changes: 7 additions & 8 deletions luarules/gadgets/unit_sunfacing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,14 @@ function gadget:Initialize()
end

--only look for advsols that care about the sun (coradvsol sun agnostic chad)
--legadvsol to follow
--if (UnitDefNames.legadvsol) then
--advsols[UnitDefNames.legadvsol.id] = true
--end
if (UnitDefNames.legadvsol) then
advsols[UnitDefNames.legadvsol.id] = true
end

if (UnitDefNames.legadvsol_scav) then
advsols[UnitDefNames.legadvsol_scav.id] = true
end

--if (UnitDefNames.legadvsol_scav) then
--advsols[UnitDefNames.legadvsol_scav.id] = true
--end

success, mapinfo = pcall(VFS.Include,"mapinfo.lua")

if success and mapinfo then
Expand Down
32 changes: 32 additions & 0 deletions luaui/configs/DeferredLightsGL4config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16116,6 +16116,38 @@ local unitLights = {
lifetime = 0, sustain = 0, animtype = 0},
},
},

['legadvsol'] = {
glow1 = {
lightType = 'point',
pieceName = 'base',
lightConfig = { posx = 0, posy = 22, posz = 26, radius = 32,
color2r = 0, color2g = 0, color2b = 0, colortime = 0,
r = 1, g = 1, b = 0.4, a = 0.14,
modelfactor = 0.33, specular = 1.5, scattering = 0.5, lensflare = 0,
lifetime = 0, sustain = 0, animtype = 0},
},
glow2 = {
lightType = 'point',
pieceName = 'base',
lightConfig = { posx = -22, posy = 22, posz = -13, radius = 32,
color2r = 0, color2g = 0, color2b = 0, colortime = 0,
r = 1, g = 1, b = 0.4, a = 0.14,
modelfactor = 0.33, specular = 1.5, scattering = 0.5, lensflare = 0,
lifetime = 0, sustain = 0, animtype = 0},
},
glow3 = {
lightType = 'point',
pieceName = 'base',
lightConfig = { posx = 22, posy = 22, posz = -13, radius = 32,
color2r = 0, color2g = 0, color2b = 0, colortime = 0,
r = 1, g = 1, b = 0.4, a = 0.14,
modelfactor = 0.33, specular = 1.5, scattering = 0.5, lensflare = 0,
lifetime = 0, sustain = 0, animtype = 0},
},
},


['cormakr'] = {
enabled1 = {
lightType = 'point',
Expand Down
1 change: 1 addition & 0 deletions luaui/configs/buildmenu_sorting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ local unitOrderTable = {
['legsolar'] = 101090,
['armadvsol'] = 101100,
['coradvsol'] = 101150,
['legadvsol'] = 101170,

--ECO NRG GEOS
['armgeo'] = 101200,
Expand Down
6 changes: 3 additions & 3 deletions luaui/configs/gridmenu_layouts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ local unitGrids = {
},
legck = {
{
{ "legmex", "legsolar", "legwin", "coradvsol", }, -- mex, solar, wind, adv. solar
{ "legmex", "legsolar", "legwin", "legadvsol", }, -- mex, solar, wind, adv. solar
{ "cormakr", "corgeo", "legmext15", }, -- T1 converter, geo, T1.5 legion mex, (tidal)
{ "corestor", "cormstor", }, -- e storage, m storage, (uw e stor), (fl. T1 converter)
},
Expand Down Expand Up @@ -572,7 +572,7 @@ local unitGrids = {
},
legcv = {
{
{ "legmex", "legsolar", "legwin", "coradvsol", }, -- mex, solar, wind, adv. solar
{ "legmex", "legsolar", "legwin", "legadvsol", }, -- mex, solar, wind, adv. solar
{ "cormakr", "corgeo", "legmext15", }, -- T1 converter, geo, T1.5 legion mex, (tidal)
{ "corestor", "cormstor", }, -- e storage, m storage, (uw e stor), (fl. T1 converter)
},
Expand Down Expand Up @@ -640,7 +640,7 @@ local unitGrids = {
},
legca = {
{
{ "legmex", "legsolar", "legwin", "coradvsol", }, -- mex, solar, wind, adv. solar
{ "legmex", "legsolar", "legwin", "legadvsol", }, -- mex, solar, wind, adv. solar
{ "cormakr", "corgeo", "legmext15", }, -- T1 converter, geo, T1.5 legion mex, (tidal)
{ "corestor", "cormstor", }, -- e storage, m storage, (uw e stor), (fl. T1 converter)
},
Expand Down
Binary file added objects3d/Units/legadvsol.s3o
Binary file not shown.
Binary file added objects3d/Units/legadvsol_dead.s3o
Binary file not shown.
Loading

0 comments on commit 9d0dad4

Please sign in to comment.