Search In
• More options...
Find results that contain...
Find results in...
• 0

# 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?

## Recommended Posts

• 0

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".

• 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.

• 0
4 minutes ago, Simomarchi said:

and the second to modify the distance where "this damage does damage".

• 0
4 minutes ago, unpleasantmarine 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

• 0

Thank you!

## Create an account

Register a new account