nosoop / SM-TFCustomAttributeStarterPack

A collection of plugins to be used with the TF2 Custom Attribute framework.
MIT License
19 stars 10 forks source link

keep_disguise_on_attack detour is not supported on Windows #21

Closed nosoop closed 3 years ago

nosoop commented 4 years ago

Convert keep_disguise_on_attack to use virtual hooks (or write something that lets the game access that attribute class)

keep disguise on attack is currently only supported on Linux as it's easy to find a signature for it. This originally used a signature to avoid having to hook every weapon individually on spawn.

Windows doesn't provide a unique signature for this, so it needs to be migrated over.

nosoop commented 3 years ago

I think this will be superceded and removed in the near future; injecting the actual unused attribute into the runtime schema works and has the same effect.

(This would be the method implied by "writ[ing] something that lets the game access that attribute class".)