FortyTwoFortyTwo / Randomizer

TF2 plugin that randomizes player loadout in any imaginable combinations
GNU General Public License v3.0
35 stars 15 forks source link

Resupplying removes wearables #77

Closed doomy64 closed 2 years ago

doomy64 commented 2 years ago

Wearables (cosmetic and weapons) get cleared everytime the player touches a resupply locker. Resupplying again restores the weapons, but cosmetics are still removed.

FortyTwoFortyTwo commented 2 years ago

ValidateWearables is used to set wearables as spy's disguise cosmetic so TF2 doesn't delete it. However 2017 leaked code shows IsPlayerClass is used, but gone in latest bin decompile. I imagine TF2 devs at one point changed it, or related to #62.

FortyTwoFortyTwo commented 2 years ago

Getting this issue, but for weapons instead.

As engineer, having B.A.S.E jumper in primary and/or Shotgun in secondary removes its weapon. Weirdly having B.A.S.E jumper in secondary and/or Shotgun in primary as engineer does not have this issue. Need to look more on which weapons destroys or not.