Muzzle Bug resolved.
Somwhere I found this, it was in an entirely japanese or whatever forum. This was the only
english post:
<<<< April 24, 2002 @ 2142 (by Fliper)
"MUZZLE FLASH" BUG resolved
With a little tip from BiS TEAM (Ondrej Spanel - leading OFP Programmer:) )
we found out what was causing the well known MUZZLE FLASH BUG!
There is a missing class in our CPPs!
Its the cfgModels class wich is needed for our new models to work 100% correctly!!!
To make it simple - example:
We have a new model (in this case WFW_M82A1.p3d).
In the config.CPP (at the beginning as in the original config.bin) you have to write this:
class CfgModels
{
class Default
{
sections[]={};
sectionsInherit="";
};
class Weapon: Default
{
sections[]={"zasleh"};
};
class WFW_M82A1: Weapon{};
};
I wrote the full content of the classes for easier understanding
but since they inherit from each other you can shorten the first two classes and write:
class CfgModels
{
class Default{};
class Weapon: Default{};
class YourModelName: Weapon{};
};
...where "YourModelName" is your model name:)
Thats it! Enjoy!
>>>>>>>>>>>>>
I tried this on the M82A1, and voila, Muzzle bug gone.
[Insert this in the in the PYP_M82A1 cpp after the #defines and before the " class CfgPatches "-Section.] :
class CfgModels
{
class Default
{
sections[]={};
sectionsInherit="";
};
class Weapon: Default
{
sections[]={"zasleh"};
};
class PYP_M82A1: Weapon{};
};
same for the PYP_M82A1SUP.cpp
Hope this was helpful,
VTX