Home   Help Search Login Register  

Author Topic: M82A1 bug fix  (Read 1038 times)

0 Members and 1 Guest are viewing this topic.

Ranger75

  • Guest
M82A1 bug fix
« on: 14 May 2004, 00:56:58 »
Is there a way to fix the muzzle flash bug in the M82A1 Special Long-Range addon so I can use it in v1.96?

OrangeLeader

  • Guest
Re:M82A1 bug fix
« Reply #1 on: 14 May 2004, 03:16:59 »
You might want to send an E-mail to the maker of the addon(there should be a notpad file that came with the addon.). Plus no one can help you unless you tell the which specific one  it is. There are several M82A1 addons. That also means you might be able to find a different version that works in v1.96.

bigdog632

  • Guest
Re:M82A1 bug fix
« Reply #2 on: 14 May 2004, 07:11:32 »
i think it is the one PYP_m82a1 addon on the opening of OFPEC

it seems to be a good one except for the muzzle flash

Ranger75

  • Guest
Re:M82A1 bug fix
« Reply #3 on: 14 May 2004, 20:43:34 »
bigdog632 has it right, its the PyP_m82a1 from http://www.ofpec.com/addons_depot/index.php?ID=443
Ill e-mail and see what they say

Homefry31464

  • Guest
Re:M82A1 bug fix
« Reply #4 on: 15 May 2004, 01:16:33 »
There are quite a few posts about this in addon editing, I tried to find the best one.

Click

VTX

  • Guest
Re:M82A1 bug fix
« Reply #5 on: 02 Jun 2004, 23:58:44 »

 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

Ranger75

  • Guest
Re:M82A1 bug fix
« Reply #6 on: 03 Jun 2004, 01:34:52 »
Thanks, u guys rock 8)

im gonna go try it out