Change weapon slot selection order without changing scroll's
Posted: Mon Apr 24, 2017 5:04 pm
There are two main ways to select weapons in ZDoom, one is with next or previous weapon bindings and another is with direct binds to the slots (i.e. weapon slot 1 to give you weapon A and weapon B). I have noticed that the order you scroll though the weapons using next/previous is matched to the order set up in the player class using the slots there. Pressing a key for the same slot also abides by this order set within the player class.
However, I want to change this behavior so that I can set a direct bind to bring up the other weapon first and not in the order in the player class. In my mod I have these slots assigned:
This means when scrolling with next/previous the order is Chainsaw, Fist, Pistol. I want this to stay but only for scrolling. If I were to press my binding for weapon slot 1, it will also give me the fist. I want to change this so that pressing slot 1 gives me the first weapon that being the Chainsaw but leave the scroll order unchanged.
I tried doing Weapon.SlotPriority 0 for the Fist and then Weapon.SlotPriority 1 for the Chainsaw but it didn't change anything, which is confusing since the wiki makes it sound like Weapon.SlotPriority is exactly what I needed but apparently not.
Is this even possible to do?
However, I want to change this behavior so that I can set a direct bind to bring up the other weapon first and not in the order in the player class. In my mod I have these slots assigned:
Code: Select all
Player.WeaponSlot 1, "64Chainsaw", "64Fist"
Player.WeaponSlot 2, "64Pistol"
Player.WeaponSlot 3, "64Shotgun", "64SuperShotgun"
Player.WeaponSlot 4, "64Chaingun"
Player.WeaponSlot 5, "64RocketLauncher"
Player.WeaponSlot 6, "64PlasmaRifle"
Player.WeaponSlot 7, "64BFG9000"
Player.WeaponSlot 8, "64Unmaker"
I tried doing Weapon.SlotPriority 0 for the Fist and then Weapon.SlotPriority 1 for the Chainsaw but it didn't change anything, which is confusing since the wiki makes it sound like Weapon.SlotPriority is exactly what I needed but apparently not.
Is this even possible to do?