Limited number of weapons per player
Posted: Mon Aug 18, 2025 9:35 am
Hi.
My goal is to make different weapons for players, that is, for one player to have no more than four weapons to choose from:
close: fist, knife, axe, etc.
weak: pistol, sawed-off shotgun, etc.
medium: automatic rifle, submachine gun, shotgun, etc.
strong: plasma rifle, gauss rifle, bfg, etc.
How can this be done? Through different classes of players who have only one specific set of weapons?
Or does the inventory in zandronum also allow this and not pick up weapons if the slot is already occupied by some weapon?
I would appreciate help and working examples.
p.s. Is it possible to do it like it is implemented in ROTT, in which there can only be one strong weapon in the last slot and it can be changed if you pick up another one.
My goal is to make different weapons for players, that is, for one player to have no more than four weapons to choose from:
close: fist, knife, axe, etc.
weak: pistol, sawed-off shotgun, etc.
medium: automatic rifle, submachine gun, shotgun, etc.
strong: plasma rifle, gauss rifle, bfg, etc.
How can this be done? Through different classes of players who have only one specific set of weapons?
Or does the inventory in zandronum also allow this and not pick up weapons if the slot is already occupied by some weapon?
I would appreciate help and working examples.
p.s. Is it possible to do it like it is implemented in ROTT, in which there can only be one strong weapon in the last slot and it can be changed if you pick up another one.