Unlimited Vertical range?

Unlimited Vertical range?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14385
Joined: 17 Nov 2005, 02:43

Unlimited Vertical range?

Post by Forboding Angel » 11 Jun 2017, 11:24

Is there any weapondef tag that allows weapons to have unlimited range vertically within their horizontal range circle?

Edit:
float cylinderTargeting  default: 0.0 (1.0 for #Melee) 
Controls whether the weapon range is calculated in a sphere or a cylinder. The height of the cylinder is determined by the value of this tag multiplied by the range. Clamped between 0.0 and 128.0.

Some wording on this has changed (either that or I "misremember" it), specifically "Weapon range calculated". That's good, that means this does what I want I think.
0 x

User avatar
Silentwings
Moderator
Posts: 3409
Joined: 25 Oct 2008, 00:23

Re: Unlimited Vertical range?

Post by Silentwings » 11 Jun 2017, 19:41

There isn't a tag for "unlimited", only the one you found. If height of 128x weapon range is really too small for you, you could set a range value greater than any sane map radius and have a gadget containing an appropriate return value for AllowWeaponTarget{Check} - you'd have to also gadgetize the "real" range circle if you wanted it visible on mouseover/selection.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14385
Joined: 17 Nov 2005, 02:43

Re: Unlimited Vertical range?

Post by Forboding Angel » 12 Jun 2017, 01:21

Yes it does indeed work the way I wanted. Weird thing I'm seeing now is that vs aircraft that are higher than the unit's normal range, while they will attack the high aircraft if you tell them to, and hit it, they won't attack on their own. I'm guessing because the aircraft is beyond their normal range.
0 x

User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2695
Joined: 25 Aug 2004, 13:31

Re: Unlimited Vertical range?

Post by bobthedinosaur » 30 Jun 2017, 07:39

can you force the unit to auto target if you can give it a dummy 2nd weapon with a larger range?
0 x

Post Reply

Return to “Game Development”