altering the pbo file to add extra weapons |
altering the pbo file to add extra weapons |
Feb 6 2010, 14:24
Post
#1
|
|
Junior Member Group: Members Posts: 25 Joined: 21-September 07 Member No.: 1,258 |
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 |
|
|
Feb 6 2010, 16:07
Post
#2
|
|
Gee, I wish we had one of them doomsday machines. Group: Moderators Posts: 2,037 Joined: 13-November 06 From: Wales Member No.: 155 |
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. -------------------- The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you Site Issues Thread - Complain about site issues here. We might even fix them! Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly". QUOTE(Major Mike Shearer) We can categorically state that we have not released man-eating badgers into the area. QUOTE(Brace Belden) A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one. |
|
|
Lo-Fi Version | Time is now: 24th April 2024 - 23:13 |