Skip to content

Commit

Permalink
populate scavengers configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbodingAngel committed May 3, 2020
1 parent 3c56f1c commit e38eaf4
Show file tree
Hide file tree
Showing 30 changed files with 947 additions and 301 deletions.
2 changes: 1 addition & 1 deletion LuaIntro/Addons/bg_logo.lua
Expand Up @@ -118,7 +118,7 @@ local shader = gl.CreateShader({
]],
})

Spring.Echo(gl.GetShaderLog())
--Spring.Echo(gl.GetShaderLog())



Expand Down
2 changes: 1 addition & 1 deletion LuaIntro/main.lua
Expand Up @@ -35,7 +35,7 @@ else

Spring.Log = function(name, level, ...)
if (type(level) == "string")and(level == "info") then
Spring.Echo(("[%s]"):format(name), ...)
--Spring.Echo(("[%s]"):format(name), ...)
else
origSpringLog(name, level, ...)
end
Expand Down
@@ -0,0 +1,71 @@

-- table.insert(ScavengerBlueprintsT0,FunctionName)
-- table.insert(ScavengerBlueprintsT1,FunctionName)
-- table.insert(ScavengerBlueprintsT2,FunctionName)
-- table.insert(ScavengerBlueprintsT3,FunctionName)

-- example blueprint:
-- local function a(posx, posy, posz, GaiaTeamID, radiusCheck)
-- local posradius = 120
-- if radiusCheck then
-- return posradius
-- else
-- Spring.CreateUnit("unitname", posx, posy, posz, math.random(0,3),GaiaTeamID)
-- Spring.CreateUnit("unitname", posx-100, posy, posz, math.random(0,3),GaiaTeamID)
-- Spring.CreateUnit("unitname", posx+100, posy, posz, math.random(0,3),GaiaTeamID)
-- Spring.CreateUnit("unitname", posx, posy, posz-100, math.random(0,3),GaiaTeamID)
-- Spring.CreateUnit("unitname", posx, posy, posz+100, math.random(0,3),GaiaTeamID)
-- end
-- end
-- table.insert(ScavengerBlueprintsT1,a)

local UDN = UnitDefNames

local function placeholderradar1(scav, posx, posy, posz, GaiaTeamID, radiusCheck)
local posradius = 150
if radiusCheck then
return posradius
else
Spring.GiveOrderToUnit(scav, -(UDN.eradar2.id), {posx, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx-200, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx+200, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx, posy, posz-200, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.elightturret2.id), {posx, posy, posz+200, 0}, {"shift"})
end
end
table.insert(ScavengerConstructorBlueprintsT0,placeholderradar1)
table.insert(ScavengerConstructorBlueprintsT1,placeholderradar1)
table.insert(ScavengerConstructorBlueprintsT2,placeholderradar1)
table.insert(ScavengerConstructorBlueprintsT3,placeholderradar1)

local function placeholderradar2(scav, posx, posy, posz, GaiaTeamID, radiusCheck)
local posradius = 150
if radiusCheck then
return posradius
else
Spring.GiveOrderToUnit(scav, -(UDN.eradar2.id), {posx, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx-200, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx+200, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx, posy, posz-200, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.eheavyturret2.id), {posx, posy, posz+200, 0}, {"shift"})
end
end
table.insert(ScavengerConstructorBlueprintsT2,placeholderradar2)
table.insert(ScavengerConstructorBlueprintsT3,placeholderradar2)

local function placeholderradar1(scav, posx, posy, posz, GaiaTeamID, radiusCheck)
local posradius = 150
if radiusCheck then
return posradius
else
Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx-100, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx+100, posy, posz, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz-100, 0}, {"shift"})
Spring.GiveOrderToUnit(scav, -(UDN.emine.id), {posx, posy, posz+100, 0}, {"shift"})
end
end
table.insert(ScavengerConstructorBlueprintsT0,placeholderradar1)
table.insert(ScavengerConstructorBlueprintsT1,placeholderradar1)
table.insert(ScavengerConstructorBlueprintsT2,placeholderradar1)
table.insert(ScavengerConstructorBlueprintsT3,placeholderradar1)
27 changes: 27 additions & 0 deletions LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/air.lua
@@ -0,0 +1,27 @@
T0AirUnits = {
"escoutdrone",
"zairscout",
}

T1AirUnits = {
"efighter",
"zairtoairfighter",
}

T2AirUnits = {
"egunship2",
"ebomber",
"zairtogroundfighter",
"zairbomber",
}

T3AirUnits = {
"egunship2",
"ebomber",
"zairbomber",
}

T4AirUnits = {
"ekrow",
"ekrow",
}
@@ -0,0 +1,40 @@
ConstructorsList = {
"ecommander",
"ecommanderbuild",
"ecommandercloak",
"ecommandershield",
"ehbotengineer",
}

-- put ALL commander units from your game here
CommandersList = {
"ecommander",
"ecommanderbattle",
"ecommanderbuild",
"ecommandercloak",
"ecommanderfactory",
"ecommandermeteor",
"ecommandershield",
}

ConstructorsCounter = {
UDN.ecommander.id,
UDN.ecommanderbuild.id,
UDN.ecommandercloak.id,
UDN.ecommandershield.id,
UDN.ehbotengineer.id,
}

