Page 1 of 1

Projectile detection field (circle/square)

Posted: Tue Feb 06, 2018 6:53 pm
by Collegia Titanica
I know it's an outlandish idea, but if something like this is accomplished, you can achieve 2 awesome effects which would allow deeper complexity to future mods.

If an actor can call upon a function that places some kind of radius which can detect projectiles, you can:
  • Make the actor jumpto/enter a user-created state like "Dodge" for example, since a projectile is incoming. Relying on Checking if targeted directly is insufficient.
  • If somehow the location/trajectory/velocity of the incoming projectile is ... locked/saved(?) you can tell an actor to jump to a "CounterFire" state in which you can use a solid projectile to fire at the incoming projectile -- Achieving interception (Phalanx CIWS)
Think about it

Re: Projectile detection field (circle/square)

Posted: Fri Feb 09, 2018 12:34 pm
by Graf Zahl
You can do this yourself in ZScript.

Re: Projectile detection field (circle/square)

Posted: Fri Feb 09, 2018 4:27 pm
by Collegia Titanica
Thank you for a straight forward answer. However, do you have any pointers as to how something like this would be accomplished ? What's the thought process and some useful functions ? I don't have any experience with programming.

Re: Projectile detection field (circle/square)

Posted: Fri Feb 09, 2018 4:37 pm
by Rachael
My first advice is to ask in Scripting - feel free to link this thread for context. There's plenty of people who are willing to help as long as you provide as much information as possible and be specific about what you need.

The issue with the development forums is it's for discussions relating directly to internal GZDoom code and some people subscribe these forums specifically for that purpose - so help topics should be done in the othermentioned forum, or it could annoy said users.

Re: Projectile detection field (circle/square)

Posted: Fri Feb 09, 2018 5:45 pm
by Collegia Titanica
Understood.