FortyTwoFortyTwo / Randomizer

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

Use memory search instead of offset to apply patches #83

Closed FortyTwoFortyTwo closed 3 years ago

FortyTwoFortyTwo commented 3 years ago

CalculateMaxSpeed patches broke twice from TF2 updates in span of ~4 months, both seemly unchanged function. Offset doesn't seems to be a good solution for the long term if these kind of updates would keep break patches.

Memory searches is used instead. These searches from gamedata should work for all TF2 versions >1 year ago, so it should rarely break from future TF2 update.