[DIY] Projectile detection field (circle/square)

Moderator: Developers

Projectile detection field (circle/square)

Postby Collegia Titanica » Tue Feb 06, 2018 7:53 pm

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
Collegia Titanica
 
Joined: 25 Jan 2018
Discord: 2834

Re: Projectile detection field (circle/square)

Postby Graf Zahl » Fri Feb 09, 2018 1:34 pm

You can do this yourself in ZScript.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Projectile detection field (circle/square)

Postby Collegia Titanica » Fri Feb 09, 2018 5:27 pm

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.
Collegia Titanica
 
Joined: 25 Jan 2018
Discord: 2834

Re: Projectile detection field (circle/square)

Postby Rachael » Fri Feb 09, 2018 5:37 pm

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.
User avatar
Rachael
QZDoom Project Lead + Webmaster
 
Joined: 13 Jan 2004

Re: Projectile detection field (circle/square)

Postby Collegia Titanica » Fri Feb 09, 2018 6:45 pm

Understood.
Collegia Titanica
 
Joined: 25 Jan 2018
Discord: 2834


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: Bing [Bot] and 1 guest