View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-06-2022 , 12:43   Re: DHooks getting param
Reply With Quote #8

I guess you setup the detour arguments as "objectptr" and use the various natives available, such as:


PHP Code:
DHookGetParamObjectPtrVar(hParams10ObjectValueType_Booltrue);
DHookGetParamObjectPtrVar(hParams20ObjectValueType_Float);
int a1 DHookGetParamObjectPtrVar(hParams148ObjectValueType_EhandlePtr); 
PHP Code:
                "arguments"
                
{
                    
"a1"
                    
{
                        
"type"    "objectptr"
                    
}
                    
"a2"
                    
{
                        
"type"    "objectptr"
                    

__________________

Last edited by Silvers; 02-06-2022 at 12:44.
Silvers is offline