cbreedon 0 Posted June 17, 2007 Hi I very new to ArmA, never played OFP either... mainly Ghost recon. I have a question. How do you change things like the number of mags a soldiers has? I assume somehow I need to get into one of the pbo files somehow and change a number there. Any help would be appreciated Share this post Link to post Share on other sites
NeMeSiS 11 Posted June 17, 2007 First of all this should be in mission editing (Scroll down a bit first next time, if you assumed it was a config job then you should have posted this in the config editing section) Second: http://community.bistudio.com/wiki/addMagazine (Also check the related commands) Share this post Link to post Share on other sites
cbreedon 0 Posted June 18, 2007 I am so new that I didn't know what section... Is there a program that is used to edit the pbo files? So magazines aren't in the addons folders with weapons, they are in the missions? Is magazine capacity not tied to solders but to missions? I assume that it was a general factor not mission specific. Can you not edit the number of mag a soldier carries in the editor feature of the game? Share this post Link to post Share on other sites
W0lle 1052 Posted June 18, 2007 Moving. To unpack missions (and addons) I recommend you use cpbo from Kegetys ArmA Tools, you can find the latest version here. The capacity of magazines a soldier can carry is indeed tied to a soldier (they can carry up to 16 Magazines). How many you want to give them though can be set in the mission, either by using the addMagazine command in the init line of a unit, or by using a script that the unit is executing upon mission start. You can edit the number of magazines a soldier carry like I described above but not more then 16 mags as this is hardcoded (I think, some addon guru correct me if I'm wrong here). Share this post Link to post Share on other sites
NeMeSiS 11 Posted June 18, 2007 I am so new that I didn't know what section...Is there a program that is used to edit the pbo files? So magazines aren't in the addons folders with weapons, they are in the missions? Â Is magazine capacity not tied to solders but to missions? Â I assume that it was a general factor not mission specific. Â Can you not edit the number of mag a soldier carries in the editor feature of the game? The weapons/magazines a soldier carries by default (when you place it in the editor) is indeed decided by the pbo file. However you can change the stuff he has in the mission editor. First you need to remove all this weapons: type <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this In his init bar, now he will have no weapons whatsoever. Now if you want to give him weapons you first need to look here to see the weapon classnames. When you have found your weapons classname you can add it to the soldier: But remember, always add the magazines first or the weapon wont be loaded at the start. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addweapons "M4AIM"; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9" This will remove all his weapons and give him a m4 with iron sights and 3 magazines + 1 loaded M9. Now you dont need to make a new addon which makes the mission easier to use in MP (as noone needs to download an addon to play it), and you dont fill up the addons folder of people with unnecesary stuff. Share this post Link to post Share on other sites
cbreedon 0 Posted June 20, 2007 "removeallweapons this; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addweapons "M4AIM"; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9"" so is all this typed into the "initialization" box of the soldier whe you place him onto the map in the editor? or am I missing it? Share this post Link to post Share on other sites
NeMeSiS 11 Posted June 20, 2007 Yup, you can just copy and paste it. Share this post Link to post Share on other sites