2017-09-28 02:12:05 +05:00
|
|
|
#pragma once
|
|
|
|
|
2019-12-12 01:37:18 +05:00
|
|
|
#include "Maths.h"
|
2017-09-28 02:12:05 +05:00
|
|
|
|
|
|
|
#if _GTA_III
|
|
|
|
#include "../SilentPatchIII/VehicleIII.h"
|
|
|
|
#elif _GTA_VC
|
|
|
|
#include "../SilentPatchVC/VehicleVC.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class CStoredCar
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
int32_t m_modelIndex;
|
|
|
|
CVector m_position;
|
|
|
|
CVector m_angle;
|
|
|
|
uint32_t m_handlingFlags;
|
|
|
|
uint8_t m_nPrimaryColor;
|
|
|
|
uint8_t m_nSecondaryColor;
|
|
|
|
int8_t m_nRadioStation;
|
|
|
|
int8_t m_anCompsToUse[2];
|
|
|
|
uint8_t m_bombType;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static CVehicle* (CStoredCar::*orgRestoreCar)();
|
|
|
|
|
|
|
|
CVehicle* RestoreCar_SilentPatch();
|
|
|
|
};
|
|
|
|
|
|
|
|
static_assert(sizeof(CStoredCar) == 0x28, "Wrong size: CStoredCar");
|