-
Notifications
You must be signed in to change notification settings - Fork 201
/
staticarty.lua
130 lines (108 loc) · 3.79 KB
/
staticarty.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
return { staticarty = {
name = [[Cerberus]],
description = [[Plasma Artillery Battery - Power by connecting to a 50 energy grid]],
activateWhenBuilt = true,
builder = false,
buildingGroundDecalDecaySpeed = 30,
buildingGroundDecalSizeX = 8,
buildingGroundDecalSizeY = 8,
buildingGroundDecalType = [[staticarty_aoplane.dds]],
buildPic = [[staticarty.png]],
category = [[SINK]],
corpse = [[DEAD]],
collisionVolumeOffsets = [[0 0 0]],
collisionVolumeScales = [[80 80 80]],
collisionVolumeType = [[ellipsoid]],
customParams = {
keeptooltip = [[any string I want]],
neededlink = 0,
pylonrange = 50,
aimposoffset = [[0 26 0]],
midposoffset = [[0 10 0]],
bait_level_default = 1,
},
explodeAs = [[LARGE_BUILDINGEX]],
footprintX = 5,
footprintZ = 5,
health = 3750,
highTrajectory = 2,
iconType = [[staticarty]],
maxSlope = 18,
maxWaterDepth = 0,
metalCost = 2500,
noAutoFire = false,
noChaseCategory = [[FIXEDWING LAND SHIP SATELLITE SWIM GUNSHIP SUB HOVER]],
objectName = [[corbhmth.s3o]],
onoffable = false,
script = [[staticarty.lua]],
selfDestructAs = [[LARGE_BUILDINGEX]],
sfxtypes = {
explosiongenerators = {
[[custom:LARGE_MUZZLE_FLASH_FX]],
},
},
sightDistance = 660,
useBuildingGroundDecal = true,
workerTime = 0,
yardMap = [[ooooo ooooo ooooo ooooo ooooo]],
weapons = {
{
def = [[PLASMA]],
badTargetCategory = [[GUNSHIP]],
onlyTargetCategory = [[SWIM LAND SINK TURRET FLOAT SHIP HOVER GUNSHIP]],
mainDir = [[0 0 1]],
maxAngleDif = 180,
-- stopBurstWhenOutOfArc = false,
stopBurstWhenOutOfArc = true,
},
},
weaponDefs = {
PLASMA = {
name = [[Long-Range Plasma Battery]],
areaOfEffect = 192,
avoidFeature = false,
avoidGround = true,
burst = 15,
burstRate = 0.333,
craterBoost = 1,
craterMult = 2,
customParams = {
light_color = [[1.4 0.8 0.3]],
},
damage = {
default = 601,
planes = 601,
},
edgeEffectiveness = 0.5,
explosionGenerator = [[custom:330rlexplode]],
fireStarter = 120,
impulseBoost = 0,
impulseFactor = 0.4,
interceptedByShieldType = 1,
mygravity = 0.1,
range = 1850,
reloadtime = 10,
soundHit = [[explosion/ex_large4]],
soundStart = [[explosion/ex_large5]],
sprayangle = 1024,
turret = true,
weaponType = [[Cannon]],
weaponVelocity = 400,
},
},
featureDefs = {
DEAD = {
blocking = true,
featureDead = [[HEAP]],
footprintX = 5,
footprintZ = 5,
object = [[corbhmth_dead.s3o]],
},
HEAP = {
blocking = false,
footprintX = 5,
footprintZ = 5,
object = [[debris4x4b.s3o]],
},
},
} }