Muzzleflash for buildings and vehicles
Moderator: Moderators
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Muzzleflash for buildings and vehicles
Well obviously, when you enter the muzzleflash lines into the armedbuildings and vehicle ODFs, nothing happens. Even when it works for the troops rifles and what not. Is some untold way to apply the muzzleflash to the buildings and vehicles. Theologically and technically, what the difference between vehicle weapons and infantry weapons that prevents you from applying the muzzleflash?
-
RevanSithLord
- Sith Master

- Posts: 2636
- Joined: Mon Nov 07, 2005 12:40 am
- Projects :: Designated Days + LFC + GT vs SWBFC
- xbox live or psn: Master Revan
- Location: GDSS Philadelphia
Re: Muzzleflash for buildings and vehicles
I've actually noticed this, and sadly to say, I have no idea about applying it. It would actually be kind of cool if something neat happens...but it doesn't. I would also like an enlightenment on what just the heck this thing is.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Muzzleflash for buildings and vehicles
The muzzleflash that soldier weapons use such as:
MuzzleFlash = "small_muzzle_flash"
or
MuzzleFlash = "med_muzzle_flash"
are not found anywhere in the assets which makes me think they may be hardcoded, because if you look further down in some of these same odf's you might see something like:
Discharge = "small_smoke_effect"
or
Discharge = "med_smoke_effect"
which also do not exist in the assets.
But there is another example where the Muzzleflash is an fx that is found in the assets, for example in com_weap_veh_mortar.odf:
MuzzleFlash = "com_sfx_muzzleflash_lg"
when viewed in PE it doesn't look like a muzzleflash but this fx can be edited to look like one, try it out and let us know how it turns out, there is com_sfx_muzzleflash.msh in data_ABC/common/effects that you can use so have at it.
MuzzleFlash = "small_muzzle_flash"
or
MuzzleFlash = "med_muzzle_flash"
are not found anywhere in the assets which makes me think they may be hardcoded, because if you look further down in some of these same odf's you might see something like:
Discharge = "small_smoke_effect"
or
Discharge = "med_smoke_effect"
which also do not exist in the assets.
But there is another example where the Muzzleflash is an fx that is found in the assets, for example in com_weap_veh_mortar.odf:
MuzzleFlash = "com_sfx_muzzleflash_lg"
when viewed in PE it doesn't look like a muzzleflash but this fx can be edited to look like one, try it out and let us know how it turns out, there is com_sfx_muzzleflash.msh in data_ABC/common/effects that you can use so have at it.
- Laserblast
- Second Lance Corporal

