summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-17 14:02:19 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-17 14:02:19 +0100
commite5af1edcb9e7f444eb3b5256f75841d57bb50ac5 (patch)
treeeefc16e2d08568f6008a2881ddf02f9b8ea4ec95 /src/peds
parentsync (diff)
downloadre3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.tar
re3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.tar.gz
re3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.tar.bz2
re3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.tar.lz
re3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.tar.xz
re3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.tar.zst
re3-e5af1edcb9e7f444eb3b5256f75841d57bb50ac5.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.h36
1 files changed, 27 insertions, 9 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 9ed6f2ff..9c77b596 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -499,7 +499,7 @@ public:
uint32 bIsDrowning : 1;
uint32 bDrownsInWater : 1;
uint32 bWaitForLeaderToComeCloser : 1;
- uint32 bHeldHostageInCar : 1;
+ uint32 bHeldHostageInCar : 1; // one flag was added somewhere after this one (TODO: figure out where and which)
uint32 bIsPlayerFriend : 1;
uint32 bHeadStuckInCollision : 1;
uint32 bDeadPedInFrontOfCar : 1;
@@ -512,7 +512,7 @@ public:
uint32 bMakeFleeScream : 1;
uint32 bPushedAlongByCar : 1;
uint32 bRemoveMeWhenIGotIntoCar : 1;
- uint32 bIgnoreThreatsBehindObjects : 1;
+ uint32 bIgnoreThreatsBehindObjects : 1; // one flag was added somewhere before this one (TODO: figure out where and which)
uint32 bNeverEverTargetThisPed : 1;
uint32 bCrouchWhenScared : 1;
@@ -523,8 +523,8 @@ public:
uint32 bDonePositionOutOfCollision : 1;
uint32 bCanAttackPlayerWithCops : 1; // 1A1_1 on PS2
- uint32 b1A1_2 : 1;
- uint32 b1A1_4 : 1;
+ uint32 bOnlyAllowedToSitBehind : 1;
+ uint32 bOnlyAllowedToSitInFront : 1;
uint32 b1A1_8 : 1;
uint32 b1A1_10 : 1;
uint32 b1A1_20 : 1;
@@ -534,11 +534,29 @@ public:
uint32 m_ped_flagI80 : 1; // KANGAROO_CHEAT define makes use of this as cheat toggle
#endif
- uint8 m_gangFlags;
- uint8 m_unused15D; // these 3 can't be padding but had to actually have been members ...
- uint8 m_unused15E;
- uint8 m_unused15F;
- uint8 CharCreatedBy;
+ uint16 m_gangFlags; // <- this one is uint16
+
+ uint8 b1A4_1 : 1;
+ uint8 b1A4_2 : 1;
+ uint8 b1A4_4 : 1;
+ uint8 b1A4_8 : 1;
+ uint8 b1A4_10 : 1;
+ uint8 b1A4_20 : 1;
+ uint8 b1A4_40 : 1;
+ uint8 b1A4_80 : 1;
+
+ uint8 b1A5_1 : 1;
+ uint8 b1A5_2 : 1;
+ uint8 b1A5_4 : 1;
+ uint8 b1A5_8 : 1;
+ uint8 b1A5_10 : 1;
+ uint8 b1A5_20 : 1;
+ uint8 b1A5_40 : 1;
+ uint8 b1A5_80 : 1;
+
+ uint8 unk_1A6; // <- init with 100 in constructor
+
+ uint8 CharCreatedBy; // 1AC
eObjective m_objective;
eObjective m_prevObjective;
CPed *m_pedInObjective;