ZeroK-RTS / Zero-K

Open source RTS game running on the Spring/Recoil engine
https://zero-k.info
GNU General Public License v2.0
674 stars 204 forks source link

Give engine trees a model and hitvolume #1669

Closed GoogleFrog closed 7 years ago

GoogleFrog commented 7 years ago

On Finns Revenge I tried to reclaim trees for a while until I remembered that I had to center the cursor on a tree. This still failed because the trees there lack hitvolumes. The raytrace to hit trees should have a fallback which checks if there are any trees in a small area around the hit ground position for such a case.

sprunk commented 7 years ago

Does Finns use engine trees? Perhaps they could get a proper hitvolume instead which would make it failproof (the radius should be as low as possible yet for any given search radius there's a failing case).

sprunk commented 7 years ago

It seems that things using the default engine tree rendering (ie. 2d sprites and not a model) cannot have a hitvolume. However the trees are fairly ugly anyway so I think the best solution would be to get a decent model which both makes them look decent and enables hitvolume.

GoogleFrog commented 7 years ago

Sounds good.

sprunk commented 7 years ago

https://springrts.com/phpbb/viewtopic.php?f=13&t=35914

This might get solved engine-side. If not, the tree set provided by Beherith looks very good and I'd use it.