diff options
author | aap <aap@papnet.eu> | 2020-05-31 17:05:49 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-31 17:05:59 +0200 |
commit | 21ce0a4b28a1842dad91433362d250089ec491b8 (patch) | |
tree | 8c661c49f994d95de6997e0bf4f71cb0ab41dd05 /src/vehicles/Vehicle.h | |
parent | some more CAutomobile (diff) | |
download | re3-21ce0a4b28a1842dad91433362d250089ec491b8.tar re3-21ce0a4b28a1842dad91433362d250089ec491b8.tar.gz re3-21ce0a4b28a1842dad91433362d250089ec491b8.tar.bz2 re3-21ce0a4b28a1842dad91433362d250089ec491b8.tar.lz re3-21ce0a4b28a1842dad91433362d250089ec491b8.tar.xz re3-21ce0a4b28a1842dad91433362d250089ec491b8.tar.zst re3-21ce0a4b28a1842dad91433362d250089ec491b8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Vehicle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h index 29058b1e..87ee928c 100644 --- a/src/vehicles/Vehicle.h +++ b/src/vehicles/Vehicle.h @@ -317,6 +317,7 @@ public: bool CanDoorsBeDamaged(void); bool CanPedEnterCar(void); bool CanPedExitCar(bool jumpExit); + bool CanPedJumpOutCar(void); bool CanPedJumpOffBike(void); // do these two actually return something? CPed *SetUpDriver(void); @@ -348,11 +349,12 @@ public: static void HeliDustGenerate(CEntity *heli, float radius, float ground, int rnd); void DoSunGlare(void); - bool IsAlarmOn(void) { return m_nAlarmState != 0 && m_nAlarmState != -1; } + bool IsAlarmOn(void) { return m_nAlarmState != 0 && m_nAlarmState != -1 && GetStatus() != STATUS_WRECKED; } CVehicleModelInfo* GetModelInfo() { return (CVehicleModelInfo*)CModelInfo::GetModelInfo(GetModelIndex()); } bool IsTaxi(void) { return GetModelIndex() == MI_TAXI || GetModelIndex() == MI_CABBIE || GetModelIndex() == MI_ZEBRA || GetModelIndex() == MI_KAUFMAN; } bool IsLimo(void) { return GetModelIndex() == MI_STRETCH || GetModelIndex() == MI_LOVEFIST; } bool IsRealHeli(void) { return !!(pHandling->Flags & HANDLING_IS_HELI); } + bool IsRealPlane(void) { return !!(pHandling->Flags & HANDLING_IS_PLANE); } static bool bWheelsOnlyCheat; static bool bAllDodosCheat; @@ -363,6 +365,7 @@ public: static bool bAltDodoCheat; #endif static bool bHoverCheat; + static bool bAllTaxisHaveNitro; static bool m_bDisableMouseSteering; static bool bDisableRemoteDetonation; static bool bDisableRemoteDetonationOnContact; |