mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[bot] Implement/match CNetGame::FUNC_5(...)
This commit is contained in:
parent
3384a89aa3
commit
1e9130f393
@ -872,6 +872,34 @@ void CNetGame::SendCommand(char *szCommand)
|
||||
GetRakClient()->RPC(RPC_ServerCommand,&bsParams,HIGH_PRIORITY,RELIABLE,0,false);
|
||||
}
|
||||
|
||||
DWORD *GLOBAL_7;
|
||||
INCAR_SYNC_DATA *GLOBAL_6;
|
||||
DWORD GLOBAL_5;
|
||||
|
||||
void CNetGame::FUNC_5(FILE *a1, DWORD a2)
|
||||
{
|
||||
DWORD i=0;
|
||||
|
||||
if(0x43 * (a2 / 0x43) != a2)
|
||||
{
|
||||
//logprintf("NPC: Total failure. File doesn't have correct data alignment for driver recording.");
|
||||
exit(1);
|
||||
}
|
||||
GLOBAL_5 = a2 / 0x43;
|
||||
if(GLOBAL_6)
|
||||
free(GLOBAL_6);
|
||||
if(GLOBAL_7)
|
||||
free(GLOBAL_7);
|
||||
GLOBAL_6 = (INCAR_SYNC_DATA *)calloc(1, sizeof(INCAR_SYNC_DATA) * GLOBAL_5);
|
||||
GLOBAL_7 = (DWORD *)calloc(1, sizeof(DWORD) * GLOBAL_5);
|
||||
while(!feof(a1))
|
||||
{
|
||||
fread(&GLOBAL_7[i], 1, sizeof(DWORD), a1);
|
||||
fread(&GLOBAL_6[i], 1, sizeof(INCAR_SYNC_DATA), a1);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
void CNetGame::StopRecordingPlayback()
|
||||
{
|
||||
field_1DE = 0;
|
||||
|
@ -121,6 +121,8 @@ public:
|
||||
float GetMyZAngle();
|
||||
void SetMyZAngle(float fAngle);
|
||||
|
||||
void FUNC_5(FILE *a1, DWORD a2);
|
||||
|
||||
void StopRecordingPlayback();
|
||||
void PauseRecordingPlayback();
|
||||
void ResumeRecordingPlayback();
|
||||
|
Loading…
Reference in New Issue
Block a user