AssistUnits = {
"eorb",
"zconstructor",
}

Resurrectors = {
}

ResurrectorsSea = {
}

Collectors = {
}
11 changes: 11 additions & 0 deletions LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/factories.lua
@@ -0,0 +1,11 @@
Factories = {
"ebasefactory",
"eminifac",
"eamphibfac",
"ehbotfac",
"eairplant",
"zhatch",
}

FactoriesExcludedUnits = {
}
64 changes: 64 additions & 0 deletions LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/land.lua
@@ -0,0 +1,64 @@
T0LandUnits = {
"eallterrlight",
"eamphibbuggy",
"ehbotpeewee",
"elighttank3",
"zlightswarm",
}

T1LandUnits = {
"eallterrlight",
"eamphibbuggy",
"ehbotpeewee",
"elighttank3",
"zlightswarm",
"eallterrriot",
"eallterrriot_shotgun",
"eallterrmed",
"eamphibneedle",
"eamphibriot",
"eamphibriot_shotgun",
"ehbotthud",
"eriottank2",
"eriottank2_shotgun",
"eallterrassault",
"eamphibarty",
"eartytank",
"eartytank_saturation",
"zmedswarm",
"zpyro",
}

T2LandUnits = {
"eallterrheavy",
"eallterrshield",
"eamphibmedtank",
"eamphibrock",
"ehbotrocko",
"ehbotsniper",
"eheavytank3",
"emissiletank",
"zskirmisher",
"zassault",
}

T3LandUnits = {
"eallterrheavy",
"eallterrshield",
"eamphibmedtank",
"eamphibrock",
"ehbotrocko",
"ehbotsniper",
"eheavytank3",
"emissiletank",
"zskirmisher",
"zassault",
}

T4LandUnits = {
"eallterranarchid",
"eamphibleveler",
"ehbotkarganneth",
"elacerator",
"zqueen",
}
@@ -0,0 +1,136 @@
T1ReinforcementLandUnits = {
"eallterrlight",
"eamphibbuggy",
"ehbotpeewee",
"elighttank3",
"zlightswarm",
"eallterrriot",
"eallterrriot_shotgun",
"eallterrmed",
"eamphibneedle",
"eamphibriot",
"eamphibriot_shotgun",
"ehbotthud",
"eriottank2",
"eriottank2_shotgun",
"eallterrassault",
"eamphibarty",
"eartytank",
"eartytank_saturation",
"zmedswarm",
"zpyro",
}

T2ReinforcementLandUnits = {
"eallterrheavy",
"eallterrshield",
"eamphibmedtank",
"eamphibrock",
"ehbotrocko",
"ehbotsniper",
"eheavytank3",
"emissiletank",
"zskirmisher",
"zassault",
}

T3ReinforcementLandUnits = {
"eallterrheavy",
"eallterrshield",
"eamphibmedtank",
"eamphibrock",
"ehbotrocko",
"ehbotsniper",
"eheavytank3",
"emissiletank",
"zskirmisher",
"zassault",
}

T4ReinforcementLandUnits = {
"eallterranarchid",
"eamphibleveler",
"ehbotkarganneth",
"elacerator",
"zqueen",
}

T1ReinforcementAirUnits = {
"efighter",
"zairtoairfighter",
}

T2ReinforcementAirUnits = {
"egunship2",
"ebomber",
"zairtogroundfighter",
"zairbomber",
}

T3ReinforcementAirUnits = {
"egunship2",
"ebomber",
"zairbomber",
}

T4ReinforcementAirUnits = {
"ekrow",
"ekrow",
}

T1ReinforcementSeaUnits = {
"eallterrlight",
"eamphibbuggy",
"ehbotpeewee",
"elighttank3",
"zlightswarm",
"eallterrriot",
"eallterrriot_shotgun",
"eallterrmed",
"eamphibneedle",
"eamphibriot",
"eamphibriot_shotgun",
"ehbotthud",
"eriottank2",
"eriottank2_shotgun",
"eallterrassault",
"eamphibarty",
"eartytank",
"eartytank_saturation",
"zmedswarm",
"zpyro",
}

T2ReinforcementSeaUnits = {
"eallterrheavy",
"eallterrshield",
"eamphibmedtank",
"eamphibrock",
"ehbotrocko",
"ehbotsniper",
"eheavytank3",
"emissiletank",
"zskirmisher",
"zassault",
}

T3ReinforcementSeaUnits = {
"eallterrheavy",
"eallterrshield",
"eamphibmedtank",
"eamphibrock",
"ehbotrocko",
"ehbotsniper",
"eheavytank3",
"emissiletank",
"zskirmisher",
"zassault",
}

T4ReinforcementSeaUnits = {
"eallterranarchid",
"eamphibleveler",
"ehbotkarganneth",
"elacerator",
"zqueen",
}
14 changes: 14 additions & 0 deletions LuaRules/Gadgets/scavengers/Configs/EvoRTS/UnitLists/sea.lua
@@ -0,0 +1,14 @@
T0SeaUnits = {
}

T1SeaUnits = {
}

T2SeaUnits = {
}

T3SeaUnits = {
}

T4SeaUnits = {
}

0 comments on commit e38eaf4

Please sign in to comment.