Well, either my sig is wrong, Valve changed the code yet another time in the meanwhile, or i just have no idea what i am doing.
Plattform: Windows.
Sig: \x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x48\x56\x8B\ xF1\xC7\x44\x24\x48\x00\x00\x00\x00 (StartLagCompensation)
Code:
PHP Code:
StartPrepSDKCall(SDKCall_Static);
PrepSDKCall_SetFromConf(hConfig, SDKConf_Signature, "StartLagCompensation");
PrepSDKCall_AddParameter(SDKType_CBasePlayer, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_Vector, SDKPass_ByRef);
PrepSDKCall_AddParameter(SDKType_QAngle, SDKPass_ByRef);
PrepSDKCall_AddParameter(SDKType_Float, SDKPass_Plain);
g_hStartLagCompensationCall = EndPrepSDKCall();
float tmporigin1[3];
float tmporigin2[3];
float tmporigin3[3];
GetEntDataVector(client, CBaseEntity_vecOrigin, tmporigin3);
SDKCall(g_hStartLagCompensationCall, client, 0, tmporigin1, tmporigin2, 2.0);
As i have no idea what the Vector or QAngle are meant to represent i just passed empty ones thinking they will be filled with some info as they are by reference but the call results in the server crashing.