summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 07:03:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-15 07:03:53 +0200
commitdaed13485ef47d9c8992e53e1a976fba237fca50 (patch)
treef8116c26ac5f95a77375d67daffddbeaa19177e0 /src/peds/Ped.h
parentfix weather init (diff)
downloadre3-daed13485ef47d9c8992e53e1a976fba237fca50.tar
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.gz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.bz2
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.lz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.xz
re3-daed13485ef47d9c8992e53e1a976fba237fca50.tar.zst
re3-daed13485ef47d9c8992e53e1a976fba237fca50.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 2edd5d68..ea8c4080 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -796,7 +796,12 @@ public:
PedState GetPedState(void) { return m_nPedState; }
void SetPedState(PedState state) { m_nPedState = state; }
+ bool Dead(void) { return m_nPedState == PED_DEAD; }
+ bool Dying(void) { return m_nPedState == PED_DIE; }
bool DyingOrDead(void) { return m_nPedState == PED_DIE || m_nPedState == PED_DEAD; }
+ bool OnGround(void) { return m_nPedState == PED_FALL || m_nPedState == PED_DIE || m_nPedState == PED_DEAD; }
+
+ bool Driving(void) { return m_nPedState == PED_DRIVING; }
bool InVehicle(void) { return bInVehicle && m_pMyVehicle; } // True when ped is sitting/standing in vehicle, not in enter/exit state.
bool EnteringCar(void) { return m_nPedState == PED_ENTER_CAR || m_nPedState == PED_CARJACK; }