/
eheavyturret2_basedef.lua
134 lines (130 loc) · 4.56 KB
/
eheavyturret2_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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
unitDef = {
buildAngle = 8192,
buildCostEnergy = 0,
buildCostMetal = 60,
builder = false,
buildTime = 5,
buildpic = "eheavyturret2.png",
collisionVolumeOffsets = "0 0 0",
collisionVolumeScales = "80 115 80",
collisionVolumeTest = 1,
collisionVolumeType = "box",
canAttack = true,
canstop = "1",
category = "BUILDING NOTAIR",
description = [[Heavy Plasma Battery (Anti-Armor)]],
energyStorage = 0,
energyUse = 0,
explodeAs = "largeBuildingExplosionGenericRed",
footprintX = 6,
footprintZ = 6,
floater = true,
idleAutoHeal = .5,
idleTime = 2200,
iconType = "turret_arm",
maxDamage = 1200,
maxSlope = 60,
maxWaterDepth = 999999,
metalStorage = 0,
name = humanName,
objectName = objectName,
script = script,
onlytargetcategory3 = "NOTAIR",
onlytargetcategory4 = "NOTAIR",
onlytargetcategory5 = "NOTAIR",
onlytargetcategory6 = "NOTAIR",
radarDistance = 0,
repairable = false,
selfDestructAs = "largeBuildingExplosionGenericRed",
side = "CORE",
sightDistance = 750,
smoothAnim = true,
unitname = unitName,
workerTime = 0,
yardMap = "oooooo oooooo oooooo oooooo oooooo oooooo",
sfxtypes = {
pieceExplosionGenerators = {
"deathceg3",
"deathceg4",
},
explosiongenerators = {
"custom:gdhcannon",
"custom:needspower",
"custom:blacksmoke",
},
},
sounds = {
underattack = "other/unitsunderattack1",
select = {
"other/turretselect",
},
},
weapons = {
[1] = {
def = "eheavyturretweapon2",
badTargetCategory = "LIGHT VTOL BUILDING",
onlyTargetCategory = "BIO ARMORED LIGHT",
},
},
customParams = {
isupgraded = isUpgraded,
unittype = "turret",
needed_cover = 5,
--supply_cost = supply,
RequireTech = tech,
death_sounds = "generic",
armortype = armortype,
normaltex = "unittextures/lego2skin_explorernormal.dds",
buckettex = "unittextures/lego2skin_explorerbucket.dds",
factionname = "ateran",
corpse = "energycore",
},
useGroundDecal = true,
BuildingGroundDecalType = "factorygroundplate.dds",
BuildingGroundDecalSizeX = 8,
BuildingGroundDecalSizeY = 8,
BuildingGroundDecalDecaySpeed = 0.9,
}
weaponDefs = {
eheavyturretweapon2 = {
AreaOfEffect = 250,
avoidFeature = false,
avoidFriendly = false,
collideFeature = false,
collideFriendly = false,
coreThickness = 0.6,
duration = 0.25,
energypershot = 0,
edgeeffectiveness = 0,
explosionGenerator = "custom:genericshellexplosion-medium",
fallOffRate = 0,
fireStarter = 100,
impulseFactor = 0,
interceptedByShieldType = 4,
minintensity = "1",
name = "Laser",
range = 750,
reloadtime = 2,
WeaponType = "LaserCannon",
rgbColor = "1 0.5 0",
rgbColor2 = "1 1 1",
soundTrigger = true,
soundstart = "weapons/heavyturretshot.wav",
soundHit = "explosions/explode5.wav",
texture1 = "shot",
texture2 = "empty",
thickness = 9,
tolerance = 1000,
turret = true,
weaponVelocity = 3000,
waterweapon = true,
customparams = {
isupgraded = isUpgraded,
damagetype = "turretantilightarmored",
effectedByunitHealthModifier = true,
},
damage = {
default = 500,
},
},
}