Jump to content
Sign in to follow this  
bmgarcangel

My static mg's flash is never goes away

Recommended Posts

I'm make a Static Pk Machine gun and I have a problem. I put the flash on the end of the weapon ( and it has the zalesh definition already ;) ) but the flash never goes away. I mean its always there, even when i'm not firing the weapon.

This problem has been driving me nuts for almost two weeks, me trying to find the reason but I still can't find the reason. Mostly because alot of people are unhelpful in helping me out with this problem. So, can someone help from here....please??

In the Picture below you can clearly see the problem

post-3-71520-pkmg.jpg

Share this post


Link to post
Share on other sites

Put some info in the config.

Quote[/b] ]class CfgModels

{

class Default{};

class Weapon: Default{};

class "MODEL NAMEa" : Weapon

{

sections[]= {zasleh};

};

class "Model name" : Weapon{};

};

Yes theres and "a" behind that "MODEL NAME".It works for me.

Share this post


Link to post
Share on other sites

A?? so what I put A with the first one?? you're confusing me. Let me see if it all works wink_o.gif

Share this post


Link to post
Share on other sites

I dont know why i put that there thats all wrong.But you should see how to get it not to stay on.

Share this post


Link to post
Share on other sites

I got one problem. Problem being is that I keep getting an error when I start flashpoint. It says:

'pkmg\config.cpp/CfgModels.':'{' encountered instead of '='

This is what I have in the config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgModels

{

class Default{};

class MGun: Default{};

class MachineGun7_6: MGun{};

class MachineGun12_7: MachineGun7_6{};

class Browning: MachineGun12_7{};

class pkmg: Browning{};

{

sections[]= {zasleh};

};

class "pkmg" : Weapon{};

};

You know why that error is coming up??

Share this post


Link to post
Share on other sites

I just updated the config. Perhaps this will work:

class CfgModels

{

class Default{};

class MGun: Default{};

class MachineGun7_6: MGun{};

class MachineGun12_7: MachineGun7_6{};

class Browning: MachineGun12_7{};

class "pkmg" : Browning{};

{

sections[]= {zasleh};

};

class "pkmg" : Weapon{};

};

Share this post


Link to post
Share on other sites

OK here it is. Now, this is what I have down in the config. Hey Shadow, could you modify it to the proper way that it should be. Cause I try everything and it still doesn't work!! it keeps coming up encountering that instead of this!!

class CfgModels

{

class Default{};

class MGun: Default{};

class MachineGun7_6: MGun{};

class MachineGun12_7: MachineGun7_6{};

class Browning: MachineGun12_7{};

class "pkmg" : Browning{};

{

sections[]= {zasleh};

};

class "pkmg" : Weapon{};

};

Share this post


Link to post
Share on other sites

Leave the " " out of the pkmg Like this

Quote[/b] ]class CfgModels

{

class Default{};

class Weapon: Default{};

class pkmga : Weapon

{

sections[]= {zasleh};

};

class pkmg : Weapon{};

};

Share this post


Link to post
Share on other sites

Hey bmgarcangel, I know how you feel.  This happened to me too.  I worked out that what you put in class CfgModels is not the weapon name but rather the file name minus the extension.  So if your weapon's name in class CfgPatches is Pkmg and your model name in your directory is bmgpk.p3d then what goes into class CfgModels is the following:

class CfgModels

{

class Default{};

class MGun: Default{};

class MachineGun7_6: MGun{};

class MachineGun12_7: MachineGun7_6{};

class Browning: MachineGun12_7{};

class bmgpk: Browning{};

};

As far as i know you don't have to mention sections.  Mind you, I've never made a fixed gun yet.  Only portable ones.  I think I remember hearing somewhere that this will only work for versions 1.75 and up though.  Hope this helped.

Share this post


Link to post
Share on other sites

NZX had it right the first time he replied, you need to copy his sample a bit more closely...

eg:

class CfgModels

{

class Default{};

class Weapon: Default{};

class  insertnameofyourp3dhere : Weapon {};

};

however...if it's a static weapon you may have based it off a vehicle class which would mean using something like this in cfgmodels.

You do not need to put the section entries in unless you are changing them, and then only for your custom cfgmodel class, not for the standard ones.

class CfgModels

{

class Default{};

class Vehicle: Default {};

class Tank: Vehicle {};

class  insertnameofyourp3dhere : Tank {};

};

All the cfgmodel entries can be found in the sample cpp provided by BIS.

SelectThis

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  

×