Page 1 of 1

Two Muzzleflash Colors?

Posted: Sun Apr 19, 2009 4:10 pm
by trainmaster611
Hey guys, while I was looking through the rep_weap_inf_rifle.odf I came to the muzzleflash section and I noticed something funny:
MuzzleFlash = "small_muzzle_flash"
FlashColor = "80 80 255 255"
FlashLength = 0.025
FlashColor = "100 100 255 255"
FlashLength = 0.025
FlashLightColor = "220 220 255 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
There are two sets of parameters regarding the FlashColor and FlashLength. In the case of FlashColor, the values are different. After hunting around a little bit, I found the same thing with almost every 'cannon' weapon ODF I looked into -- they had two sets of parameters for FlashColor with different values.

I'm wondering why this is so and what difference does making these two values different make?

Re: Two Muzzleflash Colors?

Posted: Sun Apr 19, 2009 4:13 pm
by YaNkFaN
the 2 colors there aren't that different really they're just different variations of blue. One may be a start color and one may be an end color and the flash goes from one color to the other (just a guess here) or the glow cause the flash is defined as a texture "small_muzzle_flash"

Re: Two Muzzleflash Colors?

Posted: Sun Apr 19, 2009 4:17 pm
by trainmaster611
That's what I had suspected too but how can the game distinguish which value is the start and which is the end if the parameters have the same name? Even if one comes before the other, wouldn't that render one of them invalid?

Re: Two Muzzleflash Colors?

Posted: Sun Apr 19, 2009 4:42 pm
by kinetosimpetus
i think the second one overwrites the first one