punteroo / TF2-Item-Plugins

SourceMod plugins for TF2 that allow players to manage their weapons (australium, festivizer, unusuals, spells, war paints) and cosmetics (unusuals, paints, spell paints, halloween spells). Now with SQLite support.
GNU General Public License v3.0
31 stars 4 forks source link

m_bDisguiseWeapon weapons are given to disguised spies with set overrides for different classes #16

Closed punteroo closed 3 years ago

punteroo commented 3 years ago

Describe the bug Setting weapon overrides for any class will cause the player with overrides set to, when disguised as said class, obtain the overriden weapons if their disguise target has said weapon equipped currently (causing TF2Items_OnGiveNamedItem to fire for disguise weapons too). Could be categorized as some sort of "item index masking".

To Reproduce Steps to reproduce the behavior:

  1. Set overrides on Demoman while having equipped The Iron Bomber and The Stickybomb Launcher
  2. Change class to Spy
  3. Disguise as Demoman (Any Team)
  4. You'll be given your overriden Demoman weapons as a Spy

Screenshots image

punteroo commented 3 years ago

This has been fixed in latest v3.1.3 release: https://github.com/punteroo/TF2-Item-Plugins/releases/tag/v3.1.3