summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-11 00:00:50 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-11 00:00:50 +0200
commit2f085ea5f585ac2a54bfa1eb51082b5f41a67184 (patch)
tree90b3006d9ff5aa65b753d27336d134d1cc783ce5 /src/vehicles/Vehicle.h
parentsome changes (diff)
parentRpAnimBlend and frame updates (diff)
downloadre3-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.h2
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;