- Posts: 105
- Joined: Sat Sep 17, 2005 12:25 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Muzzleflash for buildings and vehicles
I noticed the lack of muzzle flashes, but never thought of a way to get them to work. Smoke effects can probably be done with an invisible missile with customized fx, though.
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: Muzzleflash for buildings and vehicles
This might be a stupid question, but you're trying to add the muzzle flash through the vehicle/armed building's weapon's ODF, not the vehicle/armed building's ODF itself, right?trainmaster611 wrote:Well obviously, when you enter the muzzleflash lines into the armedbuildings and vehicle ODFs, nothing happens. Even when it works for the troops rifles and what not. Is some untold way to apply the muzzleflash to the buildings and vehicles. Theologically and technically, what the difference between vehicle weapons and infantry weapons that prevents you from applying the muzzleflash?
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Muzzleflash for buildings and vehicles
@Xavious: Yes, I am editing it in the weapon ODF.
As for the com_sfx_muzzleflash_lg thing, I will look into that. Just change the muzzleflash line right? ok.
But if the sm and md muzzleflashes are hardcoded, wouldn't that mean that the game would still be able to find the effect for the turret even if it wasn't in data_ABC?
Just for the record, I have the small and med smoke effects in my "FX library" (self-explanatory). I'm not sure how I got it, but it is there.AceMastermind wrote:The muzzleflash that soldier weapons use such as:
MuzzleFlash = "small_muzzle_flash"
or
MuzzleFlash = "med_muzzle_flash"
are not found anywhere in the assets which makes me think they may be hardcoded, because if you look further down in some of these same odf's you might see something like:
Discharge = "small_smoke_effect"
or
Discharge = "med_smoke_effect"
which also do not exist in the assets.
But there is another example where the Muzzleflash is an fx that is found in the assets, for example in com_weap_veh_mortar.odf:
MuzzleFlash = "com_sfx_muzzleflash_lg"
when viewed in PE it doesn't look like a muzzleflash but this fx can be edited to look like one, try it out and let us know how it turns out, there is com_sfx_muzzleflash.msh in data_ABC/common/effects that you can use so have at it.
As for the com_sfx_muzzleflash_lg thing, I will look into that. Just change the muzzleflash line right? ok.
But if the sm and md muzzleflashes are hardcoded, wouldn't that mean that the game would still be able to find the effect for the turret even if it wasn't in data_ABC?
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Muzzleflash for buildings and vehicles
That's odd, a search of the entire BF2_modtools turned up nothing, you might have a custom effect that you made or something.trainmaster611 wrote: Just for the record, I have the small and med smoke effects in my "FX library" (self-explanatory). I'm not sure how I got it, but it is there.
Not necessarily, it may be that those were coded to work specifically for weapons that soldiers carry.trainmaster611 wrote: But if the sm and md muzzleflashes are hardcoded, wouldn't that mean that the game would still be able to find the effect for the turret even if it wasn't in data_ABC?
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Muzzleflash for buildings and vehicles
Naw, I've never made a smoke effect before. It might be from the BF1 assets.
I checked into that muzzleflash_lg thing you were talking about. Its only a white smoke discharge. Nothing for a laser emitter thing.
I checked into that muzzleflash_lg thing you were talking about. Its only a white smoke discharge. Nothing for a laser emitter thing.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Muzzleflash for buildings and vehicles
trainmaster611 wrote:I checked into that muzzleflash_lg thing you were talking about. Its only a white smoke discharge. Nothing for a laser emitter thing.
AceMastermind wrote:when viewed in PE it doesn't look like a muzzleflash but this fx can be edited to look like one...........there is com_sfx_muzzleflash.msh in data_ABC/common/effects that you can use..........
-
Taivyx
- 2008 Best Games Related Avatar
- Posts: 1706
- Joined: Thu Jun 07, 2007 3:34 pm
- Projects :: Terra Strife - discontinued
- xbox live or psn: No gamertag set
- Contact:
Re: Muzzleflash for buildings and vehicles
Maybe I'm missing something, but....
Couldn't you just use a flash kind of fx , scaled down, then change the line to that fx file name?
Couldn't you just use a flash kind of fx , scaled down, then change the line to that fx file name?
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Muzzleflash for buildings and vehicles
Try it out and let us know the outcome.
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Muzzleflash for buildings and vehicles
Wow, i'm really stupid. I'll see if I can get it to look like a teardrop. Probably not though.
He's a pic of that model, it seems to resemble the muzzleflash shape.

He's a pic of that model, it seems to resemble the muzzleflash shape.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Muzzleflash for buildings and vehicles
What is that? A modified flash?
-
Caleb1117
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
Re: Muzzleflash for buildings and vehicles
I think its the defualt flash fx.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Muzzleflash for buildings and vehicles
It's the com_sfx_muzzleflash.msh shown in PE, the same one you posted a pic of in wireframe.trainmaster611 wrote:What is that? A modified flash?
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Muzzleflash for buildings and vehicles
That's strange because I did check it in PE and it didn't show anything 
What exactly am I supposed to be doing to apply it? Insert the file name into the muzzleflash line? It doesn't specify whether its supposed to be an FX file or anything.
What exactly am I supposed to be doing to apply it? Insert the file name into the muzzleflash line? It doesn't specify whether its supposed to be an FX file or anything.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Muzzleflash for buildings and vehicles
That's because I loaded another effect, then inserted the muzzleflash.msh into it, then stripped away the original fx properties.trainmaster611 wrote:That's strange because I did check it in PE and it didn't show anything
That's for you to experiment with, if you really want a muzzleflash on your armedbuilding then you'll do whatever it takes to make it work.trainmaster611 wrote:What exactly am I supposed to be doing to apply it? Insert the file name into the muzzleflash line? It doesn't specify whether its supposed to be an FX file or anything
Edit
After looking through the ODF parameter doc on psych0fred's site, this is what i've found for muzzleflash's:
Code: Select all
Weapon
MuzzleFlashEffect
MuzzleFlashModel
MuzzleFlash
small_muzzle_flash
med_muzzle_flash
large_muzzle_flash