[saco] Match four small CLocalPlayer members; the 1000 fallback has to be the trailing else, and the three key words are read through field_0

This commit is contained in:
ricardoofnl committed 2026-09-05 09:24:47 +07:00
1 parent f4d31db33e
commit 375a1b3aa3
2 files changed
+52

No files matched your search

+46
View File
@@ -317,3 +317,49 @@ void CLocalPlayer::FUNC_10006FE0()
}
}
}
//----------------------------------------------------
void CLocalPlayer::sub_10003710(int a1, int a2)
{
field_2DA = a1;
field_2DE = a2;
}
//----------------------------------------------------
void CLocalPlayer::sub_10004060()
{
if(field_306)
{
FUNC_10003B60();
field_302 = 1;
}
}
//----------------------------------------------------
// on foot and in a vehicle report their update rate separately
int CLocalPlayer::FUNC_10003B30()
{
if(m_pPlayerPed)
{
if(m_pPlayerPed->IsInVehicle())
return FUNC_10003AB0();
return FUNC_10003AF0();
}
return 1000;
}
//----------------------------------------------------
// the three words live inside field_0, so they are read through it
BOOL CLocalPlayer::FUNC_10004340(WORD a1, WORD a2, WORD a3)
{
if(a1 == *(WORD *)&field_0[6] && a2 == *(WORD *)&field_0[4] && a3 == *(WORD *)&field_0[2])
return FALSE;
return TRUE;
}
+6
View File
@@ -138,6 +138,12 @@ public:
void sub_100041C0(int a1); // .text:100041C0
void sub_100030F0(BYTE a1); // .text:100030F0
void sub_10003710(int a1, int a2); // .text:10003710
void sub_10004060(); // .text:10004060
int FUNC_10003AB0(); // .text:10003AB0
int FUNC_10003AF0(); // .text:10003AF0
int FUNC_10003B30(); // .text:10003B30
void FUNC_10003B60(); // .text:10003B60
BOOL FUNC_10004340(WORD a1, WORD a2, WORD a3); // .text:10004340
DWORD GetField_F0() { return field_F0; };
};