diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-11 00:00:50 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-11 00:00:50 +0200 |
commit | 2f085ea5f585ac2a54bfa1eb51082b5f41a67184 (patch) | |
tree | 90b3006d9ff5aa65b753d27336d134d1cc783ce5 /src/vehicles/Vehicle.h | |
parent | some changes (diff) | |
parent | RpAnimBlend and frame updates (diff) | |
download | re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.tar re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.tar.gz re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.tar.bz2 re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.tar.lz re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.tar.xz re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.tar.zst re3-2f085ea5f585ac2a54bfa1eb51082b5f41a67184.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Vehicle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h index 3b6d778e..0ef454fd 100644 --- a/src/vehicles/Vehicle.h +++ b/src/vehicles/Vehicle.h @@ -5,6 +5,7 @@ #include "ModelIndices.h" #include "AnimManager.h" #include "Weapon.h" +#include "HandlingMgr.h" class CPed; class CFire; @@ -294,6 +295,7 @@ public: bool IsAlarmOn(void) { return m_nAlarmState != 0 && m_nAlarmState != -1; } CVehicleModelInfo* GetModelInfo() { return (CVehicleModelInfo*)CModelInfo::GetModelInfo(GetModelIndex()); } bool IsTaxi(void) { return GetModelIndex() == MI_TAXI || GetModelIndex() == MI_CABBIE || GetModelIndex() == MI_ZEBRA || GetModelIndex() == MI_KAUFMAN; } + bool IsRealHeli(void) { return !!(pHandling->Flags & HANDLING_IS_HELI); } AnimationId GetDriverAnim(void) { return IsCar() && bLowVehicle ? ANIM_CAR_LSIT : (IsBoat() && GetModelIndex() != MI_SPEEDER ? ANIM_DRIVE_BOAT : ANIM_CAR_SIT); } static bool bWheelsOnlyCheat; |