Don't show projectiles outside of line of sight

Don't show projectiles outside of line of sight

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Don't show projectiles outside of line of sight

Post 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.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

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

Post 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.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

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

Post 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.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

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

Post by jK »

check the wiki ...
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

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

Post by Jools »

Care to be a bit more specific?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

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

Post by smoth »

he is probably talking about
AlwaysVisible =0

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

Return to “Feature Requests”