I figured it was something like that... That's why I was thinking a keyconf command to wipe out all slot settings would be useful, that way you could use player class slots in your weapon mod and people still could use it with other older wads with slot definitions.randi wrote:KEYCONF definitions need to override player class definitions, or they wouldn't work at all. Since it doesn't specify what player class it should apply to, it has to apply to all of them.bagheadspidey wrote:Here's the behavior I'd expect: slot definitions in WeaponsPwad will override those in MegaPwad.
KEYCONF trouble with SetSlot
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- bagheadspidey
- Posts: 1490
- Joined: Sat Oct 20, 2007 10:31 pm
- Contact:
Re: KEYCONF trouble with SetSlot
Re: KEYCONF trouble with SetSlot
If WeaponsPwad's sole purpose is to replace a player's arsenal, then I think KEYCONF can still be a valid way to do it. (I hope I don't regret saying that!)
If you just want to add weapons and don't care if the old ones are still slotted, however, consider using Weapon.SlotNumber and Weapon.SlotPriority to let the weapon decide where it wants to go. No custom classes or KEYCONF required.
If you just want to add weapons and don't care if the old ones are still slotted, however, consider using Weapon.SlotNumber and Weapon.SlotPriority to let the weapon decide where it wants to go. No custom classes or KEYCONF required.
- bagheadspidey
- Posts: 1490
- Joined: Sat Oct 20, 2007 10:31 pm
- Contact:
Re: KEYCONF trouble with SetSlot
Thanks for replying, Randi. I haven't seen Weapon.SlotNumber and Weapon.SlotPriority before, that looks pretty useful. If you change your mind about this later, there's a post in the features suggestion thread you can check off your list ;)
Re: KEYCONF trouble with SetSlot
But now that there are default weapon slots in mapinfo's gameinfo thing, this could allow to remove the player.weaponslot things from the player classes and give player.weaponslot the priority over keyconf, right?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49226
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: KEYCONF trouble with SetSlot
No. KEYCONF is merely for backwards compatibility and has to be added last.
The MAPINFO stuff won't change anything. It is merely used to initialize the slots for player classes that don't define their own ones.
The MAPINFO stuff won't change anything. It is merely used to initialize the slots for player classes that don't define their own ones.