Minimum distance possible for artillery pieces? - Page 2

Minimum distance possible for artillery pieces?

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

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6243
Joined: 29 Apr 2005, 01:14

Re: Minimum distance possible for artillery pieces?

Post by FLOZi »

Well perhaps - but there was no tag to control it. :P
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Minimum distance possible for artillery pieces?

Post by Evil4Zerggin »

yuritch wrote:If you want to check for minimum range, do it in the AimWeaponX script for the arty weapon, use get TARGET_ID to find out which unit it targets, and then use get UNIT_XZ on that unit and the firing unit to calculate the distance. That's probably best kept on long-reload weapons only as all those calls can in theory slow the game down if used on a fast reload spammable units.
I thought AimWeaponX was called every slow update regardless of reload time?
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: Minimum distance possible for artillery pieces?

Post by yuritch »

I'm not really sure, such tricks usually work for my arty units (not for min range checking though), but those have long reload times. Haven't tried with fast-reload weapons.
Post Reply

Return to “Game Development”