07.02.2017, 12:40
Sweet! I have tested GetVehicleMatrix, SetVehicleParamsSirenState and OnOutcomeScmEvent on Windows, which work fine. SetSyncBounds doesn't seem to be working at the moment, I think the problem is this line:
I haven't yet checked how this CScriptParams class works, but from the looks of it I think it only writes the parameters at these addresses. However, these addresses are DWORD*s and contain the pointers to the actual memory locations. I think this code should be working:
Код:
CScriptParams::Get()->Read(&CAddress::VAR_pPosSyncBounds[0], &CAddress::VAR_pPosSyncBounds[1], &CAddress::VAR_pPosSyncBounds[2], &CAddress::VAR_pPosSyncBounds[3]);
Код:
CScriptParams::Get()->Read((float*)CAddress::VAR_pPosSyncBounds[0], (float*)CAddress::VAR_pPosSyncBounds[1], (float*)CAddress::VAR_pPosSyncBounds[2], (float*)CAddress::VAR_pPosSyncBounds[3]);

