Jump to content
  • 0

in decorate: define weapon order seperately from weapon slot priorities?


OliveTree

Question

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 OliveTree

Share 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.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...