/
eairplant_basedef.lua
93 lines (89 loc) · 3.91 KB
/
eairplant_basedef.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
unitDef = {
activatewhenbuilt = true,
buildCostEnergy = 0,
buildCostMetal = buildCostMetal,
builder = true,
buildTime = 2.5,
buildpic = "eairplant.png",
canBeAssisted = true,
canGuard = true,
canMove = true,
canPatrol = true,
canReclaim = false,
canstop = true,
category = "BUILDING NOTAIR VTOL",
description = [[Build a Tech Facility to unlock units. Build Supply Depots to increase your army size.]],
energyStorage = 0,
energyUse = 0,
energyMake = 0,
explodeAs = "hugeBuildingExplosionGenericRed",
floater = true,
footprintX = 9,
footprintZ = 9,
iconType = "factory",
idleAutoHeal = .5,
idleTime = 2200,
levelground = false,
maxDamage = maxDamage,
maxSlope = 90,
maxWaterDepth = 999999,
metalStorage = 0,
metalMake = 0,
mobilestandorders = "1",
name = humanName,
objectName = objectName,
script = script,
radarDistance = 0,
repairable = false,
selfDestructAs = "hugeBuildingExplosionGenericRed",
showNanoSpray = true,
sightDistance = 388,
smoothAnim = true,
TEDClass = "PLANT",
unitname = unitName,
-- unitRestricted = 1,
unitnumber = "83",
workerTime = 1,
yardMap = "oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo oooooooooooooooooo",
-- usePieceCollisionVolumes = true,
sfxtypes = {
pieceExplosionGenerators = {
"deathceg3",
"deathceg4",
},
explosiongenerators = {
"custom:nanoorb",
"custom:nano",
"custom:blacksmoke",
"custom:fusionreactionbasic",
"custom:airfactoryhtrail",
},
},
zbuffer = "1",
buildoptions = airPlantBuildList,
sounds = {
underattack = "other/unitsunderattack1",
select = {
"other/gdfactoryselect",
},
},
customParams = {
unittype = "factory",
death_sounds = "generic",
armortype = "building",
normaltex = "unittextures/lego2skin_explorernormal.dds",
buckettex = "unittextures/lego2skin_explorerbucket.dds",
factionname = "ateran",
corpse = "energycore",
-- ProvideTech = "1 Powergrid",
-- ProvideTechRange = "1500",
-- groundtexselectimg = ":nc:bitmaps/power/powergrid.png",
-- groundtexselectxsize = 1500, -- optional
-- groundtexselectzsize = 1500, -- optional
},
-- useGroundDecal = true,
-- BuildingGroundDecalType = "factorygroundplate.dds",
-- BuildingGroundDecalSizeX = 20,
-- BuildingGroundDecalSizeY = 20,
-- BuildingGroundDecalDecaySpeed = 0.9,
}