Jump to content
Sign in to follow this  
jonstyle

Replacing original units weapons

Recommended Posts

Hi

Wich file do I dePBO to change the stock soldiers weapons? Getting tired of changing the loadouts of each unit in the editor.

And also, in Flashpoint and Arma1 I have used windows notepad to open and change config files and it has worked in orderly fashion. But in Arma2 when I open config files, the text is all cramped up and really difficult to read. What text reader are you guys using?

Thanks

Jonstyle:confused:

Share this post


Link to post
Share on other sites

To change default loadouts for a class, simply override the following parts of the class, e.g.:

class <SoldierClassName>
{
   weapons[] = {"M4A1_RCO_GL", "M9", "ItemGPS", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
   magazines[] = {"15Rnd_9x19_M9", "15Rnd_9x19_M9", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"};
   respawnWeapons[] = {"M4A1_RCO_GL", "M9", "ItemGPS", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
   respawnMagazines[] = {"15Rnd_9x19_M9", "15Rnd_9x19_M9", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenade_West", "HandGrenade_West", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"};
};

As for the 'cramped up' text, I presume you're trying to open a config.bin. If so, try using something like Eliteness to open the file properly :) You don't need to binarise your own config, you can simply name it config.cpp.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×