Sakai 1 Posted January 16, 2013 (edited) Hi there, so I have given it another shot making unit's a config, however I get this error when I want to try it out... File ger\config.cpp, line 27: .SoldierWB: Undefined base class 'CAManBase' --------------------------- But the CAManBase is already defined... Config.cpp: DELETED EDIT: Don't mind... I fixed it by myself... Edited January 16, 2013 by Sakai Share this post Link to post Share on other sites
Sakai 1 Posted January 16, 2013 Sorry for second post but I see no reason of making new topic when its related to this one. Uhh.. Im back to 0... I need help once again, the older thing I have done did not work because I screwed it all up, raged quieted and deleted forever now Im back as I said to step 0... What im trying is to set up a russian commander into my faction but he will be edited aka weaponry and texture however he is not touched atm that is to see if he will appear and if config.cpp works but it does not and it gets very frustrating My error: --------------------------- File fac_gbs\config.cpp, line 27: .GBS_Commander: Undefined base class 'GBS_Soldier_Base' --------------------------- Now I do understand what undefined base class is, however even if I add class GBS_Soldier_Base; it will say its already defined and when deleted back to undefined but check my configs first. #define true 1 #define false 0 #define VSoft 0 #define VArmor 1 #define VAir 2 #define LockNo 0 #define LockCadet 1 #define LockYes 2 #define private 0 #define protected 1 #define public 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define ReadAndWrite 0 #define ReadAndCreate 1 #define ReadOnly 2 #define ReadOnlyVerified 3 class CfgPatches { class FAC_GBS { units[] = {}; weapons[] = {}; requiredVersion = 1.0; requiredAddons[] = {"CACharacters2", "CAWeapons"}; }; }; class CfgVehicleClasses{ class FAC_GBS { displayName = "GBS (Special Forces)"; }; }; class CfgVehicles { class SoldierEB; class RUS_Soldier_Base; class FlagCarrier; // External class reference class GBS_Soldier_Base : RUS_Soldier_Base { }; }; class GBS_Commander : GBS_Soldier_Base { scope = public; model = "\ca\characters2\Rus\Specnaz_CO"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; side = 2 faction = "FAC"; portrait = "\Ca\characters\data\portraits\comBarHead_ru_spec_com_ca"; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; Icon = "\Ca\characters2\data\icon\i_officer_CA.paa"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 0.6; // how dificult to spot - bigger - better spotable cost = 900000; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; displayName = "GSB Commander"; weapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; respawnWeapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; }; So now as you see I actually defined it already aka GBS_Soldier_Base : RUS_Soldier_Base { so the config should of know that its defined? Someone please help me out before I rage quit even more... Share this post Link to post Share on other sites
ProfTournesol 956 Posted January 16, 2013 class CfgVehicles { class SoldierEB; class RUS_Soldier_Base; class FlagCarrier; // External class reference class GBS_Soldier_Base : RUS_Soldier_Base { }; };=> there, you closed the cfgvehicles class, which in fact should be closed at the end of the config. Share this post Link to post Share on other sites
Sakai 1 Posted January 16, 2013 When done so I get this... --------------------------- File fac_gbs\config.cpp, line 70: /CfgVehicles/: Missing '}' --------------------------- And its closed in the end of the config EDIT: NVM the end of the config } didnt have ; >.< Thanks Prof Share this post Link to post Share on other sites
ProfTournesol 956 Posted January 16, 2013 Well, i'd advise you to get notepad++ (that's free) to control correct C++ file structure. Share this post Link to post Share on other sites
Sakai 1 Posted January 16, 2013 Well, i'd advise you to get notepad++ (that's free) to control correct C++ file structure. I do have notepad++ which I use, but I am no expert in config making >.< EDIT: I have no idea what I have done now, ofc It was working before I added more units but now its not.. ERROR: --------------------------- File fac_gbs\config.cpp, line 28: /CfgVehicles/GBS_Soldier_Base.GBS_Officer: Undefined base class 'GBS_Soldier_Base' --------------------------- New config.cpp: #define true 1 #define false 0 #define VSoft 0 #define VArmor 1 #define VAir 2 #define LockNo 0 #define LockCadet 1 #define LockYes 2 #define private 0 #define protected 1 #define public 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define ReadAndWrite 0 #define ReadAndCreate 1 #define ReadOnly 2 #define ReadOnlyVerified 3 class CfgPatches { class FAC_GBS { units[] = {}; weapons[] = {}; requiredVersion = 1.0; requiredAddons[] = {"CACharacters2", "CAWeapons"}; }; }; class CfgVehicleClasses{ class FAC_GBS { displayName = "GBS (Special Forces)"; }; }; class CfgVehicles { class SoldierEB; class RUS_Soldier_Base; class Ins_Soldier_Base; class FlagCarrier; // External class reference class GBS_Soldier_Base : RUS_Soldier_Base { class GBS2_Soldier_Base : Ins_Soldier_Base { }; class GBS_Officer : GBS_Soldier_Base { scope = public; model = "\ca\characters2\Rus\Specnaz_CO"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; side = 2 faction = "FAC"; portrait = "\Ca\characters\data\portraits\comBarHead_ru_spec_com_ca"; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; Icon = "\Ca\characters2\data\icon\i_officer_CA.paa"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 0.6; // how dificult to spot - bigger - better spotable cost = 900000; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; displayName = "GSB Officer"; languages[] = {"EN"}; weapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; respawnWeapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; }; class GBS_Commander : GBS_Soldier_Base { scope = public; displayName = "GBS Commander"; model = "\ca\characters2\Rus\RU_Commander"; side = 2 faction = "FAC"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; icon = "\Ca\characters2\data\icon\i_officer_CA.paa"; portrait = "\Ca\characters\data\portraits\comBarHead_common_officer_ca"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 1.6; // how dificult to spot - bigger - better spotable cost = 900000; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; enableGPS = 1; languages[] = {"EN"}; weaponSlots = 1 + 4 + 6 * 256 + 2 * 4096 + 2 + 4* 16 + 12*131072; weapons[] = {AKS_74_U, "Makarov", "NVGoggles", "ItemGPS", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; respawnWeapons[] = {"Makarov", "NVGoggles", "ItemGPS", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnmagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; }; class GBS_Soldier_Riflemen : GBS_Soldier_Base { scope = public; displayName = "GBS Riflemen"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; portrait = "\Ca\characters\data\portraits\comBarHead_common_officer_ca"; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; model = "\ca\characters2\Rus\Soldier_CO"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 1.6; // how dificult to spot - bigger - better spotable cost = 750000; nightVision = true; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; enableGPS = 1; side = 2 faction = "FAC"; languages[] = {"EN"}; weapons[] = {AKS_74_U, "Makarov", "ItemGPS", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; respawnWeapons[] = {AKS_74_U, "Makarov", "ItemGPS", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnmagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; }; class GBS_Soldier_Medic : GBS_Soldier_Base { scope = public; displayName = "GBS Medic"; model = "\ca\characters2\Rus\Soldier"; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; Picture = "\Ca\characters\data\Ico\i_sleader_CA.paa"; Icon = "\Ca\characters2\data\icon\i_medic_CA.paa"; accuracy = 3.6; // accuracy needed to recognize type of this target cost = 400000; enableGPS = 1; languages[] = {"EN"}; side = 2 faction = "FAC"; nightVision = true; weapons[] = {"AK_107_GL_kobra", "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShellOrange", "SmokeShellBlue", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_SMOKE_GP25", "1Rnd_SMOKE_GP25", "FlareWhite_GP25", "FlareRed_GP25"}; respawnWeapons[] = {"AK_107_GL_kobra", "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShellOrange", "SmokeShellBlue", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_SMOKE_GP25", "1Rnd_SMOKE_GP25", "FlareWhite_GP25", "FlareRed_GP25"}; }; class GBS2_Soldier_AR : GBS2_Soldier_Base { scope = public; displayName = "GBS Automatic Riflemen"; model = "\ca\characters2\OpforIns\Ins_Soldier_Com.p3d"; Picture = "\Ca\characters\data\Ico\i_tleader_CA.paa"; icon = "\Ca\characters2\data\icon\i_machinegunner_CA.paa"; portrait = "\Ca\characters\data\portraits\comBarHead_opFor_ca"; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; side = 2 faction = "FAC"; languages[] = {"EN"}; accuracy = 3.6; // accuracy needed to recognize type of this target nightVision = true; weapons[] = {"AKS_74_pso", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Makarov"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShell", "SmokeShell", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; respawnWeapons[] = {"AKS_74_pso", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShell"}; cost = 600000; languages[] = {"EN"}; }; class GBS_Soldier_Sapper : GBS2_Soldier_Base { scope = public; displayName = "Demolition's Specialist"; camouflage = 1.0; // how dificult to spot - bigger - better spotable accuracy = 3.9; // accuracy needed to recognize type of this target cost = 45000; canDeactivateMines = true; side = 2 faction = "FAC"; weapons[] = {AK_47_S, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "HandGrenade_East", "HandGrenade_East", "Mine", "Mine"}; respawnWeapons[] = {AK_47_S, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "HandGrenade_East", "Mine"}; }; }; Share this post Link to post Share on other sites
ProfTournesol 956 Posted January 16, 2013 Yup. Could you post the last state of your config. Share this post Link to post Share on other sites
Sakai 1 Posted January 16, 2013 Yup. Could you post the last state of your config. Its on the second post but here is the old config.cpp #define true 1 #define false 0 #define VSoft 0 #define VArmor 1 #define VAir 2 #define LockNo 0 #define LockCadet 1 #define LockYes 2 #define private 0 #define protected 1 #define public 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define ReadAndWrite 0 #define ReadAndCreate 1 #define ReadOnly 2 #define ReadOnlyVerified 3 class CfgPatches { class FAC_GBS { units[] = {}; weapons[] = {}; requiredVersion = 1.0; requiredAddons[] = {"CACharacters2", "CAWeapons"}; }; }; class CfgVehicleClasses{ class FAC_GBS { displayName = "GBS (Special Forces)"; }; }; class CfgVehicles { class SoldierEB; class RUS_Soldier_Base; class FlagCarrier; // External class reference class GBS_Soldier_Base : RUS_Soldier_Base { }; }; class GBS_Commander : GBS_Soldier_Base { scope = public; model = "\ca\characters2\Rus\Specnaz_CO"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; side = 2 faction = "FAC"; portrait = "\Ca\characters\data\portraits\comBarHead_ru_spec_com_ca"; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; Icon = "\Ca\characters2\data\icon\i_officer_CA.paa"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 0.6; // how dificult to spot - bigger - better spotable cost = 900000; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; displayName = "GSB Commander"; weapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; respawnWeapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; }; Share this post Link to post Share on other sites
ProfTournesol 956 Posted January 16, 2013 Try : #define true 1 #define false 0 #define VSoft 0 #define VArmor 1 #define VAir 2 #define LockNo 0 #define LockCadet 1 #define LockYes 2 #define private 0 #define protected 1 #define public 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define ReadAndWrite 0 #define ReadAndCreate 1 #define ReadOnly 2 #define ReadOnlyVerified 3 class CfgPatches { class FAC_GBS { units[] = {}; weapons[] = {}; requiredVersion = 1.0; requiredAddons[] = {"CACharacters2", "CAWeapons"}; }; }; class CfgVehicleClasses{ class FAC_GBS { displayName = "GBS (Special Forces)"; }; }; class CfgVehicles { class SoldierEB; class RUS_Soldier_Base; class Ins_Soldier_Base; class FlagCarrier; // External class reference class GBS_Soldier_Base : RUS_Soldier_Base {}; class GBS2_Soldier_Base : Ins_Soldier_Base {}; class GBS_Officer : GBS_Soldier_Base { scope = public; model = "\ca\characters2\Rus\Specnaz_CO"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; side = 2 faction = "FAC"; portrait = "\Ca\characters\data\portraits\comBarHead_ru_spec_com_ca"; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; Icon = "\Ca\characters2\data\icon\i_officer_CA.paa"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 0.6; // how dificult to spot - bigger - better spotable cost = 900000; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; displayName = "GSB Officer"; languages[] = {"EN"}; weapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; respawnWeapons[] = {AKS_74_U, "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "MakarovSD"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShell", "SmokeShellBlue", "SmokeShellOrange", "8Rnd_9x18_MakarovSD", "8Rnd_9x18_MakarovSD"}; }; class GBS_Commander : GBS_Soldier_Base { scope = public; displayName = "GBS Commander"; model = "\ca\characters2\Rus\RU_Commander"; side = 2 faction = "FAC"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; icon = "\Ca\characters2\data\icon\i_officer_CA.paa"; portrait = "\Ca\characters\data\portraits\comBarHead_common_officer_ca"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 1.6; // how dificult to spot - bigger - better spotable cost = 900000; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; enableGPS = 1; languages[] = {"EN"}; weaponSlots = 1 + 4 + 6 * 256 + 2 * 4096 + 2 + 4* 16 + 12*131072; weapons[] = {AKS_74_U, "Makarov", "NVGoggles", "ItemGPS", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; respawnWeapons[] = {"Makarov", "NVGoggles", "ItemGPS", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnmagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; }; class GBS_Soldier_Riflemen : GBS_Soldier_Base { scope = public; displayName = "GBS Riflemen"; identityTypes[] = {"Head_RU_CO", "RU_Glasses"}; portrait = "\Ca\characters\data\portraits\comBarHead_common_officer_ca"; Picture = "\Ca\characters\data\Ico\i_off_CA.paa"; model = "\ca\characters2\Rus\Soldier_CO"; accuracy = 3.6; // accuracy needed to recognize type of this target camouflage = 1.6; // how dificult to spot - bigger - better spotable cost = 750000; nightVision = true; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; enableGPS = 1; side = 2 faction = "FAC"; languages[] = {"EN"}; weapons[] = {AKS_74_U, "Makarov", "ItemGPS", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; respawnWeapons[] = {AKS_74_U, "Makarov", "ItemGPS", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnmagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; }; class GBS_Soldier_Medic : GBS_Soldier_Base { scope = public; displayName = "GBS Medic"; model = "\ca\characters2\Rus\Soldier"; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; Picture = "\Ca\characters\data\Ico\i_sleader_CA.paa"; Icon = "\Ca\characters2\data\icon\i_medic_CA.paa"; accuracy = 3.6; // accuracy needed to recognize type of this target cost = 400000; enableGPS = 1; languages[] = {"EN"}; side = 2 faction = "FAC"; nightVision = true; weapons[] = {"AK_107_GL_kobra", "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShellOrange", "SmokeShellBlue", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_SMOKE_GP25", "1Rnd_SMOKE_GP25", "FlareWhite_GP25", "FlareRed_GP25"}; respawnWeapons[] = {"AK_107_GL_kobra", "ItemGPS", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShellOrange", "SmokeShellBlue", "1Rnd_HE_GP25", "1Rnd_HE_GP25", "1Rnd_SMOKE_GP25", "1Rnd_SMOKE_GP25", "FlareWhite_GP25", "FlareRed_GP25"}; }; class GBS2_Soldier_AR : GBS2_Soldier_Base { scope = public; displayName = "GBS Automatic Riflemen"; model = "\ca\characters2\OpforIns\Ins_Soldier_Com.p3d"; Picture = "\Ca\characters\data\Ico\i_tleader_CA.paa"; icon = "\Ca\characters2\data\icon\i_machinegunner_CA.paa"; portrait = "\Ca\characters\data\portraits\comBarHead_opFor_ca"; class SpeechVariants { class Default { speechSingular[] = {"veh_officer"}; speechPlural[] = {"veh_officers"}; }; class EN : Default {}; class CZ { speechSingular[] = {"veh_officer_CZ"}; speechPlural[] = {"veh_officers_CZ"}; }; class CZ_Akuzativ { speechSingular[] = {"veh_officer_CZ4P"}; speechPlural[] = {"veh_officers_CZ4P"}; }; class RU { speechSingular[] = {"veh_officer_RU"}; speechPlural[] = {"veh_officers_RU"}; }; }; TextPlural = "$STR_DN_officers"; TextSingular = "$STR_DN_officer"; nameSound = "veh_officer"; side = 2 faction = "FAC"; languages[] = {"EN"}; accuracy = 3.6; // accuracy needed to recognize type of this target nightVision = true; weapons[] = {"AKS_74_pso", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Makarov"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "HandGrenade_East", "SmokeShell", "SmokeShell", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov", "8Rnd_9x18_Makarov"}; respawnWeapons[] = {"AKS_74_pso", "Binocular", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade_East", "SmokeShell"}; cost = 600000; languages[] = {"EN"}; }; class GBS_Soldier_Sapper : GBS2_Soldier_Base { scope = public; displayName = "Demolition's Specialist"; camouflage = 1.0; // how dificult to spot - bigger - better spotable accuracy = 3.9; // accuracy needed to recognize type of this target cost = 45000; canDeactivateMines = true; side = 2 faction = "FAC"; weapons[] = {AK_47_S, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "HandGrenade_East", "HandGrenade_East", "Mine", "Mine"}; respawnWeapons[] = {AK_47_S, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "30Rnd_762x39_AK47", "HandGrenade_East", "Mine"}; }; }; Share this post Link to post Share on other sites
Sakai 1 Posted January 16, 2013 Thank you that fixed it :) Would of be nice if it would of be in code tag because its all mashed up >.< But thank you again! Share this post Link to post Share on other sites
[aps]gnat 28 Posted January 17, 2013 @ProfTournesol Best to use the PHP or Code tags when posting configs, scripts or cfgs Share this post Link to post Share on other sites