Angus S 10 Posted February 5, 2012 Is their a simple tutorial on how to create weapon replacement config or a template for one? Share this post Link to post Share on other sites
max power 21 Posted February 5, 2012 So are we talking about a model replacement, such as replacing an m16 model with a model you prefer, or replacing, say, all of the SCARs with something dissimilar like banana-cannons? Share this post Link to post Share on other sites
Angus S 10 Posted February 5, 2012 Maybe not quite to the extent of banana cannons (as cool as that would be) but replacing, say, the BIS M16A2 with the RH one. I am aware there is already a mod that does this but I want to make an all in one config that replaces pistols and other weapons as well Share this post Link to post Share on other sites
max power 21 Posted February 5, 2012 Then what you need to know is the p3d of the models in RH's pack, and the config class names of the weapons. You can find the configs and class names of BIS's stuff here: http://browser.dev-heaven.net/home You can find out what the token names in cfgWeapons mean here: http://community.bistudio.com/wiki/CfgWeapons_Config_Reference#TokenNames Then you would make a config, or several configs with lines like the following (to replace the model of the weapon) in cfgWeapons. class cfgPatches { requiredaddons[] = {"CAWeapons"}; requiredversion = 1.0; units[] = {}; weapons[] = {"M16A2"}; }; class cfgWeapons { class M16_base; class M16A2: M16_base { model = "\pathto\someRHmodel.p3d"; }; }; What this does, is changes only what you mention in your config. So everything that you don't mention in there stays the same, and only the model entry is changed. So if you want RH's model names, or anyone else's, best contact them and ask them what they are or if you can find the answer yourself. Share this post Link to post Share on other sites
Angus S 10 Posted February 5, 2012 cool thanks so much for your help Share this post Link to post Share on other sites
Gerwazy 10 Posted February 22, 2012 I'm going to make a replacement addon for usmc weapons but I want to replace m16a4's with some other bis made m16's and I'm not sure If I'm going to upload it to armaholic and all that stuff. I tried to do it editing rangerpl's config file from his replacement(bis m16 to rh m16) but it doesn't work. There is an error like: some data after end of file or something. How can I write a new config file that replaces few usmc soldiers equipment and how to create config.cpp file without converting config.bin to config.cpp and than writing some stuff? Share this post Link to post Share on other sites
[frl]myke 14 Posted February 22, 2012 some data after end of file Probably a problem with missing/misplaced brackets {} Check the config and make sure that each opening bracket has a correct placed closing bracket. Notepad++ can be of help here, select C++ as language and it will show you the relations betwenn opening and closing brackets. Share this post Link to post Share on other sites
Gerwazy 10 Posted February 22, 2012 I mixed rangerpl's config with tgw us army weapons replacement config and this is what I've made: (I have no idea how to edit config files) class CfgPatches { class My replacement { units = {}; weapons = {}; requiredVersion = 1.540000; requiredAddons = {"CACharacters", "CACharacters2", "CAWeapons"}; fileName = "myrep.pbo"; }; }; class CfgVehicles { /*extern*/ class Land; /*extern*/ class Man; class CAManBase: Man { /*extern*/ class TalkTopics; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; }; }; class SoldierWB: CAManBase { class TalkTopics: TalkTopics { }; }; class USMC_Soldier_Base: SoldierWB { }; class USMC_Soldier: USMC_Soldier_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_Light: USMC_Soldier_Base { weapons = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {}; respawnWeapons = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {}; }; class USMC_Soldier2: USMC_Soldier_Base { weapons = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_GL: USMC_Soldier_Base { weapons = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; respawnWeapons = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; }; class USMC_Soldier_Officer: USMC_Soldier_Base { weapons = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_Soldier_SL: USMC_Soldier_Base { weapons = {"M4A1_AIM", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular", "M9"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell", "SmokeShellRed", "SmokeShellGreen", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"}; respawnWeapons = {"M4A1_AIM", "binocular", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_TL: USMC_Soldier_Base { weapons = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203", "1Rnd_Smoke_M203", "1Rnd_SmokeRed_M203", "1Rnd_SmokeGreen_M203"}; respawnWeapons = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnmagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203"}; }; class USMC_Soldier_AT_Base: USMC_Soldier_Base { }; class USMC_Soldier_LAT: USMC_Soldier_AT_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "M136"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "M136"}; respawnWeapons = {"M16A2", "M136", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "M136", "HandGrenade_West"}; }; class USMC_Soldier_AT: USMC_Soldier_AT_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "SMAW"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SMAW_HEAA", "SMAW_HEAA", "SMAW_HEDP"}; respawnWeapons = {"M16A2", "NVGoggles", "SMAW", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SMAW_HEAA", "HandGrenade_West"}; }; class USMC_Soldier_HAT: USMC_Soldier_AT_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Javelin"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Javelin", "HandGrenade_West"}; }; class USMC_Soldier_AA: USMC_Soldier_AT_Base { weapons = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Stinger"}; respawnWeapons = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Stinger", "HandGrenade_West"}; }; class USMC_Soldier_Medic: USMC_Soldier_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "HandGrenade_West"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell"}; }; class USMC_Soldier_AR: USMC_Soldier_Base { weapons = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell"}; respawnWeapons = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_MG: USMC_Soldier_Base { weapons = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; respawnWeapons = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; }; class USMC_SoldierS_Spotter: USMC_Soldier_Base { weapons = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnWeapons = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; }; class USMC_SoldierS_Sniper: USMC_Soldier_Base { weapons = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "HandGrenade_West", "smokeshell"}; }; class USMC_SoldierS_SniperH: USMC_SoldierS_Sniper { weapons = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_SoldierM_Marksman: USMC_Soldier_Base { weapons = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShellRed"}; respawnWeapons = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "SmokeShell"}; }; class USMC_SoldierS: USMC_Soldier_Base { weapons = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator", "M9SD"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; respawnWeapons = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; }; class USMC_SoldierS_Engineer: USMC_Soldier_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "Mine", "HandGrenade_West", "SmokeShell"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "SmokeShell"}; }; class USMC_Soldier_Pilot: USMC_Soldier_Base { weapons = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; respawnWeapons = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; }; class USMC_Soldier_Crew: USMC_Soldier_Base { weapons = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell", "SmokeShellRed"}; respawnWeapons = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell"}; }; Share this post Link to post Share on other sites
max power 21 Posted February 22, 2012 If you paste into some code tags, I think you can keep your tabbing. Share this post Link to post Share on other sites
Gerwazy 10 Posted February 22, 2012 How can I do it? Share this post Link to post Share on other sites
max power 21 Posted February 22, 2012 (code) pasted stuff (/code) only with square brackets [] Share this post Link to post Share on other sites
Gerwazy 10 Posted February 24, 2012 This is how it looks like. That tool notepad++ is preety usefull. Anyway when I make a pbo from this config.cpp and I try to run arma 2 with this pbo I get an error saying something about "r" instead of "}" in second line of CfgPatches. What do I have to change to make it works? class CfgPatches { class My replacement { units = {}; weapons = {}; requiredVersion = 1.090000; requiredAddons = {"CACharacters", "CACharacters2", "CAWeapons"}; fileName = "myrep.pbo"; }; }; class CfgVehicles { /*extern*/ class Land; /*extern*/ class Man; class CAManBase: Man { /*extern*/ class TalkTopics; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; }; }; class SoldierWB: CAManBase { class TalkTopics: TalkTopics { }; }; class USMC_Soldier_Base: SoldierWB { }; class USMC_Soldier: USMC_Soldier_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_Light: USMC_Soldier_Base { weapons = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {}; respawnWeapons = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {}; }; class USMC_Soldier2: USMC_Soldier_Base { weapons = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_GL: USMC_Soldier_Base { weapons = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; respawnWeapons = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; }; class USMC_Soldier_Officer: USMC_Soldier_Base { weapons = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_Soldier_SL: USMC_Soldier_Base { weapons = {"M4A1_AIM", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular", "M9"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell", "SmokeShellRed", "SmokeShellGreen", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"}; respawnWeapons = {"M4A1_AIM", "binocular", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_TL: USMC_Soldier_Base { weapons = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203", "1Rnd_Smoke_M203", "1Rnd_SmokeRed_M203", "1Rnd_SmokeGreen_M203"}; respawnWeapons = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnmagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203"}; }; class USMC_Soldier_AT_Base: USMC_Soldier_Base { }; class USMC_Soldier_LAT: USMC_Soldier_AT_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "M136"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "M136"}; respawnWeapons = {"M16A2", "M136", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "M136", "HandGrenade_West"}; }; class USMC_Soldier_AT: USMC_Soldier_AT_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "SMAW"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SMAW_HEAA", "SMAW_HEAA", "SMAW_HEDP"}; respawnWeapons = {"M16A2", "NVGoggles", "SMAW", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SMAW_HEAA", "HandGrenade_West"}; }; class USMC_Soldier_HAT: USMC_Soldier_AT_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Javelin"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Javelin", "HandGrenade_West"}; }; class USMC_Soldier_AA: USMC_Soldier_AT_Base { weapons = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Stinger"}; respawnWeapons = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Stinger", "HandGrenade_West"}; }; class USMC_Soldier_Medic: USMC_Soldier_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "HandGrenade_West"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell"}; }; class USMC_Soldier_AR: USMC_Soldier_Base { weapons = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell"}; respawnWeapons = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_MG: USMC_Soldier_Base { weapons = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; respawnWeapons = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; }; class USMC_SoldierS_Spotter: USMC_Soldier_Base { weapons = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnWeapons = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; }; class USMC_SoldierS_Sniper: USMC_Soldier_Base { weapons = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "HandGrenade_West", "smokeshell"}; }; class USMC_SoldierS_SniperH: USMC_SoldierS_Sniper { weapons = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_SoldierM_Marksman: USMC_Soldier_Base { weapons = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShellRed"}; respawnWeapons = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "SmokeShell"}; }; class USMC_SoldierS: USMC_Soldier_Base { weapons = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator", "M9SD"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; respawnWeapons = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; }; class USMC_SoldierS_Engineer: USMC_Soldier_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "Mine", "HandGrenade_West", "SmokeShell"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "SmokeShell"}; }; class USMC_Soldier_Pilot: USMC_Soldier_Base { weapons = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; respawnWeapons = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; }; class USMC_Soldier_Crew: USMC_Soldier_Base { weapons = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell", "SmokeShellRed"}; respawnWeapons = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell"}; }; Share this post Link to post Share on other sites
[frl]myke 14 Posted February 24, 2012 Wrong: class My replacement { Correct: class My_replacement { Never ever use spaces in classnames or somewhere else except in strings. The engine reads "class my" and then expects a { which is missing, instead there is a "r" from "replacement". Share this post Link to post Share on other sites
Gerwazy 10 Posted February 24, 2012 Thanks I fixed it but now I've got a new error - some input after end of file. I guess there is something wrong with my "}" but I can't find that wrong bracket. class CfgPatches { class My_replacement { units = {}; weapons = {}; requiredVersion = 1.090000; requiredAddons = {"CACharacters", "CACharacters2", "CAWeapons"}; fileName = "myrep.pbo"; }; }; class CfgVehicles { /*extern*/ class Land; /*extern*/ class Man; class CAManBase: Man { /*extern*/ class TalkTopics; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; }; }; class SoldierWB: CAManBase { class TalkTopics: TalkTopics { }; }; class USMC_Soldier_Base: SoldierWB { }; class USMC_Soldier: USMC_Soldier_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_Light: USMC_Soldier_Base { weapons = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {}; respawnWeapons = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {}; }; class USMC_Soldier2: USMC_Soldier_Base { weapons = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_GL: USMC_Soldier_Base { weapons = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; respawnWeapons = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; }; class USMC_Soldier_Officer: USMC_Soldier_Base { weapons = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_Soldier_SL: USMC_Soldier_Base { weapons = {"M4A1_AIM", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular", "M9"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell", "SmokeShellRed", "SmokeShellGreen", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"}; respawnWeapons = {"M4A1_AIM", "binocular", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_TL: USMC_Soldier_Base { weapons = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203", "1Rnd_Smoke_M203", "1Rnd_SmokeRed_M203", "1Rnd_SmokeGreen_M203"}; respawnWeapons = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnmagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203"}; }; class USMC_Soldier_AT_Base: USMC_Soldier_Base { }; class USMC_Soldier_LAT: USMC_Soldier_AT_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "M136"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "M136"}; respawnWeapons = {"M16A2", "M136", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "M136", "HandGrenade_West"}; }; class USMC_Soldier_AT: USMC_Soldier_AT_Base { weapons = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "SMAW"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SMAW_HEAA", "SMAW_HEAA", "SMAW_HEDP"}; respawnWeapons = {"M16A2", "NVGoggles", "SMAW", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SMAW_HEAA", "HandGrenade_West"}; }; class USMC_Soldier_HAT: USMC_Soldier_AT_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Javelin"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Javelin", "HandGrenade_West"}; }; class USMC_Soldier_AA: USMC_Soldier_AT_Base { weapons = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Stinger"}; respawnWeapons = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Stinger", "HandGrenade_West"}; }; class USMC_Soldier_Medic: USMC_Soldier_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "HandGrenade_West"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell"}; }; class USMC_Soldier_AR: USMC_Soldier_Base { weapons = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell"}; respawnWeapons = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_MG: USMC_Soldier_Base { weapons = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; respawnWeapons = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; }; class USMC_SoldierS_Spotter: USMC_Soldier_Base { weapons = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnWeapons = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; }; class USMC_SoldierS_Sniper: USMC_Soldier_Base { weapons = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "HandGrenade_West", "smokeshell"}; }; class USMC_SoldierS_SniperH: USMC_SoldierS_Sniper { weapons = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_SoldierM_Marksman: USMC_Soldier_Base { weapons = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShellRed"}; respawnWeapons = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "SmokeShell"}; }; class USMC_SoldierS: USMC_Soldier_Base { weapons = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator", "M9SD"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; respawnWeapons = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; }; class USMC_SoldierS_Engineer: USMC_Soldier_Base { weapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "Mine", "HandGrenade_West", "SmokeShell"}; respawnWeapons = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "SmokeShell"}; }; class USMC_Soldier_Pilot: USMC_Soldier_Base { weapons = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; respawnWeapons = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; }; class USMC_Soldier_Crew: USMC_Soldier_Base { weapons = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell", "SmokeShellRed"}; respawnWeapons = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell"}; }; }; Also I added one "}" at the end. It still doesn't work. Share this post Link to post Share on other sites
W0lle 1052 Posted February 24, 2012 units = {}; weapons = {}; must be: units[] = {}; weapons[] = {}; Same goes for each weapons, magazines, respawnweapons and respawnmagazines line in every unit class Share this post Link to post Share on other sites
Gerwazy 10 Posted February 25, 2012 I fixed it. It still says: some input after end of file. class CfgPatches { class My_replacement { units[] = {}; weapons[] = {}; requiredVersion = 1.09; requiredAddons = {"CACharacters", "CACharacters2", "CAWeapons"}; fileName = "myrep.pbo"; }; }; class CfgVehicles { /*extern*/ class Land; /*extern*/ class Man; class CAManBase: Man { /*extern*/ class TalkTopics; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; }; }; class SoldierWB: CAManBase { class TalkTopics: TalkTopics { }; }; class USMC_Soldier_Base: SoldierWB { }; class USMC_Soldier: USMC_Soldier_Base { weapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_Light: USMC_Soldier_Base { weapons[] = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {}; respawnWeapons[] = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {}; }; class USMC_Soldier2: USMC_Soldier_Base { weapons[] = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons[] = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_GL: USMC_Soldier_Base { weapons[] = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; respawnWeapons[] = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; }; class USMC_Soldier_Officer: USMC_Soldier_Base { weapons[] = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons[] = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_Soldier_SL: USMC_Soldier_Base { weapons[] = {"M4A1_AIM", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular", "M9"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell", "SmokeShellRed", "SmokeShellGreen", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"}; respawnWeapons[] = {"M4A1_AIM", "binocular", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_TL: USMC_Soldier_Base { weapons[] = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203", "1Rnd_Smoke_M203", "1Rnd_SmokeRed_M203", "1Rnd_SmokeGreen_M203"}; respawnWeapons[] = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnmagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203"}; }; class USMC_Soldier_AT_Base: USMC_Soldier_Base { }; class USMC_Soldier_LAT: USMC_Soldier_AT_Base { weapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "M136"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "M136"}; respawnWeapons[] = {"M16A2", "M136", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "M136", "HandGrenade_West"}; }; class USMC_Soldier_AT: USMC_Soldier_AT_Base { weapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "SMAW"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SMAW_HEAA", "SMAW_HEAA", "SMAW_HEDP"}; respawnWeapons[] = {"M16A2", "NVGoggles", "SMAW", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SMAW_HEAA", "HandGrenade_West"}; }; class USMC_Soldier_HAT: USMC_Soldier_AT_Base { weapon[]s = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Javelin"}; respawnWeapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Javelin", "HandGrenade_West"}; }; class USMC_Soldier_AA: USMC_Soldier_AT_Base { weapons[] = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Stinger"}; respawnWeapons[] = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Stinger", "HandGrenade_West"}; }; class USMC_Soldier_Medic: USMC_Soldier_Base { weapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "HandGrenade_West"}; respawnWeapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell"}; }; class USMC_Soldier_AR: USMC_Soldier_Base { weapons[] = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell"}; respawnWeapons[] = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_MG: USMC_Soldier_Base { weapons[] = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; respawnWeapons[] = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; }; class USMC_SoldierS_Spotter: USMC_Soldier_Base { weapons[] = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnWeapons[] = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; }; class USMC_SoldierS_Sniper: USMC_Soldier_Base { weapons[] = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons[] = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "HandGrenade_West", "smokeshell"}; }; class USMC_SoldierS_SniperH: USMC_SoldierS_Sniper { weapons[] = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons[] = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines[] = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_SoldierM_Marksman: USMC_Soldier_Base { weapons[] = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShellRed"}; respawnWeapons[] = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "SmokeShell"}; }; class USMC_SoldierS: USMC_Soldier_Base { weapons[] = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator", "M9SD"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; respawnWeapons[] = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; }; class USMC_SoldierS_Engineer: USMC_Soldier_Base { weapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "Mine", "HandGrenade_West", "SmokeShell"}; respawnWeapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "SmokeShell"}; }; class USMC_Soldier_Pilot: USMC_Soldier_Base { weapons[] = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; respawnWeapons[] = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; }; class USMC_Soldier_Crew: USMC_Soldier_Base { weapons[] = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell", "SmokeShellRed"}; respawnWeapons[] = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell"}; }; }; Is this stuff realy needed? What if I delete it? /*extern*/ class Land; /*extern*/ class Man; class CAManBase: Man { /*extern*/ class TalkTopics; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; }; }; Share this post Link to post Share on other sites
[frl]myke 14 Posted February 25, 2012 class CfgPatches { class My_replacement { units[] = {}; weapons[] = {}; requiredVersion = 1.09; requiredAddons[] = {"CACharacters", "CACharacters2", "CAWeapons"}; fileName = "myrep.pbo"; }; }; class CfgVehicles { class USMC_Soldier_Base; class USMC_Soldier: USMC_Soldier_Base { weapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_Light: USMC_Soldier_Base { weapons[] = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {}; respawnWeapons[] = {"Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {}; }; class USMC_Soldier2: USMC_Soldier_Base { weapons[] = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West"}; respawnWeapons[] = {"M1014", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "8Rnd_B_Beneli_74Slug", "HandGrenade_West", "HandGrenade_West"}; }; class USMC_Soldier_GL: USMC_Soldier_Base { weapons[] = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; respawnWeapons[] = {"M16A4_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"}; }; class USMC_Soldier_Officer: USMC_Soldier_Base { weapons[] = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons[] = {"M4A1", "Colt1911", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_Soldier_SL: USMC_Soldier_Base { weapons[] = {"M4A1_AIM", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular", "M9"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell", "SmokeShellRed", "SmokeShellGreen", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"}; respawnWeapons[] = {"M4A1_AIM", "binocular", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_TL: USMC_Soldier_Base { weapons[] = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203", "1Rnd_Smoke_M203", "1Rnd_SmokeRed_M203", "1Rnd_SmokeGreen_M203"}; respawnWeapons[] = {"M4A1_RCO_GL", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnmagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_Smoke_M203"}; }; class USMC_Soldier_AT_Base: USMC_Soldier_Base { }; class USMC_Soldier_LAT: USMC_Soldier_AT_Base { weapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "M136"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "M136"}; respawnWeapons[] = {"M16A2", "M136", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "M136", "HandGrenade_West"}; }; class USMC_Soldier_AT: USMC_Soldier_AT_Base { weapons[] = {"M16A2", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "SMAW"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "SMAW_HEAA", "SMAW_HEAA", "SMAW_HEDP"}; respawnWeapons[] = {"M16A2", "NVGoggles", "SMAW", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SMAW_HEAA", "HandGrenade_West"}; }; class USMC_Soldier_HAT: USMC_Soldier_AT_Base { weapon[]s = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Javelin"}; respawnWeapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Javelin"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Javelin", "HandGrenade_West"}; }; class USMC_Soldier_AA: USMC_Soldier_AT_Base { weapons[] = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "Stinger"}; respawnWeapons[] = {"M4A1", "Stinger", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Stinger", "HandGrenade_West"}; }; class USMC_Soldier_Medic: USMC_Soldier_Base { weapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "HandGrenade_West"}; respawnWeapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell"}; }; class USMC_Soldier_AR: USMC_Soldier_Base { weapons[] = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShell"}; respawnWeapons[] = {"M249", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "HandGrenade_West", "SmokeShell"}; }; class USMC_Soldier_MG: USMC_Soldier_Base { weapons[] = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; respawnWeapons[] = {"M240", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"100Rnd_762x51_M240", "100Rnd_762x51_M240", "100Rnd_762x51_M240"}; }; class USMC_SoldierS_Spotter: USMC_Soldier_Base { weapons[] = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "smokeshell", "smokeshellYellow"}; respawnWeapons[] = {"m16a4_acg", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; }; class USMC_SoldierS_Sniper: USMC_Soldier_Base { weapons[] = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons[] = {"M40A3", "Colt1911", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "5Rnd_762x51_M24", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "HandGrenade_West", "smokeshell"}; }; class USMC_SoldierS_SniperH: USMC_SoldierS_Sniper { weapons[] = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; magazines[] = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "smokeshellred", "smokeshellgreen", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; respawnWeapons[] = {"M107", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "Binocular"}; respawnMagazines[] = {"10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "10Rnd_127x99_m107", "HandGrenade_West", "smokeshell", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911"}; }; class USMC_SoldierM_Marksman: USMC_Soldier_Base { weapons[] = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "HandGrenade_West", "SmokeShell", "SmokeShellRed"}; respawnWeapons[] = {"DMR", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "20Rnd_762x51_DMR", "HandGrenade_West", "SmokeShell"}; }; class USMC_SoldierS: USMC_Soldier_Base { weapons[] = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator", "M9SD"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "15Rnd_9x19_M9SD", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; respawnWeapons[] = {"M16A2", "NVGoggles", "ItemGPS", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "LaserDesignator"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "SmokeShell", "SmokeShellPurple", "SmokeShellYellow", "Laserbatteries"}; }; class USMC_SoldierS_Engineer: USMC_Soldier_Base { weapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "Mine", "HandGrenade_West", "SmokeShell"}; respawnWeapons[] = {"M4A1", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "Mine", "SmokeShell"}; }; class USMC_Soldier_Pilot: USMC_Soldier_Base { weapons[] = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; respawnWeapons[] = {"MP5A5", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "SmokeShellRed", "SmokeShellGreen"}; }; class USMC_Soldier_Crew: USMC_Soldier_Base { weapons[] = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell", "SmokeShellRed"}; respawnWeapons[] = {"M4A1", "Colt1911", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnMagazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "7Rnd_45ACP_1911", "7Rnd_45ACP_1911", "SmokeShell"}; }; }; You were missing [] in requiredAddons. Share this post Link to post Share on other sites
max power 21 Posted February 25, 2012 @TOP In the configs, '[]' indicates an array. Any config token with multiple parameters is going to be an array, even if it's a list, I think. Also, I'm not sure how my terminology is here, but I think you can understand what I'm talking about even if it's way off. Share this post Link to post Share on other sites
[frl]myke 14 Posted February 25, 2012 Easy rule: if after a = comes a {, it needs [] before the = ;) correct: array[] = {}; wrong: array = {}; Share this post Link to post Share on other sites
Gerwazy 10 Posted February 26, 2012 It works!!! Thank you so much guys for your help. So now If I want to replace those guns with some community made ones I just have to add the name of the addon in reqired addons and class names of those guns? Share this post Link to post Share on other sites
[frl]myke 14 Posted February 26, 2012 Into the requiredAddons, the following bit (of course of the respective addons) matters: [font=verdana][font=trebuchet ms]class CfgPatches { class [u][b]My_replacement[/b][/u] { units[] = {}; weapons[] = {}; requiredVersion = 1.09; requiredAddons[] = {"CACharacters", "CACharacters2", "CAWeapons"}; fileName = "myrep.pbo"; }; };[/font] [/font] So not the pbo name (altough it might be often equal) but the name used in cfgPatches. Share this post Link to post Share on other sites
PFC Magician 10 Posted February 29, 2012 (edited) i have a question about this! ...code... class AK_47_M: AK_BASE { model = "\my_model\akm"; picture = "\my_model\akm.paa"; displayname = "AKM"; }; ...code... this code dnot REPLACE AKM weapon! class AK_47_M?is correct? Edited February 29, 2012 by PFC Magician Share this post Link to post Share on other sites
PFC Magician 10 Posted March 16, 2012 i cant replace m4a1 .... class M4A1: M16_base { model = "\weapons\othermodel"; ///dnot work!!!! }; .... please help other parameter can change but new p3d model dnot replace original!!!! Share this post Link to post Share on other sites
[aps]gnat 28 Posted March 18, 2012 You can't really replace the original, but you can make a copy of its config then use your own p3d class M4A1_x1: M4A1 { model = "\weapons\othermodel"; displayname = "My M4a1"; }; Share this post Link to post Share on other sites
Synide 0 Posted March 19, 2012 You can replace the 'original' with your model. But, usually you shouldn't do this because it may affect other addons that maybe reliant on that specific model etc. etc. You should do it the way Gnat mentions and create your own unique class variant name that inherits most of the properties/attributes of the 'original' BIS variant and then just overrides the portions you need to override. If you've taken this into account and still want to completely override the previous class implementation then doing something like the following would override the model.... class CfgPatches { class SyWeapons { units[]={}; weapons[]={}; requiredVersion=1.02; requiredAddons[]={"CAWeapons_E"}; }; }; class CfgWeapons { class M249; class M249_EP1 : M249 { scope=2; model="\sy\weapons\sy_m249"; picture="\ca\weapons_e\data\icons\m249_iron_ca.paa"; displayName="Sy M249"; irDistance=100; magazines[]={"100Rnd_556x45_M249","200Rnd_556x45_M249","30Rnd_556x45_Stanag","20Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","100Rnd_556x45_BetaCMag","30Rnd_556x45_G36","30Rnd_556x45_G36SD"}; }; }; Share this post Link to post Share on other sites