Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: FUBAR-BDHR on March 21, 2008, 03:11:17 pm

Title: Special explosion questions
Post by: FUBAR-BDHR on March 21, 2008, 03:11:17 pm
Trying to make an event to tell if a ships was destroyed by a special explosion or not.  Only way I can think of doing it is to check the distance between the two ships at the time of the explosion and if the damage would be enough to kill the ship.  What I need to know is how the damage works for the special explosion.  Basically what do the inner and outer radius mean?  What is the shockwave speed measured in?  How do both effect blast damage?

Values I'm using:

Damage 40000
Blast 16000
Inner radius 750
Outer radius 1500
Shockwave on
Shockwave speed 591

The ship is also set to kamikaze so it blows up immediately. 
Title: Re: Special explosion questions
Post by: FUBAR-BDHR on March 21, 2008, 04:59:26 pm
I tried making a test mission to see damages.  6 identical ships at different distances with the mine in the middle.  Ran the test three times and got 3 different results.

Ship 1    distance of 500   run 1 damage 0   run 2 damage 0   run 3  damage 1
Ship 2    distance of 750   run 1 damage 10  run 2 damage 8   run 3  damage 18
Ship 3    distance of 1100  run 1 destroyed   run 2 destroyed   run 3  destroyed
Ship 4    distance of 1500  run 1 damage 62   run 2 damage 54   run 3  damage 86
Ship 5    distance of 2000   run 1 damage 0   run 2 damage 0   run 3  damage 0
Ship 6    distance of 2500   run 1 damage 0   run 2 damage 0   run 3  damage 0

I don't understand how the ships closest to the blast take less damage.  Not to mention how the same blast with the ships in the same position can result in such different results.

Did I just find another bug? 

Quote from: FRED2 docs
This lets you provide an unusual explosion when and if this ship is destroyed. Damage is the amount of damage taken by ships caught within the Inner Damage Radius of this ship when it blows. The amount of damage decreases steadily out to the Outer Damage Radius, where no damage is taken. Blast determines how hard anyone caught in the explosion is pushed away from it. The Shockwave is the blue visual effect seen on some large explosions.

According to that the ship that is 500 away should take the full 40000 damage which is about 3x it's hull. 

Just tried it with a 3.6.10 build and it does the same thing. 
Title: Re: Special explosion questions
Post by: haloboy100 on March 21, 2008, 06:59:09 pm
The inner radius damage is the damage taken when you're near the center of the blast, and the damage decreases down to the outer radius value. Right?
Title: Re: Special explosion questions
Post by: FUBAR-BDHR on March 21, 2008, 07:10:18 pm
That's what the docs say but that's not what is happening.  The ship that is 1100 away from the blast is taking the most damage.  The ship closest to the blast is taking little or no damage.
Title: Re: Special explosion questions
Post by: Colonol Dekker on March 21, 2008, 10:17:10 pm
Bad grammar on :v: they shove read ships between the inner and outer ranges. Try setting the inner range to zero and see what happens :)
Title: Re: Special explosion questions
Post by: FUBAR-BDHR on March 21, 2008, 11:10:01 pm
Well it works that way in FS2 retail and open but doesn't work the same in TBP. 
Title: Re: Special explosion questions
Post by: Colonol Dekker on March 21, 2008, 11:29:54 pm
Isn't TBP executable an SCP derivative?
Maybe Karajorma can shed some light. :) night/morning i'm gonna sleep.
Title: Re: Special explosion questions
Post by: FUBAR-BDHR on March 22, 2008, 01:02:43 pm
It's the shockwave.  If I turn it off in TBP the explosion works fine destroying the 3 ships in range and damaging the 4th right at 1500.   Turn the shockwave on and it only kills the one ship between the 750 and 1500.  FS2 works fine with the shockwave on.
Title: Re: Special explosion questions
Post by: karajorma on March 23, 2008, 03:16:47 am
Sounds like someone has messed up the way shockwaves work. Mantis it and attach the version that works in FS2 Retail to the report.
Title: Re: Special explosion questions
Post by: FUBAR-BDHR on March 23, 2008, 12:48:02 pm
It's in there.  I added the TBP test mission as well.  I didn't know what to classify this as though. 

Also noticed that with the shockwave turned off the blast is invisible.  Not sure if that is by design or not.