/
shipscout.lua
204 lines (178 loc) · 6.52 KB
/
shipscout.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
unitDef = {
unitname = [[shipscout]],
name = [[Skeeter]],
description = [[Patrol Boat (Scout/Raider)]],
acceleration = 0.0984,
activateWhenBuilt = true,
brakeRate = 0.0475,
buildCostEnergy = 70,
buildCostMetal = 70,
builder = false,
buildPic = [[ARMPT.png]],
buildTime = 70,
canAttack = true,
canMove = true,
category = [[SHIP]],
collisionVolumeOffsets = [[0 5 0]],
collisionVolumeScales = [[20 20 60]],
collisionVolumeTest = 1,
collisionVolumeType = [[cylZ]],
corpse = [[DEAD]],
customParams = {
description_de = [[Wachboot (Scout/Raider)]],
description_fr = [[Navire de Patrouille Éclaireur et Anti-Air]],
description_pl = [[Lodz zwiadowcza]],
helptext = [[Cheap, fast, and fragile, this Patrol Boat is good as a raider and spotting for longer-ranged ships. It lacks the firepower or armor for brawling.]],
helptext_de = [[Günstig, schnell und gebrechlich. Dieses Wachboot eignet sich gut als Raider und zum Auskundschaften von Schiffen mit größerer Reichweite. Zum Kämpfen fehlt es ihm an Feuerkraft und der nötigen Panzerung.]],
helptext_fr = [[Pas cher, rapide et peu solide, voici venir le Skeeter et ses canons laser. Utile en début de conflit ou en tant qu'éclaireur son blindage le rends trcs vite obsolcte.]],
helptext_pl = [[Lekki i szybki, Skeeter jest dobrym zwiadowca dla wiekszych okretow. Nie ma jednak wytrzymalosci ani sily ognia potrzebnych do dluzszej walki.]],
modelradius = [[12]],
turnatfullspeed = [[1]],
},
explodeAs = [[SMALL_UNITEX]],
floater = true,
footprintX = 3,
footprintZ = 3,
iconType = [[scoutboat]],
idleAutoHeal = 5,
idleTime = 1800,
maxDamage = 240,
maxVelocity = 5.2,
minCloakDistance = 75,
movementClass = [[BOAT3]],
noChaseCategory = [[TERRAFORM SUB]],
objectName = [[scoutboat.s3o]],
script = [[shipscout.lua]],
seismicSignature = 4,
selfDestructAs = [[SMALL_UNITEX]],
sfxtypes = {
explosiongenerators = {
[[custom:PULVMUZZLE]],
},
},
sightDistance = 800,
sonarDistance = 350,
turninplace = 0,
turnRate = 740,
waterline = 2,
weapons = {
{
def = [[FAKEWEAPON]],
mainDir = [[0 0 1]],
maxAngleDif = 60,
},
{
def = [[MISSILE]],
badTargetCategory = [[FIXEDWING]],
onlyTargetCategory = [[FIXEDWING GUNSHIP LAND SINK TURRET SHIP SWIM FLOAT HOVER]],
},
},
weaponDefs = {
FAKEWEAPON = {
name = [[Fake Missile]],
areaOfEffect = 8,
craterBoost = 0,
craterMult = 0,
cylinderTargeting = 1,
damage = {
default = 0,
},
explosionGenerator = [[custom:FLASH2]],
fireStarter = 70,
fixedlauncher = true,
flightTime = 4,
heightmod = 0.5,
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0,
interceptedByShieldType = 2,
model = [[wep_m_fury.s3o]],
range = 230,
reloadtime = 2,
smokeTrail = true,
startVelocity = 300,
tolerance = 10000,
tracks = true,
trajectoryHeight = 1.2,
turnRate = 60000,
turret = true,
weaponAcceleration = 350,
weaponTimer = 5,
weaponType = [[MissileLauncher]],
weaponVelocity = 750,
},
MISSILE = {
name = [[Light Disarm Missile]],
areaOfEffect = 8,
--burst = 2,
--burstRate = 0.4,
cegTag = [[yellowdisarmtrail]],
craterBoost = 0,
craterMult = 0,
cylinderTargeting = 1,
damage = {
default = 45.1,
subs = 5,
},
customParams = {
disarmDamageMult = 4,
disarmDamageOnly = 0,
disarmTimer = 3, -- seconds
},
explosionGenerator = [[custom:mixed_white_lightning_bomb_small]],
fireStarter = 70,
fixedlauncher = true,
flightTime = 4,
heightmod = 0.5,
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0.4,
interceptedByShieldType = 2,
model = [[wep_armpt.s3o]],
range = 260,
reloadtime = 2,
smokeTrail = true,
soundHit = [[weapon/missile/small_lightning_missile]],
soundStart = [[weapon/missile/missile_fire7]],
startVelocity = 100,
texture2 = [[lightsmoketrail]],
tolerance = 10000,
tracks = true,
turnRate = 60000,
turret = true,
weaponAcceleration = 300,
weaponTimer = 5,
weaponType = [[MissileLauncher]],
weaponVelocity = 800,
},
},
featureDefs = {
DEAD = {
description = [[Wreckage - Skeeter]],
blocking = false,
damage = 240,
energy = 0,
featureDead = [[HEAP]],
footprintX = 3,
footprintZ = 3,
metal = 28,
object = [[scoutboat_dead.s3o]],
reclaimable = true,
reclaimTime = 28,
},
HEAP = {
description = [[Debris - Skeeter]],
blocking = false,
damage = 240,
energy = 0,
featurereclamate = [[SMUDGE01]],
footprintX = 3,
footprintZ = 3,
metal = 14,
object = [[debris4x4a.s3o]],
reclaimable = true,
reclaimTime = 14,
},
},
}
return lowerkeys({ shipscout = unitDef })