AMX MOD X has a powerful module that allows you to call / hook game functions, among many other obscene things. Its called Orpheu
https://forums.alliedmods.net/showthread.php?t=116393.
For example, you can hook
PHP Code:
void CBaseMonster :: RadiusDamage(entvars_t* pevInflictor, entvars_t* pevAttacker, float flDamage, int iClassIgnore, int bitsDamageType )
with a simple plugin,
PHP Code:
public plugin_init( )
{
// ...
OrpheuRegisterHook( OrpheuGetFunction( "RadiusDamage", "CBaseMonster" ), "On_RadiusDamage_Pre", OrpheuHookPre )
}
public OrpheuHookReturn:On_RadiusDamage_Pre( pevCaller, pevInflictor, pevAttacker, Float:flDamage, iClassIgnore, bitsDamageType )
{
// ...
return OrpheuSupercede
}
I am writing this message to ask if there is any way to do this in SourceMod. I want to call some CS:GO functions.
__________________