Jump to content

Photo
- - - - -

Replacement Config


  • Please log in to reply
29 replies to this topic

#1 Angus S

Angus S

    Staff Sergeant

  • Members
  • 208 posts

Posted 05 February 2012 - 06:38

Is their a simple tutorial on how to create weapon replacement config or a template for one?

#2 Max Power

Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

Posted 05 February 2012 - 10:01

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?
Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

#3 Angus S

Angus S

    Staff Sergeant

  • Members
  • 208 posts

Posted 05 February 2012 - 10:48

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

#4 Max Power

Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

Posted 05 February 2012 - 11:34

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.bis...ence#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.
Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

#5 Angus S

Angus S

    Staff Sergeant

  • Members
  • 208 posts

Posted 05 February 2012 - 11:42

cool thanks so much for your help

#6 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 22 February 2012 - 09:46

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?

#7 -FRL-Myke

-FRL-Myke

    Moderator

  • Moderators
  • 6571 posts

Posted 22 February 2012 - 10:19

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.
Posted Image

#8 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 22 February 2012 - 10:33

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"};
};

#9 Max Power

Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

Posted 22 February 2012 - 10:40

If you paste into some code tags, I think you can keep your tabbing.
Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

#10 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 22 February 2012 - 10:50

How can I do it?

#11 Max Power

Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

Posted 22 February 2012 - 11:42

(code)
pasted stuff
(/code)

only with square brackets []
Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

#12 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 24 February 2012 - 11:37

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"};
	};


#13 -FRL-Myke

-FRL-Myke

    Moderator

  • Moderators
  • 6571 posts

Posted 24 February 2012 - 15:36

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".

Posted Image

#14 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 24 February 2012 - 18:24

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.

#15 W0lle

W0lle

    Lieutenant Colonel

  • Members
  • 8235 posts

Posted 24 February 2012 - 18:55

units = {};
weapons = {};

must be:
units[] = {};
weapons[] = {};


Same goes for each weapons, magazines, respawnweapons and respawnmagazines line in every unit class

#16 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 25 February 2012 - 13:22

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;
		};
	};


#17 -FRL-Myke

-FRL-Myke

    Moderator

  • Moderators
  • 6571 posts

Posted 25 February 2012 - 14:56

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.
Posted Image

#18 Max Power

Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

Posted 25 February 2012 - 19:10

@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.
Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

#19 -FRL-Myke

-FRL-Myke

    Moderator

  • Moderators
  • 6571 posts

Posted 25 February 2012 - 19:33

Easy rule: if after a = comes a {, it needs [] before the = ;)

correct:
array[] = {};

wrong:
array = {};
Posted Image

#20 Gerwazy

Gerwazy

    Sergeant

  • Members
  • 117 posts

Posted 26 February 2012 - 09:53

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?