[bot] Implement n_ResumeRecordingPlayback(...)

* Implement `CNetGame::ResumeRecordingPlayback()`
This commit is contained in:
RD42 2024-06-29 22:41:19 +08:00
parent b1920ee36e
commit 5d75008e6d
3 changed files with 17 additions and 6 deletions

View File

@ -590,4 +590,12 @@ void CNetGame::PauseRecordingPlayback()
field_1FA = 11;
}
void CNetGame::ResumeRecordingPlayback()
{
field_1FE = 9;
field_1DE = 1;
if(field_1FA == -1)
field_1EA += GetTickCount() - field_1F6 + 100;
else
field_1FA = -1;
}

View File

@ -62,10 +62,12 @@ public:
DWORD m_dwMapIcon[100];
int field_1DA;
int field_1DE;
int field_1E2;
char _gap1E6[12];
FILE *field_1E2;
char _gap1E6[4];
int field_1EA;
char _gap1EE[4];
int field_1F2;
char _gap1F6[4];
int field_1F6;
int field_1FA;
int field_1FE;
@ -104,6 +106,7 @@ public:
void StopRecordingPlayback();
void PauseRecordingPlayback();
void ResumeRecordingPlayback();
};
//----------------------------------------------------

View File

@ -108,8 +108,8 @@ static cell AMX_NATIVE_CALL n_PauseRecordingPlayback(AMX *amx, cell *params)
// native ResumeRecordingPlayback()
static cell AMX_NATIVE_CALL n_ResumeRecordingPlayback(AMX *amx, cell *params)
{
// TODO: n_ResumeRecordingPlayback
return 0;
pNetGame->ResumeRecordingPlayback();
return 1;
}
// native SendChat(msg[])