Jump to content
Sign in to follow this  

Recommended Posts

I'm trying to add a pair of pilots but I get an error saying "BAF_JetpilotW: Undefined base class 'BAF_JetpilotD'". When I do get it working only the Desert pilot shows up. What's wrong with my config?

class CfgPatches
{
class BAF_Jetpilot
{
	units[]={};
	weapons[]={};
	requiredVersion=1.000000;
               requiredAddons[]=
	{
		"CAcharacters_e"
	};
};
};
class CfgVehicles
{
class US_Soldier_Pilot_EP1;
class BAF_JetpilotD: US_Soldier_Pilot_EP1
{
	scope=2;
               model="\baf\jetpilotsxx\BAF_PilotD.p3d";
	faction="BIS_BAF";
               displayName="Jet Pilot (Desert)";
	weapons[]=
	{
		"MP5A5",
		"NVGoggles",
		"Throw",
		"Put",
		"ItemMap",
		"ItemCompass",
		"ItemWatch",
		"ItemRadio",
		"itemGPS"
	};
	magazines[]=
	{
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"HandGrenade_West",
		"HandGrenade_West",
		"SmokeShell",
		"SmokeShellRed"
	};
	respawnWeapons[]=
	{
		"MP5A5",
		"NVGoggles",
		"Throw",
		"Put",
		"ItemMap",
		"ItemCompass",
		"ItemWatch",
		"ItemRadio",
		"itemGPS"
	};
	respawnMagazines[]=
	{
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"30Rnd_9x19_MP5",
		"HandGrenade_West",
		"SmokeShellRed"
	};

};
};


class BAF_JetpilotW : BAF_JetpilotD
{
               model="\baf\jetpilotsxx\BAF_PilotW.p3d";
               displayName="Jet Pilot (Wood)";
              };
        };
};

Share this post


Link to post
Share on other sites

You closed class CfgVehicles after you defined BAF_JetpilotD, the BAF_JetpilotW is not being considered.

class CfgPatches
{
 class BAF_Jetpilot
 {
   units[]={};
   weapons[]={};
   requiredVersion=1.000000;
   requiredAddons[]={"CAcharacters_e"};
 };
};

class CfgVehicles
{
 class US_Soldier_Pilot_EP1;
 class BAF_JetpilotD: US_Soldier_Pilot_EP1
 {
   scope=2;
   model="\baf\jetpilotsxx\BAF_PilotD.p3d";
   faction="BIS_BAF";
   displayName="Jet Pilot (Desert)";
   weapons[]=
   {
     "MP5A5",
     "NVGoggles",
     "Throw",
     "Put",
     "ItemMap",
     "ItemCompass",
     "ItemWatch",
     "ItemRadio",
     "itemGPS"
   };
   magazines[]=
   {
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "HandGrenade_West",
     "HandGrenade_West",
     "SmokeShell",
     "SmokeShellRed"
   };
   respawnWeapons[]=
   {
     "MP5A5",
     "NVGoggles",
     "Throw",
     "Put",
     "ItemMap",
     "ItemCompass",
     "ItemWatch",
     "ItemRadio",
     "itemGPS"
   };
   respawnMagazines[]=
   {
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "30Rnd_9x19_MP5",
     "HandGrenade_West",
     "SmokeShellRed"
   };
 };
 class BAF_JetpilotW : BAF_JetpilotD
 {
   model="\baf\jetpilotsxx\BAF_PilotW.p3d";
   displayName="Jet Pilot (Wood)";
 };
};

Use something more advanced than Notepad, makes life easier. :D

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  

×