summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 20:51:29 +0200
committeraap <aap@papnet.eu>2020-05-10 20:51:29 +0200
commit9e842f1628c273d20fb8221e8b42198880b127fe (patch)
treea9e71674dcd33c80f54bb22b1abf482a550cb4a2 /src/vehicles/Vehicle.h
parentforce load weapons as long as we dont stream em yet (diff)
downloadre3-9e842f1628c273d20fb8221e8b42198880b127fe.tar
re3-9e842f1628c273d20fb8221e8b42198880b127fe.tar.gz
re3-9e842f1628c273d20fb8221e8b42198880b127fe.tar.bz2
re3-9e842f1628c273d20fb8221e8b42198880b127fe.tar.lz
re3-9e842f1628c273d20fb8221e8b42198880b127fe.tar.xz
re3-9e842f1628c273d20fb8221e8b42198880b127fe.tar.zst
re3-9e842f1628c273d20fb8221e8b42198880b127fe.zip
Diffstat (limited to 'src/vehicles/Vehicle.h')
-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;