The math behind radiusdamage

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

The math behind radiusdamage

Post by Rookie One.pl »

Hi,

I need to write up something that would work as similar to radiusdamage as possible and I need to know how to count the amount of damage that should be dealt at specific distance from the centre of an explosion. Anyone knows the logic/math that lies behind this? I just know that the further from the explosion the less damage you get... Some kind of equation maybe?

Thanks in advance,

Rookie One
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

That's what I thought at first... I'll give it a try and see.

<EDIT>Yeah... Lol. :P Weird. ;)</EDIT>
Last edited by Rookie One.pl on Tue Feb 15, 2005 9:14 pm, edited 1 time in total.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's most likely lineair (max damage at center, reduces to zero at boundary).

Edit: wow I think our posts got mixed up :shock:
Last edited by jv_map on Tue Feb 15, 2005 7:41 pm, edited 1 time in total.
Image
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

:mrgreen:
wow,some wierd stuff.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

radiusdamage $random_explode7_origin 256 384

Well, If jv_map is right, the two number are, max damage at center, and the linear damage radius.

However, I have always thought of them as, the kill radius, and the linear damage radius.
Tom Trude,

Image
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

MATHS!!!!!!!!


MATHS!

Maths has a s!
Post Reply