Help - Search - Members - Calendar
Full Version: altering the pbo file to add extra weapons
Armed Assault Info Forums > English > Free spins in web3 NFT roulette! [https://stepn.cc/] > Addons - Works in Progress
british
hi i want to open a pbo just to custom the weapon load out of the unit. How can i do this? any help would be great
thanks
D@V£
Before attempting this, backup the original PBO, especially if it is one of the default files.

1. Unpack the pbo your pbo program of choice.
2. Open the file config.cpp (If you see the file "config.bin" instead, config is binarized, so you're out of luck)
3. Find the relevant class for the unit you want to edit
4. Find the weapons[], magazines[], respawnWeapons[] and respawnMagazines[] sections, and edit them accordingly, for example, if you wanted to swap a soldier with an AK74 to have an M4A1, change this:
CODE
        weapons[] = {"AK_74","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        magazines[] = {"30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","HandGrenade_East","HandGrenade_East"};
        respawnWeapons[] = {"AK_74","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnMagazines[] = {"30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","HandGrenade_East"};


into this:
CODE
        weapons[] = {"M4A1","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_East","HandGrenade_East"};
        respawnWeapons[] = {"M4A1","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio"};
        respawnMagazines[] = {"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenade_East"};

5. Repack the PBO.
6. ???
7. Profit!

This is the way of doing exactly as you've asked, but I'd recommend instead using a replacement mod. Especially if you're planning on editing any of the vanilla units. Unfortunately I'm not too sure how you'd go about doing that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.