Two Muzzleflash Colors?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Two Muzzleflash Colors?

Post 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?
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Two Muzzleflash Colors?

Post 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"
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Two Muzzleflash Colors?

Post 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?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Two Muzzleflash Colors?

Post by kinetosimpetus »

i think the second one overwrites the first one
Post Reply