Mentrillum / Slender-Fortress-Modified-Versions

A modification of Team Fortress 2 based on the game Slender: The Eight Pages.
GNU General Public License v3.0
33 stars 22 forks source link

Snipers broken in PvP #7

Closed KitRifty closed 4 years ago

KitRifty commented 4 years ago

As of 1.5.5.4, the sniper rifles stopped applying damage in PvP. In the update, I saw that the arguments were switched around in PvP_GetWeaponCustomDamageType, and as a result, the call in Hook_WeaponGetCustomDamageType is passing in the arguments in the wrong order. Swapping the arguments should fix this easily.

Mentrillum commented 4 years ago

So while beta testing the new version, I was trying my hardest to find exactly what exactly the problem was when server owners experienced uncommon crashes, and I simply forgot to revert the arguments for PvP_GetWeaponCustomDamageType after finding the crash fix.