MantisBT - Zandronum
View Issue Details
0000878Zandronum[All Projects] Bugpublic2012-06-14 00:552012-06-18 18:27
ZzZombo 
 
normalminoralways
closedno change required 
 
 
0000878: Players are able to use weapons which aren't bound to any weapon slots on thier PlayerClass
Playing DM with Zombie Horde files on stock maps I noticed that bots able to fire from weapons that I can't select (SSG, minigun, etc.). Class definition of default player for this mod overrides default slots so players can't use any not mod specific weapon. While investigating further, I pointed out that players that have auto weapon switch on pickup can use weapons upon it since the weapon is automatically selected no matter that player shouldn't be able to use it because of slots definition. In conclusion, auto weapon switch can switch weapons to such that player himself can't do.
Run attached file and switch to any DM map, for example, D2DM1. Pickup any weapon and you will see what I speak about.
No tags attached.
? skulltag_bug_example3.pk3 (423) 2012-06-14 00:55
/tracker/file_download.php?file_id=627&type=bug
Issue History
2012-06-14 00:55ZzZomboNew Issue
2012-06-14 00:55ZzZomboFile Added: skulltag_bug_example3.pk3
2012-06-14 20:50QentNote Added: 0003777
2012-06-15 12:27DuskSummary[Bug] Players are able to use weapons which aren't bound to any weapon slots on thier PlayerClass => Players are able to use weapons which aren't bound to any weapon slots on thier PlayerClass
2012-06-17 23:19ZzZomboNote Added: 0003802
2012-06-18 17:41KlofkacNote Added: 0003805
2012-06-18 18:26DuskNote Added: 0003806
2012-06-18 18:27DuskStatusnew => closed
2012-06-18 18:27DuskResolutionopen => no change required

Notes
(0003777)
Qent   
2012-06-14 20:50   
Removing slot definitions does not delete the weapons. This sounds like a bug with the mod to me, not with the engine.
(0003802)
ZzZombo   
2012-06-17 23:19   
What do you mean "delete weapons"?
(0003805)
Klofkac   
2012-06-18 17:41   
You can always swith to other weapons by "use weaponname" CCMD.
(0003806)
Dusk   
2012-06-18 18:26   
> Class definition of default player for this mod overrides default slots so players can't use any not mod specific weapon.
Overriding the weapons slots doesn't prevent the weapon from being picked up into the inventory. By overriding slots, you do exactly that, the use command can still be used to use the weapon.

If you desire to have a player class not be able to pick up a specific weapon, you can use a A_JumpIfInventory ("Token", 1, "FailState"), where Token is some inventory item only the forbidden player class has and FailState a dummy state terminated with a "fail" state terminator.

This is no bug - thus closing.