summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-08-23 00:44:38 +0200
committereray orçunus <erayorcunus@gmail.com>2019-08-23 00:53:53 +0200
commite5df72a1e97af788f100c0d8bfaa842ae8bdfe7a (patch)
tree8ea09fb5f072f26005983e435e46ac70b4ecdb37 /src/peds/Ped.h
parentMerge pull request #195 from erorcun/erorcun (diff)
downloadre3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.tar
re3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.tar.gz
re3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.tar.bz2
re3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.tar.lz
re3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.tar.xz
re3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.tar.zst
re3-e5df72a1e97af788f100c0d8bfaa842ae8bdfe7a.zip
Diffstat (limited to 'src/peds/Ped.h')
-rw-r--r--src/peds/Ped.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 96767ce1..5922e0e7 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -11,6 +11,7 @@
#include "WeaponInfo.h"
#include "Fire.h"
#include "DMAudio.h"
+#include "EventList.h"
struct CPathNode;
@@ -258,7 +259,7 @@ public:
uint8 bIsAttacking : 1; // doesn't reset after fist fight, also stores (CTimer::GetTimeInMilliseconds() < m_lastHitTime)
uint8 bIsPointingGunAt : 1;
uint8 bIsLooking : 1;
- uint8 m_ped_flagA20 : 1; // "look" method? - probably missing in SA
+ uint8 bKeepTryingToLook : 1; // if we can't look somewhere due to unreachable angles
uint8 bIsRestoringLook : 1;
uint8 bIsAimingGun : 1;
@@ -278,10 +279,10 @@ public:
uint8 bUpdateAnimHeading : 1;
uint8 bBodyPartJustCameOff : 1;
uint8 m_ped_flagC40 : 1;
- uint8 m_ped_flagC80 : 1;
+ uint8 bFindNewNodeAfterStateRestore : 1;
- uint8 m_ped_flagD1 : 1;
- uint8 m_ped_flagD2 : 1; // seen an event
+ uint8 m_ped_flagD1 : 1; // so far only used for reaction type to fire/explosion
+ uint8 m_ped_flagD2 : 1; // set when event has been seen
uint8 m_ped_flagD4 : 1;
uint8 m_ped_flagD8 : 1;
uint8 bIsPedDieAnimPlaying : 1;
@@ -303,7 +304,7 @@ public:
uint8 m_ped_flagF4 : 1;
uint8 m_ped_flagF8 : 1;
uint8 bWillBeQuickJacked : 1;
- uint8 m_ped_flagF20 : 1;
+ uint8 m_ped_flagF20 : 1; // set when couldn't open locked car door
uint8 m_ped_flagF40 : 1;
uint8 bDuckAndCover : 1;
@@ -329,7 +330,7 @@ public:
uint8 bNoCriticalHits : 1; // if set, limbs won't came off
uint8 m_ped_flagI4 : 1;
uint8 bHasAlreadyBeenRecorded : 1;
- uint8 bIsFell : 1;
+ uint8 bFallenDown : 1;
uint8 m_ped_flagI20 : 1;
uint8 m_ped_flagI40 : 1;
uint8 m_ped_flagI80 : 1;
@@ -367,7 +368,7 @@ public:
int32 m_nPrevMoveState;
eWaitState m_nWaitState;
uint32 m_nWaitTimer;
- void *m_pPathNodesStates[8]; // seems unused
+ void *m_pPathNodesStates[8]; // seems unused, probably leftover from VC
CVector2D m_stPathNodeStates[10];
uint16 m_nPathNodes;
int16 m_nCurPathNode;
@@ -601,7 +602,7 @@ public:
void LineUpPedWithTrain(void);
void ExitCar(void);
void Fight(void);
- bool FindBestCoordsFromNodes(CVector unused, CVector* a6);
+ bool FindBestCoordsFromNodes(CVector, CVector*);
void Wait(void);
void ProcessObjective(void);
bool SeekFollowingPath(CVector*);
@@ -614,13 +615,20 @@ public:
uint8 GetPedRadioCategory(uint32);
int GetWeaponSlot(eWeaponType);
void GoToNearestDoor(CVehicle*);
- bool HaveReachedNextPointOnRoute(float a2);
+ bool HaveReachedNextPointOnRoute(float);
void Idle(void);
void InTheAir(void);
void SetLanding(void);
void InvestigateEvent(void);
bool IsPedDoingDriveByShooting(void);
bool IsRoomToBeCarJacked(void);
+ void SetInvestigateEvent(eEventType, CVector2D, float, uint16, float);
+ bool LookForInterestingNodes(void);
+ void LookForSexyCars(void);
+ void LookForSexyPeds(void);
+ void Mug(void);
+ void MoveHeadToLook(void);
+ void Pause(void);
// Static methods
static CVector GetLocalPositionToOpenCarDoor(CVehicle *veh, uint32 component, float offset);