A_RadiusThrust

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Nirvana
Posts: 156
Joined: Thu May 01, 2008 8:15 am

A_RadiusThrust

Post by Nirvana »

Is this a projectile only flag?

Essentially I have a monster that, using A_Jumpifcloser will thrust away opponents when they get close, I attempted to use A_RadiusThrust to achieve this, but no dice. Do I have to make give the monster a CustomMissile attack that fires a dummy projectile that will thrust the monster? If so, can I get an example script?

I used A_Blast, but that has set parameters which I couldn't seem to edit. When my monster fights monsters such as SpiderMasterminds, he gets in too close and attempts to use A_Blast over and over to push them away, obviously leaving him a sitting duck as they have too much mass to be thrusted.

Otherwise, what is an example of how to edit A_Blast so that it will push monsters with larger masses?

Or perhaps I could code him so that when monsters with larger masses are close to him, he realises they cannot be thrust and uses a different attack instead?
-this one seems the least likely to work effectively.

I've looked into this on the wiki and edited myself in Decorate and couldn't seem to find a suitable solution.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: A_RadiusThrust

Post by Amuscaria »

Like A_Explode, you shouldn't use this action on a monster directly (I think?). Have the monster spawn a missile that lasts 1 tic, with 0 speed, that calls this action the instant it's spawned. And make it invisible.
User avatar
Nirvana
Posts: 156
Joined: Thu May 01, 2008 8:15 am

Re: A_RadiusThrust

Post by Nirvana »

Would A_CustomMissile be the best option, or A_SpawnItemEx? I'm guessing A_CustomMissile as that will retain the targetting of the monster...correct?
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: A_RadiusThrust

Post by Amuscaria »

If you just wanted to thrust enemies away, either one would work.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: A_RadiusThrust

Post by Xaser »

You might want to consider using [wiki]A_Blast[/wiki] instead. A_RadiusThrust has been known to be really unreliable.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: A_RadiusThrust

Post by NeuralStunner »

Xaser wrote:A_RadiusThrust has been known to be really unreliable.
I can't think of a single project that tried it and didn't turn to some other means... Hopefully there would be little to know compatibility breakage if it were to be changed. Although there's always compat flags...
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

Re: A_RadiusThrust

Post by Demolisher »

Eriance wrote:Like A_Explode, you shouldn't use this action on a monster directly (I think?). Have the monster spawn a missile that lasts 1 tic, with 0 speed, that calls this action the instant it's spawned. And make it invisible.
??? This can be used on almost any actor, even players now. Useful for radius damage to monsters in the pain state.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: A_RadiusThrust

Post by XutaWoo »

It can, but it's unrecommended as the target of the actor is the actual owner of the explosion. Reason why some old exploding monsters don't, well, deal damage or cause a suicide if they kill you.
User avatar
Nirvana
Posts: 156
Joined: Thu May 01, 2008 8:15 am

Re: A_RadiusThrust

Post by Nirvana »

Demolisher wrote:
Eriance wrote:Like A_Explode, you shouldn't use this action on a monster directly (I think?). Have the monster spawn a missile that lasts 1 tic, with 0 speed, that calls this action the instant it's spawned. And make it invisible.
??? This can be used on almost any actor, even players now. Useful for radius damage to monsters in the pain state.
Are you sure of this? I tried using it on my actor directly, with no effect whatsoever. I could have used it incorrectly, but it did nothing.
Xaser wrote:You might want to consider using [wiki]A_Blast[/wiki] instead. A_RadiusThrust has been known to be really unreliable.
A_Blast is what I am using currently, but I couldn't seem to change the parameters for it to make it thrust larger enemies; hence possibly using Radius_Thrust, although it doesn't seem to be such a good idea based on the suggestions here.
Locked

Return to “Editing (Archive)”