IgnoreTerrain weapon tag

IgnoreTerrain weapon tag

Requests for features in the spring code.

Moderator: Moderators

Post Reply
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

IgnoreTerrain weapon tag

Post by Google_Frog »

I would like weapons that ignore terrain when aiming. This would be a tag similar to ignoreFeature.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: IgnoreTerrain weapon tag

Post by Forboding Angel »

+1
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: IgnoreTerrain weapon tag

Post by Google_Frog »

Bump, turns out this would be useful for working around a portion of this http://springrts.com/mantis/view.php?id=2510.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: IgnoreTerrain weapon tag

Post by jK »

wd.onlyForward = !wd.turret && (wd.type != "StarburstLauncher");

If onlyFoward == true, then ground test is skipped already.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: IgnoreTerrain weapon tag

Post by Google_Frog »

So what do I do if I want a weapon like Bertha to ignore terrain? Is there a tag I can see or do I need to slave the weapon to a StarburstLauncher? I think slaving is a sufficiently complex workaround to warrant a new weapon tag.

It would also be nice if StarburstLaunchers didn't have hardcoded terrain ignoring. Although then the trajectory would need to be plotted for StarburstLaunchers which would be a lot more work than simply adding a tag alongside the current terrain checks that can be set with weapondefs.
Post Reply

Return to “Feature Requests”