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

A question about scaling down damage

Question

Posted (edited)

So I got this line for a projectile from an actor

 

GRNE A 3 Bright A_Explode (128,256,0)

 

or this

 

TXP1 H 1 Bright A_Explode(15,104,1)

 

I don't want it to one-shot me, and generally I want it to be able to take like 3 of these if I'm at 100 health. How do I change these values so this is possible? Which value is what?

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

https://zdoom.org/wiki/A_Explode

 

This page tells that the first two parameters in the brackets are damage and distance.

So I think that you have to change the first value in order to modify the damage output, and the second to modify the distance where "this damage does damage".

Share this post


Link to post
  • 1
Just now, Simomarchi said:

Are you sure? I think that the distance parameter is simply how much of the "damage" value is given to the player based on his position at the moment of the explosion.

So for example if I have 100 damage and 200 distance I will recieve:

Full damage at 0 distance

75 damage at 50 distance

50 damage at 100 distance

And so on

As far as I know radius damage is an additional damage given to the player with the previous one

Of cuorse if I'm wrong I will gladly accept any critic

Lemme just copy from the zdoom wiki page you literally just posted

 

distance: The area covered by the damage (damage inflicted drop linearly with distance). Note that a radius larger than 32767 extends beyond ZDoom's map space limitations, and will overflow with undesired results (such as becoming too small and damaging nothing). If damage is less than 0, the ExplosionRadius property is used for the radius. A radius value of 0 or less uses the same value which damage uses. Default is -1.

Share this post


Link to post
  • 0
4 minutes ago, unpleasantmarine said:

You could just say radius

Are you sure? I think that the distance parameter is simply how much of the "damage" value is given to the player based on his position at the moment of the explosion.

So for example if I have 100 damage and 200 distance I will recieve:

Full damage at 0 distance

75 damage at 50 distance

50 damage at 100 distance

And so on

As far as I know radius damage is an additional damage given to the player with the previous one

Of cuorse if I'm wrong I will gladly accept any critic

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
×