[Help] Muzzle Flash Problems

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Gartley

Grizzled Veteran
Dec 27, 2010
2,336
349
83
UK
www.wildcardproductionstudios.co.uk
Now I've noticed this on several weapon mods, most prominently was on the machine gun package but I've also seen it on the Moss12 and Colt Python.

As seen in this pic there is a separate muzzle flash. That appears in the location of the first shot fired and it will stay there regardless of where you move. As you can see from the screen shot there is also a shell emitter. (Tracers also originate from here if the weapons use them (machine guns))

muzzleflash.jpg


Does anyone know what causes this and how it maybe fixed?
 

FluX

Grizzled Veteran
Oct 26, 2010
5,388
234
63
www.fluxiserver.co.uk
Ah yeah I had this with my P90 port and I ended up fixing it. I will get back to you on this later as I have work. I think it was inside the *weapon*attachments.uc file.
 

3xzet

FNG / Fresh Meat
Nov 4, 2011
141
5
0
Russia
killing-floor.ru
Нужна кость к которой привязывается muzzleflash, стандартное имя этой кости в Killing Floor 'tip'.
Для вида от первого лица указывается в файле *weapon*.uc
Code:
defaultproperties
{
         FlashBoneName="[B][COLOR=Lime]tip[/COLOR][/B]"

Для вида от третьего лица указывается в файле *weapon*attachments.uc
Code:
simulated function DoFlashEmitter()
{
    if (mMuzFlash3rd == None)
    {
        mMuzFlash3rd = Spawn(mMuzFlashClass);
        AttachToBone(mMuzFlash3rd, '[COLOR=Lime][B]tip[/B][/COLOR]');
    }
    if(mMuzFlash3rd != None)
        mMuzFlash3rd.SpawnParticle(1);
}
Узнать имя нужной кости можно в KFEd.

Нажимаем кнопки 'View bones' и 'View bones names'
image_4ecf9c54e375c.jpg
 

FluX

Grizzled Veteran
Oct 26, 2010
5,388
234
63
www.fluxiserver.co.uk
Right I had a look at my P90 code and found straight away. I added the code:
Code:
simulated function DoFlashEmitter()
{
    if (mMuzFlash3rd == None)
    {
        mMuzFlash3rd = Spawn(mMuzFlashClass);
        AttachToBone(mMuzFlash3rd, '[B]TipBoneHere[/B]');
    }
    if(mMuzFlash3rd != None)
        mMuzFlash3rd.SpawnParticle(1);
}

You also may want to check this line too:
Code:
ShellEjectBoneName="[B]EjectorBone[/B]"

It was one of those that fixed it and the other fixed the third person I think. Test it out as im guessing you have different names for the weapon bones. Hope it helpped :)
 

FluX

Grizzled Veteran
Oct 26, 2010
5,388
234
63
www.fluxiserver.co.uk
WRONG! I ported my own version with full scope etc with permission. Here is the video for my version:
http://www.xfire.com/video/5050f6/

This is my video for the custom characters in play but I had my P90 in show there with my perk it's used for. :)

The P90 you referrenced is a really buggy version that was not properly made (no offence to the author who ported it but I think he knows that too).
 
Last edited:

halbridious

FNG / Fresh Meat
Jan 6, 2011
1,769
211
0
Michigan (USA)
Yoyo made that one i think, and he didn't really port it well. IJC actually made it for their ballistic weapons pack, but yoyo ported it. when he found out that it didn't port smoothly he just kinda gave up :/

Also, flux, your's is very nice, but are you releasing it? or is it your server only :(
 

ro_sauce

FNG / Fresh Meat
Sep 26, 2007
3,134
329
0
bwhgaming.com
oh yeah forgot about that, i fixed it in mine (the machineguns) and i should point out that the muzzleflashbone function is inside kfweaponattachment.uc, and the shell ejector is inside the weapon's fire.uc.

i havent uploaded my fixed version yet cause i'm still adding to it (finally got a saw m249 modeled/textured, just having probs with animating cause i suck at it right now)
mostly i've been adding in all the RO guns, and finalizing the ones i made myself, so when i'm done i might release it here, or just keep it in my community, dunno yet.
 
Last edited:

FluX

Grizzled Veteran
Oct 26, 2010
5,388
234
63
www.fluxiserver.co.uk
Yoyo made that one i think, and he didn't really port it well. IJC actually made it for their ballistic weapons pack, but yoyo ported it. when he found out that it didn't port smoothly he just kinda gave up :/

Also, flux, your's is very nice, but are you releasing it? or is it your server only :(
I might ask the author to see if I can release it as I originally asked to keep it private as I ported his to fix it for myself. We'll see :)

oh yeah forgot about that, i fixed it in mine (the machineguns) and i should point out that the muzzleflashbone function is inside kfweapon.uc, and the shell ejector is inside the weapon's fire.uc.

i havent uploaded my fixed version yet cause i'm still adding to it (finally got a saw m249 modeled/textured, just having probs with animating cause i suck at it right now)
mostly i've been adding in all the RO guns, and finalizing the ones i made myself, so when i'm done i might release it here, or just keep it in my community, dunno yet.
Yeah I forgot to mention that on here and told him via Steam. I think it's fixed enough as I haven't heard anything back and he's playing other games :p
 

ro_sauce

FNG / Fresh Meat
Sep 26, 2007
3,134
329
0
bwhgaming.com
now that i've gone through some of my guns, i still get the 3rd person shell spewer not using the designated bone name, i even tried naming it the same as in kfweaponattachment (ShellPort)
at least the flash works correctly:
Shot00065.jpg
 

FluX

Grizzled Veteran
Oct 26, 2010
5,388
234
63
www.fluxiserver.co.uk
now that i've gone through some of my guns, i still get the 3rd person shell spewer not using the designated bone name, i even tried naming it the same as in kfweaponattachment (ShellPort)
at least the flash works correctly:
Shot00065.jpg
Nice gun! Yeah you done what I did to find a solution. I have fixed mine but in third person the light effect comes out in the middle of the gun (I think)...sorry it's been a few months since I last looked at my P90.
 

ro_sauce

FNG / Fresh Meat
Sep 26, 2007
3,134
329
0
bwhgaming.com
now i figured out what i was doing wrong, for some reason i named the 3rd person ejection bone differently than what i had for my 1st person ejector bone.

now i just gotta fix the funky shell effect offset (1st person).
 

braindead

FNG / Fresh Meat
Aug 22, 2009
918
346
0
Merry Ol' England
Just a tip...

when you change the name of a bone in 3ds max, don't use the TAB button when exiting the box, as this leaves a hidden space after the name.

Other than that, it looks like you all have it sussed.
 

halbridious

FNG / Fresh Meat
Jan 6, 2011
1,769
211
0
Michigan (USA)
No texture and my time is gone - so much college work to do... I've given the model to 3 people and had NO results in terms of textures... I'm sad cause i got a friend to model it and had high hopes for a MG perk class, but no more.
Just no time and texture :(

ALSO: WHAT IS THAT MOD in GARTLEY's picture? It looks epic! USMC pistol, Radar thingy ECT??