AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   DHooks (Dynamic Hooks - Dev Preview) (https://forums.alliedmods.net/showthread.php?t=180114)

Alexmy 06-06-2022 08:20

Re: DHooks (Dynamic Hooks - Dev Preview)
 
My ubuntu 20 vps server doesn't see the extension. What am I doing wrong, maybe I need to install some extension?

Peace-Maker 06-10-2022 07:43

Re: DHooks (Dynamic Hooks - Dev Preview)
 
SourceMod only loads an extension if it's used by a plugin by default. Do you have a plugin installed which uses dhooks?

Alienmario 01-14-2024 16:45

Re: DHooks (Dynamic Hooks - Dev Preview)
 
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.

Peace-Maker 02-15-2024 02:19

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Ah, yes, we could add a flag to disable the caching of pre-hook parameters explicitly? It prevents more headache when it's on by default, but an opt-out sounds useful for union params like the variant_t you're describing. Would you mind creating an issue for this on github?


All times are GMT -4. The time now is 04:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.