You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the anniversary update, some functions were inlined on HL, TFC and probably CS.
Would it be possible to have the gamedll recompiled without inlining the functions?
I wrote some plugins where I hook certain functions, such as CFuncTank::StartControl , CFuncTank::StopControl, InstallGameRules etc.
And now that those functions are inlined, they do not appear in IDA/Ghidra/etc , making it impossible to create unique signatures to hook them.
For example, in my mapmanager nextmap plugin, I get the g_pGameRules pointer by getting the return value from InstallGameRules to then hook CHalfLifeMultiplay::ChangeLevel, in order to modify to which map the server will change, in maps such as dustbowl on TFC, where after you capture red's base the score hud is displayed and the server changes the map to the next one present in the mapcycle file. Instead of doing that, I set my own rules to change to what the server decided that the next map will be, either a random map that isn't one of the last played maps, or a mapvote map if one is setup.
This can also cause issues with plugins from AlliedModders that rely on the Orpheu module for functions that are otherwise impossible to call or hook. Unfortunately, this is also what prevents me and other people to upgrade the server(s) to the new anniversary builds.
Thanks :)
The text was updated successfully, but these errors were encountered:
Hello again,
After the anniversary update, some functions were inlined on HL, TFC and probably CS.
Would it be possible to have the gamedll recompiled without inlining the functions?
I wrote some plugins where I hook certain functions, such as CFuncTank::StartControl , CFuncTank::StopControl, InstallGameRules etc.
And now that those functions are inlined, they do not appear in IDA/Ghidra/etc , making it impossible to create unique signatures to hook them.
For example, in my mapmanager nextmap plugin, I get the g_pGameRules pointer by getting the return value from InstallGameRules to then hook CHalfLifeMultiplay::ChangeLevel, in order to modify to which map the server will change, in maps such as dustbowl on TFC, where after you capture red's base the score hud is displayed and the server changes the map to the next one present in the mapcycle file. Instead of doing that, I set my own rules to change to what the server decided that the next map will be, either a random map that isn't one of the last played maps, or a mapvote map if one is setup.
This can also cause issues with plugins from AlliedModders that rely on the Orpheu module for functions that are otherwise impossible to call or hook. Unfortunately, this is also what prevents me and other people to upgrade the server(s) to the new anniversary builds.
Thanks :)
The text was updated successfully, but these errors were encountered: