Jump to content
Sign in to follow this  
ghost123

undefined base class problem

Recommended Posts

I have this problem when i write classes for more than 3 weapon in config.cpp

here my config file

#define private 0

#define protected 1

#define public 2

#define true 1

#define false 0

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

class CfgPatches { class VILAS_RW_Forces { units[] = {"vil_rw"}; requiredVersion = 1.0; }; };

class CfgFactionClasses {

class vil_rw_Army {displayName = "East Weapons"; priority = 5; side = "TEast"; }; };

class CfgVehicleClasses

{

class vil_rw { displayName = "Vilas Weapons";};

};

class Mode_SemiAuto {};

class Mode_Burst : Mode_SemiAuto {};

class Mode_FullAuto : Mode_SemiAuto {};

class CfgOpticsEffect {

class dkv_nspu_color {

type = "ColorCorrections";

priority = 2550;

params[] = {1, 1, 0, [0.0, 0.0, 0.0, 0.0], [3.1, 4.9, 3.1, -1.7], [1.199, 0.587, 0.114, 0.0]};

};

class dkv_nspu_grain {

type = "FilmGrain";

priority = 2050;

params[] = {0.1, 1, 1, 0.1, 0.1, false};

};

class dkv_nspu_blur {

type = "radialBlur";

priority = 1550;

params[] = {0.02,0.02,0.40,0.40};

};

};

