bmgarcangel 0 Posted November 15, 2003 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 Share this post Link to post Share on other sites
NZXSHADOWS 0 Posted November 16, 2003 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
bmgarcangel 0 Posted November 16, 2003 A?? so what I put A with the first one?? you're confusing me. Let me see if it all works Share this post Link to post Share on other sites
NZXSHADOWS 0 Posted November 16, 2003 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
bmgarcangel 0 Posted November 16, 2003 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
bmgarcangel 0 Posted November 16, 2003 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
bmgarcangel 0 Posted November 16, 2003 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
NZXSHADOWS 0 Posted November 16, 2003 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
bmgarcangel 0 Posted November 16, 2003 Why the hell do you have an A after the first Pkmg?? Share this post Link to post Share on other sites
NZXSHADOWS 0 Posted November 16, 2003 Because if you try and use the same class twice it will generate an error.Anyways did it work? Share this post Link to post Share on other sites
syphboy 0 Posted November 16, 2003 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
SelectThis 0 Posted November 17, 2003 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