Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Radar tower is now a two tier split with better range at t2
- Loading branch information
1 parent
8cdf768
commit 161bd85
Showing
6 changed files
with
139 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
76 changes: 76 additions & 0 deletions
76
Units-Configs-Basedefs/basedefs/buildings/eradar2_basedef.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
unitDef = { | ||
activateWhenBuilt = true, | ||
buildAngle = 16384, | ||
buildCostEnergy = 0, | ||
buildCostMetal = buildCostMetal, | ||
builder = false, | ||
buildTime = 5, | ||
category = "BUILDING NOTAIR", | ||
description = [[Radar Dome/Sensor Tower]], | ||
energyMake = 0, | ||
energyStorage = 0, | ||
energyUse = 0, | ||
explodeAs = "largeBuildingExplosionGenericWhite", | ||
footprintX = 6, | ||
footprintZ = 6, | ||
floater = true, | ||
iconType = "radar", | ||
idleAutoHeal = .5, | ||
idleTime = 2200, | ||
isTargetingUpgrade = false, | ||
maxDamage = 250, | ||
maxSlope = 75, | ||
maxWaterDepth = 999999, | ||
metalStorage = 0, | ||
name = humanName, | ||
objectName = objectName, | ||
script = "eradar3.cob", | ||
onoffable = false, | ||
radarDistance = radarDistance, | ||
radarEmitHeight = radarEmitHeight, | ||
repairable = false, | ||
selfDestructAs = "largeBuildingExplosionGenericWhite", | ||
side = "CORE", | ||
sightDistance = sightDistance, | ||
smoothAnim = true, | ||
sonarDistance = sonarDistance, | ||
seismicDistance = seismicDistance, | ||
unitname = "eradar2", | ||
workerTime = 0, | ||
yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo", | ||
|
||
sfxtypes = { | ||
pieceExplosionGenerators = { | ||
"deathceg3", | ||
"deathceg4", | ||
}, | ||
|
||
explosiongenerators = { | ||
"custom:blacksmoke", | ||
}, | ||
}, | ||
|
||
sounds = { | ||
underattack = "other/unitsunderattack1", | ||
select = { | ||
"other/gdradar", | ||
}, | ||
}, | ||
customParams = { | ||
RequireTech = techrequired, | ||
unittype = "building", | ||
needed_cover = 2, | ||
death_sounds = "generic", | ||
armortype = armortype, | ||
normaltex = "unittextures/lego2skin_explorernormal.dds", | ||
buckettex = "unittextures/lego2skin_explorerbucket.dds", | ||
factionname = "ateran", | ||
corpse = "energycore", | ||
helptext = [[]], | ||
}, | ||
useGroundDecal = true, | ||
BuildingGroundDecalType = "factorygroundplate.dds", | ||
BuildingGroundDecalSizeX = 8, | ||
BuildingGroundDecalSizeY = 8, | ||
BuildingGroundDecalDecaySpeed = 0.9, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,28 @@ | ||
-- UNITDEF -- ERADAR2 -- | ||
-- UNITDEF -- eradar2 -- | ||
-------------------------------------------------------------------------------- | ||
|
||
local unitName = "eradar2" | ||
unitName = [[eradar2]] | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
local armortype = [[building]] | ||
buildCostMetal = 5 | ||
|
||
local techrequired = [[tech1]] | ||
humanName = [[Radar Tower]] | ||
objectName = [[eradar3_small.s3o]] | ||
|
||
local buildCostMetal = 10 | ||
local maxDamage = buildCostMetal * 12.5 | ||
radarDistance = 1000 | ||
radarEmitHeight = 64 | ||
|
||
local unitDef = { | ||
activateWhenBuilt = true, | ||
buildAngle = 16384, | ||
buildCostEnergy = 0, | ||
buildCostMetal = buildCostMetal, | ||
builder = false, | ||
buildTime = 5, | ||
category = "BUILDING NOTAIR", | ||
description = [[Radar Dome/Sensor Tower]], | ||
energyMake = 0, | ||
energyStorage = 0, | ||
energyUse = 0, | ||
explodeAs = "largeBuildingExplosionGenericWhite", | ||
footprintX = 6, | ||
footprintZ = 6, | ||
floater = true, | ||
iconType = "radar", | ||
idleAutoHeal = .5, | ||
idleTime = 2200, | ||
isTargetingUpgrade = false, | ||
maxDamage = maxDamage, | ||
maxSlope = 75, | ||
maxWaterDepth = 999999, | ||
metalStorage = 0, | ||
name = "Radar Dome", | ||
objectName = "eradar3.s3o", | ||
script = "eradar3.cob", | ||
onoffable = true, | ||
radarDistance = 1500, | ||
radarEmitHeight = 300, | ||
repairable = false, | ||
selfDestructAs = "largeBuildingExplosionGenericWhite", | ||
side = "CORE", | ||
sightDistance = 250, | ||
smoothAnim = true, | ||
sonarDistance = 1000, | ||
seismicDistance = 1000, | ||
unitname = "eradar2", | ||
workerTime = 0, | ||
yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo", | ||
sightDistance = 750 | ||
sonarDistance = 750 | ||
seismicDistance = 750 | ||
|
||
sfxtypes = { | ||
pieceExplosionGenerators = { | ||
"deathceg3", | ||
"deathceg4", | ||
}, | ||
|
||
explosiongenerators = { | ||
"custom:blacksmoke", | ||
}, | ||
}, | ||
tech = [[tech0]] | ||
armortype = [[building]] | ||
|
||
sounds = { | ||
underattack = "other/unitsunderattack1", | ||
select = { | ||
"other/gdradar", | ||
}, | ||
}, | ||
customParams = { | ||
RequireTech = techrequired, | ||
unittype = "building", | ||
needed_cover = 2, | ||
death_sounds = "generic", | ||
armortype = armortype, | ||
normaltex = "unittextures/lego2skin_explorernormal.dds", | ||
buckettex = "unittextures/lego2skin_explorerbucket.dds", | ||
factionname = "ateran", | ||
corpse = "energycore", | ||
helptext = [[]], | ||
}, | ||
useGroundDecal = true, | ||
BuildingGroundDecalType = "factorygroundplate.dds", | ||
BuildingGroundDecalSizeX = 8, | ||
BuildingGroundDecalSizeY = 8, | ||
BuildingGroundDecalDecaySpeed = 0.9, | ||
} | ||
|
||
VFS.Include("units-configs-basedefs/basedefs/buildings/eradar2_basedef.lua") | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
return lowerkeys({ [unitName] = unitDef }) | ||
return lowerkeys({ [unitName] = unitDef }) | ||
|
||
-------------------------------------------------------------------------------- | ||
-------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- UNITDEF -- eradar2_up1 -- | ||
-------------------------------------------------------------------------------- | ||
|
||
unitName = [[eradar2_up1]] | ||
|
||
buildCostMetal = 40 | ||
|
||
humanName = [[Radar Tower]] | ||
objectName = [[eradar3_large.s3o]] | ||
|
||
radarDistance = 3000 | ||
radarEmitHeight = 128 | ||
|
||
sightDistance = 1500 | ||
sonarDistance = 1500 | ||
seismicDistance = 1500 | ||
|
||
tech = [[tech2]] | ||
armortype = [[building]] | ||
|
||
|
||
VFS.Include("units-configs-basedefs/basedefs/buildings/eradar2_basedef.lua") | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
return lowerkeys({ [unitName] = unitDef }) | ||
|
||
-------------------------------------------------------------------------------- |