Page 1 of 1

Pass through wrecks.

Posted: 27 Oct 2009, 00:41
by Google_Frog
A new movedefs setting "passthroughstrength" which allows units to pass through but not crush wrecks of that strength and lower, like crushstrength but without the crush.

This would be used for hovercraft and other hovering land units so that they can pass over wrecks.

Re: Pass through wrecks.

Posted: 27 Oct 2009, 02:34
by jK
This would cause a problem with trees, which are high but have less (crush-)strength, so you don't want hovers passing through them.

So it would either need a whole new system (perhaps categories), or a "hoverheight" which is checked against the feature's/unit's modelheight.

Re: Pass through wrecks.

Posted: 27 Oct 2009, 02:46
by Google_Frog
Instead of auto-detection for hoverheight how about a new wreck tag "hoverblocking". Or if some people want to make games with multiple different hover heights how about a bit array in movetypes and wreckdefs that check whether any given movetype can pass over any given wreck. Much like the current shield vs weapon blocking array.

Re: Pass through wrecks.

Posted: 27 Oct 2009, 06:09
by thesleepless
i'd much prefer a hoverheight and wreckheight setup, also bots should be able to climb over low wrecks

Re: Pass through wrecks.

Posted: 27 Oct 2009, 08:31
by Google_Frog
thesleepless wrote:i'd much prefer a hoverheight and wreckheight setup
As long as wreckheight can be set in wreckdefs. Auto-detection would be easier for a game dev but would take away control. Calculating wreck height from the model would make normalising what can and can't be passed over by certain things too hard for game devs to manage. When it comes to engine features such as this I think controllability and options should be more important than how easy it is for the game dev.