Flamethrower color

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
SergeantPurge
Recruit Womprat Killer
Posts: 6
Joined: Fri Jun 09, 2017 6:36 am
Projects :: Genesis mappack
Games I'm Playing :: StarWarsBattlefront2
xbox live or psn: No gamertag set

Flamethrower color

Post by SergeantPurge »

Hello everyone, sergeant purge here.

I'm fairly new to modding, but i already published one map (Endor riverbed) and am now working on a mappack. For this mappack i'm adding in new heroes for all sides and for one of them i would like to change up his weapon. He uses a flamethrower but i was wondering if i could change the color of the flames from orange/red to blue. But i don't know how to do this. I allready looked into the ODF's but couldn't find anything there that seemed of use (i could be wrong). Any help is appreciated :)

ps: this is the first post i made and i read the site rules, but if there's any rule i violated please point me at it so i can avoid it in the future, thanks for the help!
pss: if there's any ODF's i need to post here for some reason tell me in the comments, i didn't include them here to not clutter up the post.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Flamethrower color

Post by Marth8880 »

Welcome to Gametoast! :)

You need to alter the Spawner and Transformer's Color values in the flamethrower ordnance's FX file. You can do so with a text editor or with Particle Editor.

Code: Select all

Spawner()
	{
		Spread()
		{
			PositionX(-1.0000,1.0000);
			PositionY(-1.0000,1.0000);
			PositionZ(-1.0000,1.0000);
		}
		Offset()
		{
			PositionX(-0.1000,0.1000);
			PositionY(-2.6000,-2.4000);
			PositionZ(-0.1000,0.1000);
		}
		PositionScale(0.0000,0.0000);
		VelocityScale(0.1000,0.1000);
		InheritVelocityFactor(0.0000,0.0000);
		Size(0, 0.6500, 0.6500);
		Red(0, 80.0000, 80.0000);    // modify these values
		Green(0, 80.0000, 80.0000);    // modify these values
		Blue(0, 80.0000, 80.0000);    // modify these values
		Alpha(0, 0.0000, 64.0000);    // modify these values
		StartRotation(0, 1.0000, 1.0000);
		RotationVelocity(0, -1.0000, -1.0000);
		FadeInTime(0.0000);
	}
	Transformer()
	{
		LifeTime(0.5000);
		Position()
		{
			LifeTime(0.7500)
			Accelerate(0.0000, 0.0000, 100.0000);
		}
		Size(0)
		{
			LifeTime(0.2000)
			Scale(1.0000);
		}
		Color(0)
		{
			LifeTime(0.1000)
			Move(0.0000,0.0000,0.0000,191.0000);    // modify these values
			Next()
			{
				LifeTime(0.3500)
				Move(0.0000,0.0000,0.0000,-255.0000);    // modify these values
			}
			// note that the above few lines in the Color{} tree might refer to Reach instead of Move, just do the same with those if it does
		}
	}
Particle Editor basics: http://www.gametoast.com/viewtopic.php?f=27&t=23495
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Flamethrower color

Post by AnthonyBF2 »

You can also color the fire textures using an editor like Gimp or Photoshop.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Flamethrower color

Post by Marth8880 »

AnthonyBF2 wrote:You can also color the fire textures using an editor like Gimp or Photoshop.
True but it's best practice (and cheapest) to stick with colorizing them via the particle system.
SergeantPurge
Recruit Womprat Killer
Posts: 6
Joined: Fri Jun 09, 2017 6:36 am
Projects :: Genesis mappack
Games I'm Playing :: StarWarsBattlefront2
xbox live or psn: No gamertag set

Re: Flamethrower color

Post by SergeantPurge »

Ok i tried to "post a reply" but it didn't go through i think, at least i don't see it anywhere (if it did go through i apoligize for the "spam"). anyway, thanks for the help but i searched around in my sides folder for the flamethrower sfx ord files, by searching for all files that mention flamethrower, but i could only find these files:

imp_weap_hero_flamethrower.odf
com_weap_inf_flamethrower_ord.odf
com_weap_inf_flamethrower_exp.odf
com_weap_inf_flamethrower.odf
imp_weap_hero_flamethrower_exp.odf
imp_weap_hero_flamethrower_ord.odf
hud_imp_flamethrower.msh
hud_imp_flamethrower.msh.option
cis_weap_hero_flamethrower.odf
cis_weap_hero_flamethrower_exp.odf
cis_weap_hero_flamethrower_ord.odf

none of these are the file you mentioned. I did however find this line in the com_weap_inf_flamethrower_ord.odf
PlayEffectOnOwnerAimer = "com_sfx_weap_flamethrower_ord"

however if i searched for com_sfx_weap_flamethrower_ord, i couldn't find any results. Anyone knows what i'm doing wrong? thanks for the help!
Post Reply