Author Topic: [HELP] "blastRadius" and low values ?  (Read 3961 times)

Offline Ascadix

  • Captain
  • ***
  • Posts: 77
  • My English is as good as French schools ... :-p
    • View Profile
[HELP] "blastRadius" and low values ?
« on: March 01, 2014, 12:40:20 am »
Hi,

I'm trying to make some explosive bullet and i have a problem with "blastRadius".

Since it's only bullet and not bombshell nor missile/rocket, i want to have a very low radius of explosion, idealy, juste a little explosion on the target.

 :o But ...

With "blastRadius: 1" , i have an explosion like those of the autocanon, spreading few squares.  :(

With "blastRadius: 0", i have a little flash on the target, juste what i want, but damage seems to drop to 0.  :-\


Is there a way to have little explosion, restricted to the impacted square, but a damage value not null ?

Thanks

Offline Dioxine

  • Commander
  • *****
  • Posts: 5287
  • punk not dead
    • View Profile
    • Nocturnal Productions
    • Email
Re: [HELP] "blastRadius" and low values ?
« Reply #1 on: March 01, 2014, 03:41:45 am »
From my observations, High Explosive damage seems to do nothing when you reduce the blast radius to 0.

Offline Ascadix

  • Captain
  • ***
  • Posts: 77
  • My English is as good as French schools ... :-p
    • View Profile
Re: [HELP] "blastRadius" and low values ?
« Reply #2 on: March 01, 2014, 02:35:36 pm »
It's my problem.

With "1", the explosion blast over  3*3 squares (too big for a simple EP bullet)

With 0, the explosion graphics is limited to 1 square (good), but damage drop to 0 (bad)

SO ..Actualy it seems that we can't have an EP with damage limited to the impact square ?


Help, Warboy and other super-dev, could you do something for this ??  :)


Offline BlackLibrary

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: [HELP] "blastRadius" and low values ?
« Reply #3 on: March 01, 2014, 04:01:30 pm »
Actually, it appears to be a bug (or a feature?  :) ).

If you set blast radius at all, it only does damage if the damage type is high explosive.  Any other damage type using blast radius gives visual effect, but does no damage, and does not scorch tiles.  I was noticing this with a mod I was working on yesterday.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5287
  • punk not dead
    • View Profile
    • Nocturnal Productions
    • Email
Re: [HELP] "blastRadius" and low values ?
« Reply #4 on: March 01, 2014, 05:20:54 pm »
Correct me if I'm wrong, but as far as evenly-expanding explosion on a tiled map goes, there is no middle ground between 3x3 and 1x1, so what exactly do you want? If you don't want the blast, just change the damage type to something else.

@BlackLibrary:
Except Stun damage, of course. Blast works for it.

Offline BlackLibrary

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: [HELP] "blastRadius" and low values ?
« Reply #5 on: March 01, 2014, 05:27:53 pm »
Correct me if I'm wrong, but as far as evenly-expanding explosion on a tiled map goes, there is no middle ground between 3x3 and 1x1, so what exactly do you want? If you don't want the blast, just change the damage type to something else.

A one square explosion is fine..(Its flavor)...its just does no damage.  I think his issue is that it ignores the power (damage) if not HE (or stun, as you mentioned).


Offline Ascadix

  • Captain
  • ***
  • Posts: 77
  • My English is as good as French schools ... :-p
    • View Profile
Re: [HELP] "blastRadius" and low values ?
« Reply #6 on: March 01, 2014, 07:14:32 pm »
Hello,

What i try to do is a weapon that make "explosive damage" to the target ( damageType: 3)

but since it's designed to be juste a simple explosive bullet, i don't want:
- have a big explosion graphic that cover more than one square
- damage surrounding unit, so the radius must be limited to the impact square.

With "blastRadius: 0", the visual effect is ok, but target take no damage at all.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2339
  • Developer
    • View Profile
    • Email
Re: [HELP] "blastRadius" and low values ?
« Reply #7 on: March 06, 2014, 03:02:49 pm »
high explosive and incendiary bullets were set to hit 2 voxels behind the impact. this has been fixed to check for weapons with a blast radius instead.

Offline BlackLibrary

  • Colonel
  • ****
  • Posts: 133
    • View Profile
Re: [HELP] "blastRadius" and low values ?
« Reply #8 on: March 06, 2014, 07:53:00 pm »
Cool.  Hope that fixes damage as well.  I'll test and check.

Offline Ascadix

  • Captain
  • ***
  • Posts: 77
  • My English is as good as French schools ... :-p
    • View Profile
Re: [HELP] "blastRadius" and low values ?
« Reply #9 on: March 08, 2014, 11:05:22 pm »
After some testing,

Ok for the damages, but with blastRadius: 0   , the hit animation and sounds seems to be more a little "incendiary hit" than an "explosive hit".


Is it possible to use custom hit sprites and sounds with a damage type HE ?