Grenade Glow

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
JediJalepinio
Private Recruit
Posts: 26
Joined: Tue Feb 24, 2009 4:50 pm

Grenade Glow

Post by JediJalepinio »

probably a noobish question, but does anyone know how to change the colour of a grenade's glow from red to say, blue?

Thnks
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Grenade Glow

Post by Fiodis »

Cite the necesary effect in the grenade's ordance's ODF.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Grenade Glow

Post by obiboba3po »

Code: Select all

TrailEffect             = "com_sfx_weap_grenade_red"
LightColor              = "247 56 65 150"
LightRadius             = "3.0"
the first part is obvious, the second part is the color in RGBA format. (red, blue, green alpha) 255 is max. color intensity, 0 being the least. alpha is the visibility. these lines are usually found in the ordnance. in the future, look there and experiment :thumbs:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Grenade Glow

Post by Fiodis »

Personaly, I never messed with those RGB values and just edited the effect directly via Particle Editor. Lot more options that way.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Grenade Glow

Post by Maveritchell »

Fiodis wrote:Personaly, I never messed with those RGB values and just edited the effect directly via Particle Editor. Lot more options that way.
"Those RGB" values are unrelated to your particle effect, they're the color values for the light. You should edit them as well as the effect to get the best effect.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Grenade Glow

Post by obiboba3po »

Maveritchell wrote:
Fiodis wrote:Personaly, I never messed with those RGB values and just edited the effect directly via Particle Editor. Lot more options that way.
"Those RGB" values are unrelated to your particle effect, they're the color values for the light. You should edit them as well as the effect to get the best effect.
:yes: they make a pretty glow on lasers, i dont think you really see them much on mine glows though
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 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: Mexico City
Contact:

Re: Grenade Glow

Post by vampire_lord »

For grenade glow you need to edit the effects on particle editor as well...
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Grenade Glow

Post by obiboba3po »

vampire_lord wrote:For grenade glow you need to edit the effects on particle editor as well...
no you dont. thats only for a new effect. what i showed is how to change it to an already existing glow color. you can see all of those in the common/effects folder.
JediJalepinio
Private Recruit
Posts: 26
Joined: Tue Feb 24, 2009 4:50 pm

Re: Grenade Glow

Post by JediJalepinio »

do I need to do anything special to munge it too?
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: Grenade Glow

Post by trainmaster611 »

No you don't need to do anything special for the munge.

The glow color is the color that is reflected on the enviroment around the grenade. The particle effect is what you actually see being emitted from the grenade. If you want to change the color of both of these, I recommend changing both the effect and the light color.

In data_ABC\Common\Effects, there's a blue grenade fx file you can use. It's called com_sfx_weap_grenade_blue.
JediJalepinio
Private Recruit
Posts: 26
Joined: Tue Feb 24, 2009 4:50 pm

Re: Grenade Glow

Post by JediJalepinio »

How do I switch the fx file?
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Grenade Glow

Post by YaNkFaN »

you need to edit it in particle editor found Here
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Grenade Glow

Post by obiboba3po »

or if he wants toe replace it with an existing one, go to common/effects and look for anything ending in .fx those are the stock ones
Post Reply