So I'm working on a mod with a custom weapon in the 4 slot alongside a modified version of the chaingun. I'm trying to make it so that when scrolling with nextweapon and previousweapon the order of weapons goes: -> pistol, shotgun, SSG, modifiedchaingun, customweapon, etc ->
But I also want it to be the case that if the player selects the weapon 4 slot, it pulls up the chaingun first, rather than this custom weapon.
If it helps, this would be the same problem as if I wanted to make the 3 key pull the regular shotgun up first, rather than the SSG as it does by default, but to maintain the same weapon order (pistol, shotgun, ssg, etc)
I have a custom playerclass with these modified weapons in them. It looks like this:
I also have tinkered with the "Weapon.SlotPriority" property for both the custom weapon and the modified chaingun.
For the custom weapon, it has slotpriority 1, and the chaingun has slotpriority 0.
The effect this has in-game is that pressing 4 pulls up the chaingun first (which is what I want), but selecting the next weapon after the SSG brings up the custom weapon, which is not what I want. I want it to also bring up the chaingun.
Switching the values for both slotpriorities has no effect one way or the other....I feel pretty stupid here. What am I missing?
Question
OliveTree
So I'm working on a mod with a custom weapon in the 4 slot alongside a modified version of the chaingun. I'm trying to make it so that when scrolling with nextweapon and previousweapon the order of weapons goes: -> pistol, shotgun, SSG, modifiedchaingun, customweapon, etc ->
But I also want it to be the case that if the player selects the weapon 4 slot, it pulls up the chaingun first, rather than this custom weapon.
If it helps, this would be the same problem as if I wanted to make the 3 key pull the regular shotgun up first, rather than the SSG as it does by default, but to maintain the same weapon order (pistol, shotgun, ssg, etc)
I have a custom playerclass with these modified weapons in them. It looks like this:
Player.WeaponSlot 1, "Chainsaw", "Fist" Player.WeaponSlot 2, "Pistol2" Player.WeaponSlot 3, "Shotgun2", "SuperShotgun2" Player.WeaponSlot 4, "CustomWeapon", "Chaingun2" Player.WeaponSlot 5, "RocketLauncher2" Player.WeaponSlot 6, "PlasmaRifle2" Player.WeaponSlot 7, "BFG90002"
I also have tinkered with the "Weapon.SlotPriority" property for both the custom weapon and the modified chaingun.
For the custom weapon, it has slotpriority 1, and the chaingun has slotpriority 0.
The effect this has in-game is that pressing 4 pulls up the chaingun first (which is what I want), but selecting the next weapon after the SSG brings up the custom weapon, which is not what I want. I want it to also bring up the chaingun.
Switching the values for both slotpriorities has no effect one way or the other....I feel pretty stupid here. What am I missing?
Edited by OliveTreeShare this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.