Projectile detection field (circle/square)

Moderator: GZDoom Developers

Post Reply
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Projectile detection field (circle/square)

Post 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
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Projectile detection field (circle/square)

Post by Graf Zahl »

You can do this yourself in ZScript.
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Re: Projectile detection field (circle/square)

Post 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.
User avatar
Rachael
Posts: 13557
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Projectile detection field (circle/square)

Post 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.
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Re: Projectile detection field (circle/square)

Post by Collegia Titanica »

Understood.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”