1 |
[q] Define GG.map_AllowPositionTerraform(x, z) to block a circle just inside the outer edge of the white area, and give that region extremely high hardness. This blocks things like Tremor too, it's all the same system.[/q]
|
1 |
[q] Define GG.map_AllowPositionTerraform(x, z) to block a circle just inside the outer edge of the white area, and give that region extremely high hardness. This blocks things like Tremor too, it's all the same system.[/q]
|
2 |
Possibly even simpler,
|
2 |
Possibly even simpler,
|
3 |
\n
|
3 |
\n
|
4 |
{{{
|
4 |
{{{
|
5 |
function GG.map_AllowPositionTerraform(x, z)
|
5 |
function GG.map_AllowPositionTerraform(x, z)
|
6 |
return Spring.GetGroundHeight(x,z) > 0
|
6 |
return Spring.GetGroundHeight(x,z) > 0
|
7 |
end
|
7 |
end
|
8 |
}}}
|
8 |
}}}
|
9 |
\n
|
9 |
\n
|
10 |
This
will
let
people
dig
new
lava
holes
that
will
be
irreversible,
of
course.
|
10 |
This
will
let
people
dig
new
lava
holes
that
will
be
irreversible,
of
course.
But
it
is
also
trivially
applicable
to
any
lava
map
verbatim.
|
11 |
\n
|
|
|
12 |
\n
|
11 |
\n
|
|
|
12 |
(It's also what Violet Rampart does)
|