I wanna do a code like this:
...except I want to replace ammo instead of weapons. I assume it works exactly the same except I need the right class for ammo types. In other words, I assume I can just replace 'xWeaponBase' with 'xAmmoPickup' or something like that, but I need to know the right word. Also, is there a way to do this for weapon lockers as well? It would save me a lot of room in my uc files.
Code:
if ( xWeaponBase(Other) != None )
{
for ( i=0; i<8; i++ )
if ( xWeaponBase(Other).WeaponType == OriginalClasses[i] )
{
xWeaponBase(Other).WeaponType = ReplacementClasses[i];
return true;
}