View Single Post
Alienmario
Senior Member
Join Date: Aug 2013
Old 01-14-2024 , 16:45   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #883

I believe the caching of parameters between pre and post hooks may have imposed a limit for few usecases.

Take for example the function CBaseEntity::AcceptInput(char const*, CBaseEntity*, CBaseEntity*, variant_t, int)
This function converts the value inside the variant_t union parameter to the correct type based on the entity's datadesc.
DHooks will always provide the value from the start of the hook, which will usually be a string, and not the converted type.

In case this "fix" is only applied on Windows, this would also cause inconsistencies between platforms.

Last edited by Alienmario; 01-14-2024 at 16:45.
Alienmario is offline