diff options
author | erorcun <erayorcunus@gmail.com> | 2019-12-06 00:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-06 00:11:17 +0100 |
commit | d1141f468ca5c22debc6280c560bdd47fbf5998c (patch) | |
tree | e3c8c7402ac4e7403e904d4de9cf43c22b4b0e83 /src/peds/Ped.h | |
parent | Merge pull request #278 from Fire-Head/master (diff) | |
parent | CPhone, CPlayerInfo, CFire, CWorld (diff) | |
download | re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.gz re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.bz2 re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.lz re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.xz re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.zst re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.zip |
Diffstat (limited to 'src/peds/Ped.h')
-rw-r--r-- | src/peds/Ped.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h index 9e2f0e9f..f4647831 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -243,7 +243,7 @@ enum PedState PED_STEP_AWAY, PED_ON_FIRE, - PED_UNKNOWN, // HANG_OUT in Fire_Head's idb + PED_UNKNOWN, // Same with IDLE, but also infects up to 5 peds with same pedType and WANDER_PATH, so they become stone too. HANG_OUT in Fire_Head's idb PED_STATES_NO_AI, @@ -787,6 +787,7 @@ public: PedState GetPedState(void) { return m_nPedState; } void SetPedState(PedState state) { m_nPedState = state; } bool DyingOrDead(void) { return m_nPedState == PED_DIE || m_nPedState == PED_DEAD; } + bool InVehicle(void) { return bInVehicle && m_pMyVehicle; } // True when ped is sitting/standing in vehicle, not in enter/exit state. void ReplaceWeaponWhenExitingVehicle(void); void RemoveWeaponWhenEnteringVehicle(void); bool IsNotInWreckedVehicle(); |