Muzzle Flash for Vehicles and Turrets
Posted: Thu Jun 16, 2016 3:40 pm
So I was poking around in here: http://www.secretsociety.com/forum/down ... meters.txt when I came across something interesting:
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.
Code: Select all
MuzzleFlashEffect = ""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.