Grenade/explosive damage fading
2013-05-12, 11:52 AM
#21
RE: Grenade/explosive damage fading
Looking at them closer and the 2x becomes a real problem because they drop off extremely quickly. The killing range would be about 1/3 of what it is now.
Post Reply Quote this message in a reply
2013-05-13, 03:57 PM
#22
RE: Grenade/explosive damage fading
The "range" can be increased to balance it. Then you can check if the "falling" is reasonable.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-05-13, 06:49 PM
#23
RE: Grenade/explosive damage fading
It kills at 3-4% of the range(approximately) so with a 15 meter range it will kill at <1 we need a range of nearly 70 meters to maintain the current range of ~2.5m kill
Post Reply Quote this message in a reply
2013-05-14, 03:52 PM
#24
RE: Grenade/explosive damage fading
(2013-05-09, 07:32 PM)ruler501 Wrote: I do like the curve with that more. I modified them to make sure they drop below one at range.
...

Instead of "rlin: max/((max-1)*x+1)", try "rlin: max/(x+1)" (x is distance/range).

At the maximum range, half the damage is dealt (quarter for the square, eighth for cubic, etc.) and it continues to infinity. Use the code to set the cutoff when the damage falls below 1.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-05-14, 04:00 PM
#25
RE: Grenade/explosive damage fading
I thought that range should be when it stops doing damage(drops below 1)
If not what should we be using as range?
Post Reply Quote this message in a reply
2013-05-15, 05:35 PM
#26
RE: Grenade/explosive damage fading
Well, reciprocal fading means the the damage will continue to infinity, but just wear off quickly. After the damage falls below a threshold, it does not need to be applied to the player any more.

For linear and "regular" fading, range is when it fully loses the specified damage. For reciprocal fading, I would use the "damage subtract" setting as the damage cutoff and "range" as a guideline for its fading speed.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-05-15, 08:44 PM
#27
RE: Grenade/explosive damage fading
I think it would make more sense for range to be the spot where it ends(plus it simplifies the code a lot). Either way though we have the same problem.
Post Reply Quote this message in a reply
2013-05-16, 01:13 PM
#28
RE: Grenade/explosive damage fading
For reciprocal functions, it never ends. We just set a cut-off point.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-05-16, 03:01 PM
#29
RE: Grenade/explosive damage fading
The cutoff point is when it drops below one right?
I have been using that and setting the equations to have that point be at endrange.
Post Reply Quote this message in a reply
2013-05-16, 04:29 PM
#30
RE: Grenade/explosive damage fading
The cut-off point is adjustable because we can re-use the variables

"Normal" fading:
Start range
End range
Fade amount

Reciprocal fading:
Start range
End range -> "fading factor"
Fade amount -> cutoff point

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply


Forum Jump: