Announcement

Collapse
No announcement yet.

PS3 can't switch weapons with redeemer in inventory...

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

    #16
    How would i do that? Just remember, I don't want to replace any weapons...

    Comment


      #17
      So, I think here is what you're searching for

      Code:
      simulated function AdjustWeapon(int NewOffset)
      {
      	local Weapon CurrentWeapon;
      	local array<UTWeapon> WeaponList;
      	local int i, Index;
      
      	// don't allow multiple weapon switches very close to one another (seems to happen with some mouse wheels)
      	if (WorldInfo.TimeSeconds - LastAdjustWeaponTime < 0.05)
      	{
      		return;
      	}
      	LastAdjustWeaponTime = WorldInfo.TimeSeconds;
      
      	CurrentWeapon = UTWeapon(PendingWeapon);
      	if (CurrentWeapon == None)
      	{
      		CurrentWeapon = UTWeapon(Instigator.Weapon);
      	}
      
         	GetWeaponList(WeaponList,,, true);
         	if (WeaponList.length == 0)
         	{
         		return;
         	}
      
      	for (i = 0; i < WeaponList.Length; i++)
      	{
      		if (WeaponList[i] == CurrentWeapon)
      		{
      			Index = i;
      			break;
      		}
      	}
      
      	do
      	{
      	   	Index += NewOffset;
      		if (Index < 0)
      		{
      			Index = WeaponList.Length - 1;
      		}
      		else if (Index >= WeaponList.Length)
      		{
      			Index = 0;
      		}
      	// on console, prevweapon/nextweapon skips inventory groups 0 and 1 because they have their own buttons
      	} until (!WorldInfo.bUseConsoleInput || Index == WeaponList.length - 1 || WeaponList[Index].InventoryGroup > 1);
      
      	if (Index >= 0)
      	{
      		SetCurrentWeapon(WeaponList[Index]);
      	}
      }
      But:

      Code:
      // on console, prevweapon/nextweapon skips inventory groups 0 and 1 because they have their own buttons
      As it seems, you can switch super weapons (slot 0), just not by scrolling them because they made a direct key to make it easier/faster.

      If you still wanna change it, here is the start point. Hope it helps.

      PS.: I don't have a console, how is it the Input map? I need to know it to make some tests. Thanks.

      Comment


        #18
        I don't want to switch weapon locations. And i don't want to replace weapons...

        Comment


          #19
          Originally posted by Oblivion2500 View Post
          I don't want to switch weapon locations. And i don't want to replace weapons...
          Code:
          // on console, prevweapon/nextweapon skips inventory groups 0 and 1 because they have their own buttons

          Comment

          Working...
          X