Jump to content

Sign in to follow this  
bigpickle

Problem With Config

Recommended Posts

Hi, I have a problem with my config for the Mk 200, it stops tracers being seen/breaks them etc. From what I can tell this issue shouldn't exist as the config is right. Can anyone spot any problems or errors that would result in this happening?

class CfgPatches
{
class SpeedOfSoundAlpha_mk
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_CargoPoses_F"};
	version = "A";
	projectName = "SpeedOfSoundAlpha";
	author = "BigPickle";		
};
};

class CfgAddons
{
class PreloadAddons
{
 class CONFIG_SOUNDS_CLASS
   {
   list[] = {"SpeedOfSoundAlpha"};
   };
 };
};
class Mode_SemiAuto;	// External class reference
class Mode_FullAuto;	// External class reference	

class CfgWeapons
{
class Rifle_Long_Base_F;	// External class reference

class LMG_Mk200_F : Rifle_Long_Base_F
    {
    drySound[] = {"\SpeedOfSoundAlpha_mk\Dry",1,1,20};
    reloadMagazineSound[] = {"\SpeedOfSoundAlpha_mk\Reload",1,1,20};
    reloadSound[] = {"SpeedOfSoundAlpha_mk\mkbolt", 1, 1, 20};	


    class manual : Mode_FullAuto
	{	
    reloadTime = 0.12;	
    recoil = "recoil_auto_prone_mk200";	
    begin1[] = {"SpeedOfSoundAlpha_mk\mk",1,1,600};
    soundBegin[] = {"begin1",1};			
    };

   };		
};

Share this post


Link to post
Share on other sites

From my understanding when a class is inherited for example

class LMG_Mk200_F : Rifle_Long_Base_F

the LMG_MK200_F only needs to add something in its config if it is to change or add a new default class that isnt already in the Base(inherited class)

given that the LMG_Mk200_F class is a very very long class , i would presume with your short class there and thee fact your over riding the original rather than inheriting and making a custom class , you have probably lost a lot of the original attributes of the original

However if your Model is all correct and the LMG_Mk200_ARCO_F and sbsequent rifles , then something has gone wrong else where maybe in the Required addons serialisation. I can only see (unless i am missig) , A unit is already armed with this rifle before your over ride config come along and then try to over ride sound etc , otherwise looking at that cnfig there shouldnt even be a Model let alone a tracer )

sorry this isnt an answer but hope it helps ( maybe i will elarn something here too )

Edited by Thromp

Share this post


Link to post
Share on other sites

its just a simple cfg patches for a sound mod as opposed to a new model etc, Ive just calmed down the recoil by using the prone recoil instead of standing and slowed the rpm to 500.

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  

×