Announcement

Collapse
No announcement yet.

questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    questions

    i have 2 questions...

    1. how to make my weapons overwrite weapons in a locker.. i already know how to replace the pickup weapons

    2. im trying to replace the classic sniper rifle with my new one but it wont replace it :sour:

    :haha:

    #2
    Hey dude:
    Code:
    function bool CheckReplacement( Actor Other, out byte bSuperRelevant )
    {
        local int i;
        local WeaponLocker L;
    
        bSuperRelevant = 0;
    
        if ( xWeaponBase(Other) != None )
        {
            if ( string( xWeaponBase(Other).WeaponType ) ~= "XWeapons.Minigun" )
            {
                xWeaponBase(Other).WeaponType = class'AO-Weapons.AOLaserCannon';
                return false;
            }
        }
        else if ( WeaponPickup(Other) != None )
        {
            if ( string(Other.Class) ~= "XWeapons.MinigunPickup" && bLaserCannon )
            {
                ReplaceWith( Other, "AO-Weapons.AOMiniPickup" );
                return false;
            }
        }
        else if ( WeaponLocker(Other) != None )
        {
            L = WeaponLocker(Other);
    
            for (i = 0; i < L.Weapons.Length; i++)
            {
                if ( string( L.Weapons[i].WeaponClass ) ~= "XWeapons.Minigun" )
                    L.Weapons[i].WeaponClass = class'AO-Weapons.AOLaserCannon';
            }
        }
        else if ( UTAmmoPickup(Other) != None )
        {
            if ( string( UTAmmoPickup(Other).InventoryType ) ~= "XWeapons.MinigunAmmo" )
            {
                ReplaceWith( Other, "AO-Weapons.AOMiniAmmoPickup" );
                return false;
            }
        }
    
        return true;
    }
    Just Change The Appropreate Classes And Strings And It Wil lReplaec Everything You Need! (TOO BAD IF TYPIN LIKE THAT ANNOYS ANYONE! )

    Comment


      #3
      Yes Your Typing Does Bother Me!!! lol ill try that later tonight

      Comment


        #4
        LATER!!!??? WHY!!!??? NO IT NOW! NOW NOW NOW! lol

        Comment

        Working...
        X