Page 1 of 1

Artillery Wagon Property for shooting while moving?

Posted: Thu Feb 21, 2019 12:57 am
by Xenalin
I can't seem to find a property that could be changed to allow the artillery wagon to shoot while moving. I imagined it would either be a boolean to toggle or a number for the minimum speed defaulted to 0.

I've looked this: https://wiki.factorio.com/Prototype/ArtilleryWagon and also the chain of prototypes it extends (rolling stock, vehicle...) as well as the gun prototype. I can't think of a solution or workaround.

Does anyone have any ideas?

Re: Artillery Wagon Property for shooting while moving?

Posted: Thu Feb 21, 2019 9:22 pm
by Rseding91
There is no property. The way the artillery works isn't compatible with moving while automatic shooting because it resets the area it's scanning every time it moves.

Re: Artillery Wagon Property for shooting while moving?

Posted: Fri Feb 22, 2019 1:47 am
by Xenalin
Hmm, ok. I don't understand, though, why it wouldn't just scan the area the next area the artillery was due to scan, either relative to were it was or relative to where it is based on when the event ticks. Surely there is nothing that would actually force the artillery not to shoot.

I think the principle issue is just that they omitted the functionality from the API, not that the game would crash if it were to shoot from a coordinate while it was moving, right?

Re: Artillery Wagon Property for shooting while moving?

Posted: Fri Feb 22, 2019 1:51 am
by DaveMcW
Xenalin wrote:
Fri Feb 22, 2019 1:47 am
Hmm, ok. I don't understand, though, why it wouldn't just scan the area the next area the artillery was due to scan, either relative to were it was
Because that area is no longer accurate.
Xenalin wrote:
Fri Feb 22, 2019 1:47 am
or relative to where it is
Because scanning every tick is too expensive.

Re: Artillery Wagon Property for shooting while moving?

Posted: Fri Feb 22, 2019 11:10 pm
by Xenalin
I meant that I had imagined the scan could have completed, start to finish, originating from the (x,y) position at t=0; in other words, the scan that would've happened as if the gun was stationary. Like a "fire-and-forget" scan, even if it doesn't make sense in terms of how radar works. The gun's movement would be disregarded by the scanning logic.

I guess it's a moot point if there's nothing in the API I can use though :(

Re: Artillery Wagon Property for shooting while moving?

Posted: Sat Feb 23, 2019 12:47 am
by Rseding91
Xenalin wrote:
Fri Feb 22, 2019 11:10 pm
I meant that I had imagined the scan could have completed, start to finish, originating from the (x,y) position at t=0; in other words, the scan that would've happened as if the gun was stationary. Like a "fire-and-forget" scan, even if it doesn't make sense in terms of how radar works. The gun's movement would be disregarded by the scanning logic.

I guess it's a moot point if there's nothing in the API I can use though :(
If it worked that way, the gun would be shooting at invalid things - stuff out of it's range.