summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-03-01 02:43:30 +0100
committereray orçunus <erayorcunus@gmail.com>2020-03-01 02:44:58 +0100
commitae523a09a7c12ff3c1fd9cb61e741cf09702b3fe (patch)
treeaf779a144813d519e312398ba77cfdbeb9260420 /src/vehicles/Vehicle.h
parentMerge pull request #338 from erorcun/erorcun (diff)
downloadre3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.gz
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.bz2
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.lz
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.xz
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.zst
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Vehicle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h
index 7e99258c..bd8df694 100644
--- a/src/vehicles/Vehicle.h
+++ b/src/vehicles/Vehicle.h
@@ -3,6 +3,7 @@
#include "Physical.h"
#include "AutoPilot.h"
#include "ModelIndices.h"
+#include "AnimManager.h"
class CPed;
class CFire;
@@ -269,7 +270,8 @@ 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_BORGNINE; }
-
+ AnimationId GetDriverAnim(void) { return IsCar() && bLowVehicle ? ANIM_CAR_LSIT : (IsBoat() && GetModelIndex() != MI_SPEEDER ? ANIM_DRIVE_BOAT : ANIM_CAR_SIT); }
+
static bool &bWheelsOnlyCheat;
static bool &bAllDodosCheat;
static bool &bCheat3;