Muzzle Flash for Vehicles and Turrets

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
Samee3
First Lance Corporal
First Lance Corporal
Posts: 123
Joined: Sun Jul 05, 2015 5:07 pm
Projects :: BF2 Refresh Mod
Games I'm Playing :: Empire at War
xbox live or psn: VaporousFern310
Location: California, USA

Muzzle Flash for Vehicles and Turrets

Post by Samee3 »

So I was poking around in here: http://www.secretsociety.com/forum/down ... meters.txt when I came across something interesting:

Code: Select all

MuzzleFlashEffect = ""
I immediately tried it on a normal weapon, and discovered that it works. Sort of. The effect plays, but it spawns from the characters forehead, leading me to believe that it was never fully implemented, like a lot of other things.
I then thought perhaps it would work on a vehicle ('cause who among us hasn't looked at a vehicle weapon's .odf and said "Why is there no muzzle flash in game, when it is defined in the code?"). Well, I will just say that I tried it, and it worked. Somewhat.

Then, of course my next move was to see if I was the only one who had figured this out, and found this: http://www.gametoast.com/viewtopic.php? ... sh#p477496
However, the link AQT posted (http://www.gametoast.com/viewtopic.php?f=27&t=21872) does not work.

So, I figured I would resurrect the idea with this post.

In short, if you want your vehicles to have a muzzle flash, simply find the MuzzleFlash parameter in the weapon odf, and change it to MuzzleFlashEffect, then set it to whatever .fx file you wish to use. However, only some vehicles seem to work, and even then, not all of the weapons work correctly. For instance, the AAC-1's main laser cannons work fine, but the missile turret does not. The TX-130's lasers don't look nice, but the missile launchers look fine. The AT-AT shows the effects inside its head. Turrets don't seem to like it at all. You get the idea, right? Not everything works nicely.

If someone knows how to fix some of the problems, please post it here. I am sure someone can use this in their mod at some point.

Hopefully someone finds this useful; maybe we will start seeing more mods with this implemented. No credit necessary, its just simple ODF modding.
Thanks,
Sam

EDIT: Thanks to a little eye opener by AQT, the link (http://www.gametoast.com/viewtopic.php?f=27&t=21872) now works.
Last edited by Samee3 on Thu Jun 16, 2016 7:14 pm, edited 1 time in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Muzzle Flash for Vehicles and Turrets

Post by AQT »

Samee3 wrote:Then, of course my next move was to see if I was the only one who had figured this out, and found this: http://www.gametoast.com/viewtopic.php? ... sh#p477496
However, the link AQT posted (http://www.gametoast.com/forums/viewtop ... 27&t=21872) does not work.
...
If someone knows how to fix some of the problems, please post it here. I am sure someone can use this in their mod at some point.
The link does work; you just got to "fix" it: http://www.gametoast.com/viewtopic.php?f=6&t=29878

Same goes for any old link you may encounter.

The solution to incorrect muzzle position problems can also be found in at the link.
Samee3
First Lance Corporal
First Lance Corporal
Posts: 123
Joined: Sun Jul 05, 2015 5:07 pm
Projects :: BF2 Refresh Mod
Games I'm Playing :: Empire at War
xbox live or psn: VaporousFern310
Location: California, USA

Re: Muzzle Flash for Vehicles and Turrets

Post by Samee3 »

Well, there's something I was not previously aware of. I'll keep that in mind AQT, thanks.
Post Reply