Page 1 of 1

IgnoreTerrain weapon tag

Posted: 02 Apr 2011, 10:27
by Google_Frog
I would like weapons that ignore terrain when aiming. This would be a tag similar to ignoreFeature.

Re: IgnoreTerrain weapon tag

Posted: 02 Apr 2011, 23:28
by Forboding Angel
+1

Re: IgnoreTerrain weapon tag

Posted: 02 Jul 2011, 16:10
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.

Re: IgnoreTerrain weapon tag

Posted: 02 Jul 2011, 17:47
by jK
wd.onlyForward = !wd.turret && (wd.type != "StarburstLauncher");

If onlyFoward == true, then ground test is skipped already.

Re: IgnoreTerrain weapon tag

Posted: 03 Jul 2011, 06:40
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.