@@ -261,7 +261,7 @@ class CPedSAInterface : public CPhysicalSAInterface
261261 int unk_52C;
262262
263263 int pedState;
264- int moveState;
264+ PedMoveState::Enum moveState;
265265 int swimmingMoveState;
266266
267267 int unk_53C;
@@ -276,10 +276,10 @@ class CPedSAInterface : public CPhysicalSAInterface
276276 float fRotationSpeed ;
277277 float fMoveAnim ;
278278
279- CEntitySAInterface* pContactEntity;
279+ CEntitySAInterface* pContactEntity;// m_standingOnEntity
280280 CVector unk_56C;
281281 CVector unk_578;
282- CEntitySAInterface* pLastContactEntity;
282+ CEntitySAInterface* pLastContactEntity;// m_contactEntity
283283
284284 CVehicleSAInterface* pLastVehicle;
285285 CVehicleSAInterface* pVehicle;
@@ -421,8 +421,9 @@ class CPedSA : public virtual CPed, public virtual CPhysicalSA
421421 void SetFightingStyle (eFightingStyle style, std::uint8_t styleExtra = 6 ) override ;
422422
423423 CEntity* GetContactEntity () const override ;
424+ bool IsStandingOnEntity () const override { return GetPedInterface ()->pContactEntity != nullptr ; };
424425
425- int GetRunState () const override { return GetPedInterface ()->moveState ; }
426+ PedMoveState::Enum GetMoveState () const override { return GetPedInterface ()->moveState ; }
426427
427428 bool GetCanBeShotInVehicle () const override { return GetPedInterface ()->pedFlags .bCanBeShotInVehicle ; }
428429 bool GetTestForShotInVehicle () const override { return GetPedInterface ()->pedFlags .bTestForShotInVehicle ; }
0 commit comments