View Single Post
Kinsi
Senior Member
Join Date: Apr 2013
Old 05-19-2017 , 14:44   Re: [CS:GO] Calling source's internal Lag-Compensation functions?
Reply With Quote #6

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(hConfigSDKConf_Signature"StartLagCompensation");
PrepSDKCall_AddParameter(SDKType_CBasePlayerSDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_VectorSDKPass_ByRef);
PrepSDKCall_AddParameter(SDKType_QAngleSDKPass_ByRef);
PrepSDKCall_AddParameter(SDKType_FloatSDKPass_Plain);
g_hStartLagCompensationCall EndPrepSDKCall();

float tmporigin1[3];
float tmporigin2[3];
float tmporigin3[3];

GetEntDataVector(clientCBaseEntity_vecOrigintmporigin3);

SDKCall(g_hStartLagCompensationCallclient0tmporigin1tmporigin22.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.

Last edited by Kinsi; 05-19-2017 at 15:52.
Kinsi is offline