Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Quaker540

(Solved) Explosions do the same damage at any specified range?

Recommended Posts

Hello everybody!

I'm working on a ZDoom mod, and I want to create an explosion that does the same damage at any specified range. Is this even possible? I've put;

TNT1 A 0 A_Explode(62,120)

But here's the problem; I've set 120 range, and I want to make the same damage inside this range, and not like usual explosions do. Is it possible?

Thanks a lot for reading! I'd appreciate if someone would help me! :D

Share this post


Link to post

Have a look at the wiki page for A_Explode. I think the fulldamageradius parameter is what you're looking for.

Share this post


Link to post

This works for me:

TNT1 A 0 A_Explode ( 62 , 120 , 1 , 1 , 120 )

but looking at the wiki, I'm not sure if those 1s should be 0s or what have you. The fifth parameter is full damage range.

Share this post


Link to post

The default values for the third and fourth parameters are XF_HURTSOURCE and 0 respectively. So:
NT1 A 0 A_Explode(62, 120, XF_HURTSOURCE, 0, 120)

Share this post


Link to post

Wow, BIG fail on me; I knew them but I didn't remembered them :/ Please excuse how stupid am I, it happens to me often.

Anyway, I used this;

TNT1 A 0 A_Explode(62, 150, 0, 0, 150)

Thanks a lot, everyone!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×