Hi everyone,
I'm trying to call
UTIL_BloodDecalTrace(), but nothing happens (Not even a crash !).
The prototype is:
PHP Code:
void UTIL_BloodDecalTrace(CGameTrace *pTrace, int iBloodColor);
For the initialization, I did:
PHP Code:
// @_Z20UTIL_BloodDecalTraceP10CGameTracei
StartPrepSDKCall(SDKCall_Static);
PrepSDKCall_SetFromConf(hLibrary, SDKConf_Signature, "UTIL_BloodDecalTrace");
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Pointer); // Not sure about this one!!
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
gl_util_fctBloodDecalTrace = EndPrepSDKCall();
For the call, I did:
PHP Code:
Handle hTrace = TR_TraceRayEx(vStart, vEnd, MASK_SOLID, RayType_EndPoint);
SDKCall(gl_util_fctBloodDecalTrace, hTrace, 247);
I got TR_GetFraction() < 1.0, so hTrace should be ok.
----------------------
What's the issue? Is it possible to have an argument "trace_t *" with SDKCall?
I made the assumption that
CGameTrace * == trace_t * for CS:GO, is it wrong?
(I found in SDK 2013:
https://github.com/ValveSoftware/sou...ametrace.h#L92)
Thanks!
__________________