Jump to content
Sign in to follow this  
mcruppert

Weapon Muzzle Flash

Recommended Posts

Hi guys

im working on a star wars mod and i want to add some muzzle flash to my blasters...

i added the muzzle "model" to my blaster model and its called "zasleh"

i also added this model.cfg:

class CfgSkeletons

{

class Default;

class Weapon: Default

{

skeletonInherit = "Default";

skeletonBones[]=

{

"magazine","",

"ammo_belt","",

"ammo_belt_bottom",""

};

};

};

class CfgModels

{

class Default

{

sectionsInherit="";

sections[] = {};

skeletonName = "";

};

class Weapon: Default

{

sections[]=

{

"zasleh"

};

skeletonName="Weapon";

};

class Ru_Blaster: Weapon {};

};

but it does not work, you always see the muzzle flash ingame, like this:

muzzle.jpg

so pls help me

thx

Edited by McRuppert

Share this post


Link to post
Share on other sites
Hi guys

i added the muzzle "model" to my blaster model and its called "zalesh"

i also added this model.cfg:

...

class Weapon: Default

{

sections[]=

{

"zasleh"

};

skeletonName="Weapon";

};

...

Check your spelling of 'zasleh' in the model's selections.

Share this post


Link to post
Share on other sites
Check your spelling of 'zasleh' in the model's selections.

oh yeah sry but this was just tipping mistake sry, in o2 its called zasleh too

Share this post


Link to post
Share on other sites

Hah, thought that might be a bit obvious.

class CfgSkeletons

{

class Default;

class Weapon: Default

{

skeletonInherit = "Default";

skeletonBones[]=

{

"magazine","",

"ammo_belt","",

"ammo_belt_bottom",""

};

};

};

class CfgModels

{

class Default

{

sectionsInherit="";

sections[] = {};

skeletonName = "";

};

class Weapon: Default

{

sections[]=

{

"zasleh"

};

skeletonName="Weapon";

};

class Ru_Blaster: Weapon {};

};

Is 'Ru_Blaster' the name of you weapon model; i.e Ru_Blaster.p3d, or just the weapon's config classname?

It's meant to be the name of the .p3d so that the model.cfg gets binarized into the corresponding .p3d.

Share this post


Link to post
Share on other sites

Hell yeah!

thanks now it works :D

yeah the mistake was that it was not the name of the o2 model...

thaaaaaanks!

Share this post


Link to post
Share on other sites

hey its me again :D

i have another problem with the muzzle flash...

i get a strange "bug" when i use a texture with an alpha canal on my muzzleflash texture...

ingame everything works fine with the muzzle but the weapon is not in the right position in my hands...

i tried to give the muzzle an normal texture (no transparent parts) then everything is fine.

the problem is only in the first pirson view..

here a pic

bugeb.jpg

Share this post


Link to post
Share on other sites

Please use the wonderfull feature on the forum called search

But i know, often it is hard to find stuff that is relevant.

Anyway, the topic should give you enough tips.

Share this post


Link to post
Share on other sites

hm im sry cant find anything with the same problem:confused:

Share this post


Link to post
Share on other sites

THE LINK Dasquade gave you, directs you to someone with the exact same problem, and how they fixed it.

Just turn the muzzle-flash into a proxy.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×