Skip to content

Spy disguise weapons not updating when swapping disguises to spy from another class [TF2items Manager] #12

@kingofings

Description

@kingofings

If a spy is on the other team and uses a revolver with modified attributes he will not be able to change the disguise weapon to that revolver. This also causes the weapons not to update. E.g. When disguised as a demoman and swapping disguise to spy the Grenade launcher will still render on the spy. If all of the spies weapons have modified attributes he is not able to change disguise weapons at all.

If your first disguise is a spy with the above conditions you will not be able to swap to any of the modified disguise weapons, and will only have a sapper. On some cases the disguise will fallback to a random players weapons like a rocket launcher and show as a T Pose.

This only affects spy disguises!

Steps to reproduce the behavior of the first issue:

  1. Modify any attributes of a spy weapon and let an enemy spy equip it (eg revolver)
  2. Disguise as any class except spy
  3. Swap disguise to spy

Steps to reproduce the behavior of the second issue:

  1. Modify any attributes of a spy weapon and equip it (eg revolver)
  2. Disguise as spy with an enemy spy with modified attributes

Expected behavior
Swap disguise weapons as normal, Don't render previous disguise weapons

Screenshots
grafik

Environment

  • Sourcemod 1.10.0.6502
  • Metamod 1.11.0-dev+1144
  • Ubuntu 20.04.2 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions