1 |
There
isn't
much
the
_post
does
that
actually
changes
gameplay
values
other
than
representation.
For
example
the
customparams
energy
doesn't
change
the
underlying
meaning
of
"produces
X
energy".
Note
that
Spring
itself
also
changes
representation
between
what
it
receives
from
defs.
lua
and
what
it
provides
to
Lua
in
the
form
of
UnitDefs
[spoiler]For
example
defs.
lua
has
"maxvelocity"
but
UnitDefs
provide
"speed";
missile
flight
time
goes
in
as
seconds
but
comes
out
as
frames;
trajectory
height
comes
as
angle
X
in
degrees
but
comes
out
as
tan(
X)
.
[/spoiler]
|
1 |
There
isn't
much
the
_post
does
that
actually
changes
gameplay
values
other
than
representation
for
technical
reasons.
For
example
the
customparams
energy
doesn't
change
the
underlying
meaning
of
"produces
X
energy".
Note
that
Spring
itself
also
changes
representation
between
what
it
receives
from
defs.
lua
and
what
it
provides
to
Lua
in
the
form
of
UnitDefs
[spoiler]For
example
defs.
lua
has
"maxvelocity"
but
UnitDefs
provide
"speed";
missile
flight
time
goes
in
as
seconds
but
comes
out
as
frames;
trajectory
height
comes
as
angle
X
in
degrees
but
comes
out
as
tan(
X)
.
[/spoiler]
|
|
|
2 |
\n
|
|
|
3 |
The meaningful things _posts does are:
|
|
|
4 |
* [url=https://github.com/ZeroK-RTS/Zero-K/blob/master/gamedata/unitdefs_post.lua#L243]default decloak radius for units that don't have one[/url],
|
|
|
5 |
* [url=https://github.com/ZeroK-RTS/Zero-K/tree/master/gamedata/unitdef_defaults]defaults for Lua-based mechanics for units[/url],
|
|
|
6 |
* [url=https://github.com/ZeroK-RTS/Zero-K/blob/master/gamedata/unitdefs_post.lua#L367]randomly buffs acceleration[/url],
|
|
|
7 |
* [url=https://github.com/ZeroK-RTS/Zero-K/blob/master/gamedata/unitdefs_post.lua#L531]sets the reversing velocity[/url],
|
|
|
8 |
* [url=https://github.com/ZeroK-RTS/Zero-K/blob/master/gamedata/unitdefs_post.lua#L627]overrides mass[/url],
|
|
|
9 |
* [url=https://github.com/ZeroK-RTS/Zero-K/blob/master/gamedata/unitdefs_post.lua#L675]sets minimum build range[/url],
|