class cfgWeapons {

class Default;

class PistolCore;

class RifleCore;

class MGunCore;

class AK_BASE ;

class AK_47_M ;

class AK_107_kobra ;

class AK_74 ;

class SVD ;

class AKS_74_U ;

class RPK_74;

class AK_47_S ;

class AK_107_GL_kobra;

class AKS_74_UN_kobra;

class AK_74_GL;

class VSS_vintorez;

class PK;

class RPG7V;

class Makarov;

class vil_Tt33 : Makarov {

scope = 2;

model = "\vilas_aks\vil_tetetka";

displayName = "TT";

dispersion = 0.01;

magazines[] = {"vil_8Rnd_TT"};

class Library {libTextDesc = "TT-33";};

};

class zas_m70 : AK_BASE {

scope = public;

model = "\pnk_zastava\zas_m70";

picture = "\vilas_aks\ico\sks.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

magazines[] = {"30Rnd_762x39_AK47"};

displayname = Zastava M70;

dexterity = 1.57;

handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons\data\Anim\M24.rtm"};

modes[] = { "Single", "FullAuto" };

class Single : Mode_SemiAuto {

begin1[] = {"ca\sounds\weapons\rifles\ak_single1", 1.77828, 1, 1000};

soundBegin[] = {"begin1", 1};

reloadTime = 0.1;

recoil = "recoil_single_primary_5outof10";

recoilProne = "recoil_single_primary_prone_5outof10";

dispersion = 0.0018;

minRange = 2;

minRangeProbab = 0.3;

midRange = 200;

midRangeProbab = 0.7;

maxRange = 400;

maxRangeProbab = 0.05;

aiRateOfFire = 10; // delay between shots at given distance

aiRateOfFireDistance = 500;

};

class Library {

libTextDesc = Yugoslavian Zastava M70 Assault Rifle;

};

descriptionShort = M70;

};

class zas_m70b : AK_BASE {

scope = public;

model = "\pnk_zastava\zas_m70b";

picture = "\vilas_aks\ico\sks.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

magazines[] = {"30Rnd_762x39_AK47"};

displayname = Zastava M70AB;

dexterity = 1.57;

handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons\data\Anim\M24.rtm"};

modes[] = { "Single", "FullAuto" };

class Single : Mode_SemiAuto {

begin1[] = {"ca\sounds\weapons\rifles\ak_single1", 1.77828, 1, 1000};

soundBegin[] = {"begin1", 1};

reloadTime = 0.1;

recoil = "recoil_single_primary_5outof10";

recoilProne = "recoil_single_primary_prone_5outof10";

dispersion = 0.0018;

minRange = 2;

minRangeProbab = 0.3;

midRange = 200;

midRangeProbab = 0.7;

maxRange = 400;

maxRangeProbab = 0.05;

aiRateOfFire = 10; // delay between shots at given distance

aiRateOfFireDistance = 500;

};

class Library {

libTextDesc = Yugoslavian Zastava M70 Assault Rifle;

};

descriptionShort = M70AB;

};

class zas_m80 : AK_BASE {

scope = public;

model = "\pnk_zastava\zas_m80";

picture = "\vilas_aks\ico\sks.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

magazines[] = {"30Rnd_556x45_Stanag"};

displayname = Zastava M80;

dexterity = 1.57;

handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons\data\Anim\M24.rtm"};

modes[] = { "Single", "FullAuto" };

class Single : Mode_SemiAuto {

begin1[] = {"ca\sounds\weapons\rifles\ak_single1", 1.77828, 1, 1000};

soundBegin[] = {"begin1", 1};

reloadTime = 0.1;

recoil = "recoil_single_primary_5outof10";

recoilProne = "recoil_single_primary_prone_5outof10";

dispersion = 0.0018;

minRange = 2;

minRangeProbab = 0.3;

midRange = 200;

midRangeProbab = 0.7;

maxRange = 400;

maxRangeProbab = 0.05;

aiRateOfFire = 10; // delay between shots at given distance

aiRateOfFireDistance = 500;

};

class Library {

libTextDesc = Yugoslavian Zastava M80 Assault Rifle;

};

descriptionShort = M80;

};

class zas_m84 : AK_BASE {

scope = public;

model = "\pnk_zastava\zas_m84";

picture = "\vilas_aks\ico\sks.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

magazines[] = {"100Rnd_762x54_PK"};

displayname = Zastava M84;

handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons\data\Anim\M24.rtm"};

dexterity = 1.57;

modes[] = { "FullAuto" };

class Single : Mode_SemiAuto {

begin1[] = {"ca\sounds\weapons\rifles\ak_single1", 1.77828, 1, 1000};

soundBegin[] = {"begin1", 1};

reloadTime = 0.1;

recoil = "recoil_single_primary_5outof10";

recoilProne = "recoil_single_primary_prone_5outof10";

dispersion = 0.0018;

minRange = 2;

minRangeProbab = 0.3;

midRange = 200;

midRangeProbab = 0.7;

maxRange = 400;

maxRangeProbab = 0.05;

aiRateOfFire = 10; // delay between shots at given distance

aiRateOfFireDistance = 500;

};

class Library {

libTextDesc = Yugoslavian Zastava M84 LMG;

};

descriptionShort = M84;

};

class zas_m91 : AK_BASE {

scope = public;

model = "\pnk_zastava\zas_m91";

picture = "\vilas_aks\ico\sks.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

magazines[] = {"10Rnd_762x54_SVD"};

modelOptics = "\ca\Weapons\2Dscope_MilDot_14";

opticsPPEffects = {"OpticsCHAbera1", "OpticsBlur1"};

opticsFlare = 1;

opticsDisablePeripherialVision = 1;

opticsZoomInit = 0.055300;

opticsZoomMin = 0.017800;

distanceZoomMin = 500;

opticsZoomMax = 0.055300;

distanceZoomMax = 200;

displayname = Zastava M91;

handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons\data\Anim\M24.rtm"};

dexterity = 1.57;

modes[] = { "Single" };

class Single : Mode_SemiAuto {

begin1[] = {"ca\sounds\weapons\rifles\ak_single1", 1.77828, 1, 1000};

soundBegin[] = {"begin1", 1};

reloadTime = 0.1;

recoil = "recoil_single_primary_5outof10";

recoilProne = "recoil_single_primary_prone_5outof10";

dispersion = 0.0018;

minRange = 2;

minRangeProbab = 0.3;

midRange = 200;

midRangeProbab = 0.7;

maxRange = 400;

maxRangeProbab = 0.05;

aiRateOfFire = 10; // delay between shots at given distance

aiRateOfFireDistance = 500;

};

class Library {

libTextDesc = Yugoslavian Zastava M91 Sniper;

};

descriptionShort = M91;

};

class CfgVehicles {

line 156: .zas_m85: Undefined base class "AK_BASE"

When i delete class for zas_85 game work witout errors.

This is only a half of config its too long.

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  

×