diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-08 22:57:58 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-08 22:57:58 +0200 |
commit | 9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e (patch) | |
tree | 0041b54ddeb9d9dd1eee4a1ef474bb953f2608fe /src/peds/Ped.h | |
parent | fixed bugs (diff) | |
parent | Full CGameLogic (diff) | |
download | re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.tar re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.tar.gz re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.tar.bz2 re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.tar.lz re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.tar.xz re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.tar.zst re3-9e5a5f2ab6432ec64a6a7f7ac78fa514fdf5038e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h index 0b1b80d6..74d85e56 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -24,6 +24,19 @@ struct CPedAudioData int m_nMaxRandomDelayTime; }; +enum eFormation +{ + FORMATION_UNDEFINED, + FORMATION_REAR, + FORMATION_REAR_LEFT, + FORMATION_REAR_RIGHT, + FORMATION_FRONT_LEFT, + FORMATION_FRONT_RIGHT, + FORMATION_LEFT, + FORMATION_RIGHT, + FORMATION_FRONT +}; + enum FightState : int8 { FIGHTSTATE_MOVE_FINISHED = -2, FIGHTSTATE_JUST_ATTACKED, @@ -360,7 +373,7 @@ public: CVehicle *m_carInObjective; CVector m_nextRoutePointPos; CPed *m_leader; - uint32 m_pedFormation; + eFormation m_pedFormation; uint32 m_fearFlags; CEntity *m_threatEntity; CVector2D m_eventOrThreat; @@ -398,7 +411,7 @@ public: int16 m_routeLastPoint; uint16 m_routeStartPoint; int16 m_routePointsPassed; - int16 m_routeType; + int16 m_routeType; // See PedRouteType int16 m_routePointsBeingPassed; uint16 field_2D2; CVector2D m_moved; @@ -434,7 +447,7 @@ public: uint8 m_stateUnused; uint8 pad_351[3]; uint32 m_timerUnused; - CEntity *m_targetUnused; + CVector2D *m_wanderRangeBounds; // array with 2 CVector2D (actually unused CRange2D class) - unused CWeapon m_weapons[WEAPONTYPE_TOTAL_INVENTORY_WEAPONS]; eWeaponType m_storedWeapon; uint8 m_currentWeapon; // eWeaponType @@ -542,7 +555,6 @@ public: void SetObjective(eObjective, int16, int16); void ClearChat(void); void InformMyGangOfAttack(CEntity*); - void SetFollowRoute(int16, int16); void ReactToAttack(CEntity*); void SetDuck(uint32); void RegisterThreatWithGangPeds(CEntity*); @@ -647,11 +659,9 @@ public: void ServiceTalking(void); void SetJump(void); void UpdatePosition(void); - void WanderRange(void); void WanderPath(void); void ReactToPointGun(CEntity*); void SeekCar(void); - void SeekBoatPosition(void); bool PositionPedOutOfCollision(void); bool RunToReportCrime(eCrimeType); bool PlacePedOnDryLand(void); @@ -661,6 +671,10 @@ public: void SetEnterCar(CVehicle*, uint32); bool WarpPedToNearEntityOffScreen(CEntity*); void SetExitCar(CVehicle*, uint32); + void SetFormation(eFormation); + bool WillChat(CPed*); + void SetEnterTrain(CVehicle*, uint32); + void SetEnterCar_AllClear(CVehicle*, uint32, uint32); // Static methods static CVector GetLocalPositionToOpenCarDoor(CVehicle *veh, uint32 component, float offset); @@ -733,6 +747,9 @@ public: void SetSeekCar(CVehicle*, uint32); void SetSeekBoatPosition(CVehicle*); void SetExitTrain(CVehicle*); + void WanderRange(void); + void SetFollowRoute(int16, int16); + void SeekBoatPosition(void); #ifdef VC_PED_PORTS bool CanPedJumpThis(CEntity*, CVector*); #else |