| 1 |
@ xnt
|
1 |
@ xnt
|
| 2 |
\n
|
2 |
\n
|
| 3 |
this is what i used for king builder to cull wrecks
|
3 |
this is what i used for king builder to cull wrecks
|
| 4 |
\n
|
4 |
\n
|
| 5 |
{{{
|
5 |
{{{
|
| 6 |
\n
|
6 |
\n
|
| 7 |
for name, ud in pairs(UnitDefs) do
|
7 |
for name, ud in pairs(UnitDefs) do
|
| 8 |
if ud.featuredefs then
|
8 |
if ud.featuredefs then
|
| 9 |
for _, wd in pairs(ud.featuredefs) do
|
9 |
for _, wd in pairs(ud.featuredefs) do
|
| 10 |
if wd.blocking then
|
10 |
if wd.blocking then
|
| 11 |
wd.blocking = [[false]]
|
11 |
wd.blocking = [[false]]
|
| 12 |
end
|
12 |
end
|
| 13 |
end
|
13 |
end
|
| 14 |
end
|
14 |
end
|
| 15 |
if ud.featuredefs then
|
15 |
if ud.featuredefs then
|
| 16 |
for _, wd in pairs(ud.featuredefs) do
|
16 |
for _, wd in pairs(ud.featuredefs) do
|
| 17 |
if wd.object then
|
17 |
if wd.object then
|
| 18 |
wd.object = [[emptyModel.s3o]]
|
18 |
wd.object = [[emptyModel.s3o]]
|
| 19 |
end
|
19 |
end
|
| 20 |
end
|
20 |
end
|
| 21 |
end
|
21 |
end
|
| 22 |
end
|
22 |
end
|
| 23 |
\n
|
23 |
\n
|
| 24 |
and i also used a clean up incase wrecks are invisible
|
24 |
and i also used a clean up incase wrecks are invisible
|
| 25 |
\n
|
25 |
\n
|
| 26 |
}
|
26 |
{
|
| 27 |
staticmex = {
|
27 |
staticmex = {
|
| 28 |
customParams = {
|
28 |
customParams = {
|
| 29 |
grey_goo = 1,
|
29 |
grey_goo = 1,
|
| 30 |
grey_goo_spawn = "energywind",
|
30 |
grey_goo_spawn = "energywind",
|
| 31 |
grey_goo_drain = 10000,
|
31 |
grey_goo_drain = 10000,
|
| 32 |
grey_goo_cost = 1000000,
|
32 |
grey_goo_cost = 1000000,
|
| 33 |
grey_goo_range = 4000,
|
33 |
grey_goo_range = 4000,
|
| 34 |
},
|
34 |
},
|
| 35 |
},
|
35 |
},
|
| 36 |
}
|
36 |
}
|
| 37 |
\n
|
37 |
\n
|
| 38 |
}}}
|
38 |
}}}
|