FortyTwoFortyTwo / Randomizer

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

All players have 2 capture rate #76

Closed doomy64 closed 2 years ago

doomy64 commented 2 years ago

Players will cap points with scout's rate regardless of weapons and class. Some quick and dirty testing showed that g_iAllowPlayerClass increments by 2 each time the player resupplies, so there's probably a missing decrement somewhere.

FortyTwoFortyTwo commented 2 years ago

Quick look seems to be from ValidateWearables hook, increment in both pre and post when there meant to be a decrement in post. https://github.com/FortyTwoFortyTwo/Randomizer/blob/9e89d3f46386fc7c0b0536c319913f01f57f39f5/scripting/randomizer/dhook.sp#L485

FortyTwoFortyTwo commented 2 years ago

Can confirm, fixed it