Modding the small ammo pickups

Started by LinkHero, October 24, 2016, 09:18:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LinkHero

The small ammo pickups in FC2 can be modded to give out any amount of ammo, instead of the insanely small amounts they give out.

The relevant values are in 28_pickups.xml in the worlds1 folder.
Tutorial for other new modders (like me  ;))
1. Copy the 28_pickups.xml file from the libraries\world1 directory to the mymod directory. Make appropriate changes in the patch.xml file.
2. Download Wobat's xml decrypter and run the 28_pickups.xml file through it.
3. In the (now easier to read) file, press (Ctrl   F) and find "Ammo.Small_Ammo_Pickup" (Without the apostrophes). It's on the fourth line, btw.
4. Now find "AmmoEntry" (again, without the apostrophes). You should now find yourself at a long list of similar looking codes,of length 5 lines each, each beginning with "<object hash=" and ending with "</object>". On the the third line of each code set, there is a type="hash" value, followed by a type="BinHex"value. The types of values, alon with what it represents, are given in the following table
     Hash value          BinHex value          Type
     6D6540FA           FA40656D               Pistols (Star45)
     BC6782FC           FC8267BC              Assault Rifles (AK47)
     7D6BD5F2           F2D56B7D              Sniper Rifles (M1903)
     EEAE53E1           E153AEEE              Shotguns  (SPAS12)
     AA73EE0A           0AEE73AA              Submachineguns (MAC10)
     BD090A47           470A09BD              Light Machine Guns (PKM)
     FC2096BC           BC9620FC              Dart Rifle.
5. The number below the ammo type (after the "Int32") specifies the ammo to be added. Change it to whatever your heart desires. Just make sure it's an integer.
6. Repeat the same for "Ammo.Small_Explosive_Pickup","Ammo.Small_Fuel_Pickup".
The relevant tables are:
Explosive:
     4EE9BFD6           D6BFE94E              Mortars
     CEB9BB1E           1EBBB9CE             Rocket Launchers (RPG-7)
     704CA95D           5DA94C70             M-79 Grenade Launcher
     EA12131E           1E1312EA              IED
     E710123D           3D1210E7             MGL-140 Grenade Launcher
There is a separate category for grenades below all these entries. BE SURE TO CHANGE IT.
Fuel:
     31BD6FE9           E96FBD31              LPO50 Flamethrower
     C86412FF           FF1264C8               Flare gun
There is a separate section for molotovs under all these.
Successfully tested for machine gun, rifle, submachinegun ammo.
I used to have an open mind, but then my brain fell out.
-Random Person.

PZ

Nice w@&k, LinkHero  :-X +1 for the detailed post

nexor


LinkHero

Update:
I set the frespawn time for the pickups to 0.1 (like was done for the gold AK47 in a previous post). Now, the pickups respawn, but won't let me pick them up a second time. Can someone help me on this one ??
The objective is to replenish entire ammo inventory from one small pickup, entire eplosive inventory from an explosive pickup, etc.
I used to have an open mind, but then my brain fell out.
-Random Person.

nexor

   ???  You're on your own on this one mate  :-D

OWGKID

I have done it too, but I don't know which parameter to change. Maybe take a closer look through the code?
LEGACY

Tags:
🡱 🡳

Similar topics (5)