Changing Muzzle Flash Colour [Solved]

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
nmycon
Private Recruit
Posts: 20
Joined: Mon Apr 13, 2009 2:57 pm
Projects :: Star Wars Movie Mods
Games I'm Playing :: LA Noire MLB 11 BF2
Location: Toronto, ON

Changing Muzzle Flash Colour [Solved]

Post by nmycon »

I am trying to make an Imperial hero fire a green laser from his blaster

I've adjusted the colour within the weapon's ordinance ODF, so now the laser appears green when moving through the air, but the muzzle flash is still red (very noticeable in first person)

I've looked through the common blaster and ordinance ODF files and see nothing there that would affect the colour of muzzle flash

I'm just getting back into modding after about 2 years, this seems like something I could have fixed back then, but I'm at a loss for the time being :?
Last edited by nmycon on Wed Jul 06, 2011 11:50 pm, edited 2 times in total.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Changing Muzzle Flash Colour

Post by DarthD.U.C.K. »

you can find the muzzleflash properties in the common weapon odfs:

Code: Select all

MuzzleFlash         = "small_muzzle_flash"
FlashColor          = "100 255 100 255"
FlashLength             = 0.025
FlashLightColor         = "192 255 192 175"
FlashLightRadius        = "2.0"
FlashLightDuration      = "0.25"
Discharge           = "small_smoke_effect"
nmycon
Private Recruit
Posts: 20
Joined: Mon Apr 13, 2009 2:57 pm
Projects :: Star Wars Movie Mods
Games I'm Playing :: LA Noire MLB 11 BF2
Location: Toronto, ON

Re: Changing Muzzle Flash Colour

Post by nmycon »

Thank's a lot for pointing me in the right direction :)

However, I've since realized that all weapons have a red muzzle flash regardless of the colour of the laser they shoot. Since I'm going to be having stock units as well as custom ones, I've decided to keep all muzzle flash red just to keep things consistent

I will definatey remember this for the future though :D
Post Reply