Skip to content

Commit

Permalink
changed default chicken spawning behaviour to Avoid Players
Browse files Browse the repository at this point in the history
  • Loading branch information
Damgam committed Jul 8, 2018
1 parent e30eaf1 commit fa61955
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ModOptions.lua
Expand Up @@ -484,7 +484,7 @@ local options= {
name="Burrow Placement",
desc="Control where burrows spawn",
type="list",
def="alwaysbox",
def="avoid",
section="chicken_defense_options",
items={
{key="anywhere", name="Anywhere", desc="Burrows can spawn anywhere"},
Expand Down
131 changes: 131 additions & 0 deletions Units/aiunits/edummyunit.lua
@@ -0,0 +1,131 @@
-- UNITDEF -- EAIRENGINEER --
--------------------------------------------------------------------------------

local unitName = "edummyunit"

--------------------------------------------------------------------------------

local buildCostMetal = 80
local maxDamage = 450

local armortype = [[light]]
--local supply = [[2]]

local unitDef = {

--mobileunit
transportbyenemy = false;

--**


acceleration = 0.5,
airStrafe = true,
brakeRate = 0.5,
buildCostEnergy = 0,
buildCostMetal = buildCostMetal,
buildTime = 2.5,
builder = true,
buildDistance = 600,
capturable = false,
canAttack = false,
CanAssist = true,
canBeAssisted = true,
CanCapture = false,
CanRepair = true,
canRestore = false,
canDropFlare = true,
canFly = true,
canGuard = true,
canLoopbackAttack = true,
canMove = true,
canPatrol = true,
canreclaim = false,
canstop = true,
category = "LIGHT VTOL",
collide = true,
cruiseAlt = 300,
description = [[Builds Units]],
energyMake = 0,
energyStorage = 0,
energyUse = 0,
explodeAs = "mediumExplosionGenericGreen",
flareDelay = 0.1,
flareDropVector = "0 0 -1",
flareefficieny = "0.3",
flareReload = 3,
floater = true,
footprintX = 4,
footprintZ = 4,
hoverAttack = true,
iconType = "engineer",
idleAutoHeal = .5,
idleTime = 2200,
maxBank = 5,
maxDamage = maxDamage,
maxSlope = 90,
maxVelocity = 7,
verticalSpeed = 15,
maxWaterDepth = 0,
metalStorage = 0,
moverate1 = "8",
moveState = "2",
name = "Unit Factory Mark AI",
objectName = "eairengineer2.s3o",
script = "eairengineer2.cob",
radarDistance = 0,
repairable = false,
selfDestructAs = "mediumExplosionGenericGreen",
showNanoSpray = true,
sightDistance = 600,
smoothAnim = true,
turnRate = 5000,
unitname = unitName,
unitnumber = "148",
workerTime = 1,
capturespeed = 1,
TerraformSpeed = 100000,
ReclaimSpeed = 0,
repairspeed = 0.15625,
sfxtypes = {
pieceExplosionGenerators = {
"deathceg3",
"deathceg4",
},

explosiongenerators = {
"custom:jethtrail",
"custom:nanoorb",
"custom:blacksmoke",
},
},
buildoptions = Shared.buildListAIOverseer,
sounds = {
underattack = "other/unitsunderattack1",
ok = {
"ack",
},
select = {
"unitselect",
},
},
customParams = {
unittype = "mobile",
area_mex_def = "emetalextractor",
-- needed_cover = 2,
death_sounds = "generic",
armortype = armortype,
-- supply_cost = supply,
normaltex = "unittextures/lego2skin_explorernormal.dds",
buckettex = "unittextures/lego2skin_explorerbucket.dds",
factionname = "outer_colonies",
corpse = "energycore",
helptext = [[Armortype: ]] .. armortype,
},
}

--------------------------------------------------------------------------------

return lowerkeys({ [unitName] = unitDef })

--------------------------------------------------------------------------------

0 comments on commit fa61955

Please sign in to comment.