New Parameters for A_CustomPunch

Moderator: GZDoom Developers

Post Reply
User avatar
Ichor
Posts: 1783
Joined: Wed Jul 23, 2003 9:22 pm

New Parameters for A_CustomPunch

Post by Ichor »

I've noticed while using A_CustomPunch that there were some values that weren't being used, but were used in functions like FAxeAttack and FHammerAttack. I figured it would be useful to have them in A_CustomPunch as well.

cone: This would be the radial range of the attack (FHammerAttack is 45°, for instance).

thrust: This would be how much to push the target back when it's hit.
User avatar
nazakomu
Posts: 131
Joined: Wed Nov 30, 2016 12:51 am
Graphics Processor: nVidia with Vulkan support

Re: New Parameters for A_CustomPunch

Post by nazakomu »

I second this, I have always wanted a 'thrust' parameter for this specifically!
User avatar
Lord Misfit
Posts: 221
Joined: Wed Dec 27, 2006 8:13 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: Canton, OH
Contact:

Re: New Parameters for A_CustomPunch

Post by Lord Misfit »

Ichor wrote:I've noticed while using A_CustomPunch that there were some values that weren't being used, but were used in functions like FAxeAttack and FHammerAttack. I figured it would be useful to have them in A_CustomPunch as well.

cone: This would be the radial range of the attack (FHammerAttack is 45°, for instance).

thrust: This would be how much to push the target back when it's hit.
Another suggestion to this, an optional argument that allows the attack to hit ALL targets inside the "cone" instead of just the first one found. :o
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: New Parameters for A_CustomPunch

Post by Nash »

I don't mean to be that guy, but I get the feeling this will get a "do it yourself with ZScript" response... ?
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: New Parameters for A_CustomPunch

Post by Accensus »

If these are already implemented in the engine, it'd be a waste of time and effort to reinvent the wheel using ZScript. Having this stuff natively would be much, much better.
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: New Parameters for A_CustomPunch

Post by Graf Zahl »

Sorry, but the suggestion is beyond the scope of what A_CustomPunch is supposed to do. DIY is actually the recommended solution here.
User avatar
Ichor
Posts: 1783
Joined: Wed Jul 23, 2003 9:22 pm

Re: New Parameters for A_CustomPunch

Post by Ichor »

Oh well...worth a shot. I'm not particularly thrilled with using ZScript right now, but I guess I can fiddle with it later on.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”