Page 1 of 1

Don't show projectiles outside of line of sight

Posted: 01 Dec 2012, 13:13
by Jools
For some reason, projectiles are globally visible. I'd like to propose to make them only visible when player has LOS, because, that's how we define line of sight. How come you can see the debris from a shell outside of LOS, but not a hawk fighter?

At least make it possible for game developers to choose how the visibility behaves.

Also, as a condequence, accessing projectiles withing LOS should be possible from a widget, just like it is currently possible with units.

Re: Don't show projectiles outside of line of sight

Posted: 01 Dec 2012, 14:36
by SpliFF
There's a very high likelyhood this change would slow the engine to a crawl - even if limited to long-range weapons. LOS checking is expensive.

Re: Don't show projectiles outside of line of sight

Posted: 01 Dec 2012, 14:47
by Jools
Then is there a way to make LOS checking less expensive? Many other games have it. It's a fundament to a rts game.

Re: Don't show projectiles outside of line of sight

Posted: 01 Dec 2012, 14:53
by jK
check the wiki ...

Re: Don't show projectiles outside of line of sight

Posted: 01 Dec 2012, 16:07
by Jools
Care to be a bit more specific?

Re: Don't show projectiles outside of line of sight

Posted: 01 Dec 2012, 18:05
by smoth
he is probably talking about
AlwaysVisible =0

which at the very least does not apply to missiles, I just checked in game.