/
ztenticle_basedef.lua
104 lines (99 loc) · 3.41 KB
/
ztenticle_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
94
95
96
97
98
99
100
101
102
103
104
unitDef = {
buildCostEnergy = 0,
buildCostMetal = buildCostMetal,
buildDistance = buildDistance,
builder = true,
buildTime = 5,
buildpic = "zaal_unitpics/ztenticle.png",
blocking = true,
CanAttack = false,
CanAssist = true,
canBeAssisted = true,
CanCapture = false,
CanRepair = true,
canRestore = false,
cantBeTransported = true,
canGuard = true,
canHover = false,
canMove = false,
canPatrol = false,
canreclaim = true,
canstop = true,
category = "BUILDING",
description = [[Builds Units]],
energyMake = 0,
energyStorage = 0,
energyUse = 0,
explodeAs = "BUG_DEATH_MEDIUM",
floater = true,
footprintX = 3,
footprintZ = 3,
iconType = "engineer",
autoHeal = 10,
idleAutoHeal = 25,
idleTime = 5,
levelground = true,
maxDamage = 500,
maxSlope = 90,
maxVelocity = 0.001,
maxReverseVelocity = 0.001,
maxWaterDepth = 5000,
metalmake = 0,
metalStorage = 0,
--movementClass = "ZAALKBOT6",
moveState = 2,
name = humanName,
noChaseCategory = "VTOL LIGHT ARMORED BUILDING",
objectName = objectName,
script = script,
radarDistance = 0,
repairable = false,
selfDestructAs = "BUG_DEATH_MEDIUM",
showNanoSpray = true,
side = "ARM",
sightDistance = 500,
smoothAnim = true,
stealth = false,
seismicSignature = 2,
unitname = unitName,
upright = true,
yardmap = "ooo ooo ooo",
workerTime = 1,
TerraformSpeed = 2147000,
usePieceCollisionVolumes = true,
sfxtypes = {
pieceExplosionGenerators = {
"blood_spray",
},
explosiongenerators = {
"custom:blood_spray",
},
},
sounds = {
underattack = "other/unitsunderattack1",
ok = {
"ack",
},
select = {
"BugSelect",
},
},
customParams = {
unittype = "building",
ProvideTech = techprovided,
canbetransported = "false",
needed_cover = 1,
death_sounds = "bug",
armortype = armortype,
normaltex = "unittextures/zarm_normals.dds",
factionname = "zaal",
},
useGroundDecal = true,
BuildingGroundDecalType = "zgroundtexture.dds",
BuildingGroundDecalSizeX = 14,
BuildingGroundDecalSizeY = 14,
BuildingGroundDecalDecaySpeed = 0.9,
}
--------------------------------------------------------------------------------
return lowerkeys({ [unitName] = unitDef })
--------------------------------------------------------------------------------