AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Hook SH_MCALL (https://forums.alliedmods.net/showthread.php?t=335350)

kadet.89 11-27-2021 13:34

Hook SH_MCALL
 
I have a "Weapon_Drop" hook in my extension.
If I call the function this way:

PHP Code:

SH_MCALL(baseEntityWeapon_Drop)(weaponvec1vec2); 

it works, but non of the hooks of this function in other extensions and in plugins get fired.

How can I make reliable hooks which will intercept all calls of the hooked functions, even ones made with SH_MCALL ?
I have to check player weapons in gameframe to be sure that my plugins and extensions stay consistend with the entity conditions. A would like to get rid of these checks and use hooks instead.


All times are GMT -4. The time now is 11:25.

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