summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-22 23:58:59 +0200
committeraap <aap@papnet.eu>2020-05-22 23:58:59 +0200
commita1e4b15bcc93fa814a63e1b6ccdca50197874e5c (patch)
treef54f09c8a5f002d64ed81a2f6a7e9024d9028612 /src/peds
parentCPhysical (diff)
parentMerge pull request #576 from Nick007J/miami (diff)
downloadre3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.tar
re3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.tar.gz
re3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.tar.bz2
re3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.tar.lz
re3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.tar.xz
re3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.tar.zst
re3-a1e4b15bcc93fa814a63e1b6ccdca50197874e5c.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp15
-rw-r--r--src/peds/Ped.h22
2 files changed, 24 insertions, 13 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index c84e37c7..2ab3bf48 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -604,14 +604,25 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
bCarPassenger = false;
bMiamiViceCop = false;
bMoneyHasBeenGivenByScript = false;
+ bHasBeenPhotographed = false;
bIsDrowning = false;
- bCanDrownInWater = true;
+ bDrownsInWater = true;
#ifdef VC_PED_PORTS
bHeadStuckInCollision = false;
#endif
bIsPlayerFriend = true;
bDeadPedInFrontOfCar = false;
+ bStayInCarOnJack = false;
+
+ bDontFight = false;
+ bDoomAim = true;
+ bCanBeShotInVehicle = true;
+ bIgnoreThreatsBehindObjects = false;
+
+ bNeverEverTargetThisPed = false;
+
+ bBoughtIceCream = false;
if ((CGeneral::GetRandomNumber() & 3) == 0)
bHasACamera = true;
@@ -4117,7 +4128,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
if (DyingOrDead())
return false;
- if (method == WEAPONTYPE_DROWNING && !bCanDrownInWater)
+ if (method == WEAPONTYPE_DROWNING && !bDrownsInWater)
return false;
if (!bUsesCollision && (!bInVehicle || m_nPedState != PED_DRIVING) && method != WEAPONTYPE_DROWNING)
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index 87f3456a..2a774f9a 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -225,10 +225,10 @@ enum eObjective : uint32 {
OBJECTIVE_USE_STOP_ATTRACTOR,
OBJECTIVE_USE_PIZZA_ATTRACTOR,
OBJECTIVE_USE_SHELTER_ATTRACTOR,
- OBJ_46,
+ OBJECTIVE_AIM_GUN_AT_PED,
OBJ_47,
OBJECTIVE_WAIT_FOR_RAIN_TO_END,
- OBJ_49,
+ OBJECTIVE_SPRINT_TO_COORD,
OBJ_50,
OBJ_51,
OBJECTIVE_WAIT_FOR_BUS,
@@ -442,10 +442,10 @@ public:
//uint32 b155_10
uint32 bMiamiViceCop : 1;
uint32 bMoneyHasBeenGivenByScript : 1; //
- //uint32 b155_80
+ uint32 bHasBeenPhotographed : 1; //
uint32 bIsDrowning : 1;
- uint32 bCanDrownInWater : 1; // Originally bDrownsInWater
+ uint32 bDrownsInWater : 1;
//uint32 b156_4
//uint32 b156_8
uint32 bIsPlayerFriend : 1;
@@ -453,23 +453,23 @@ public:
uint32 bHeadStuckInCollision : 1;
#endif
uint32 bDeadPedInFrontOfCar : 1;
- //uint32 b156_80
+ uint32 bStayInCarOnJack : 1;
- //uint32 b157_1
- //uint32 b157_2
- //uint32 b157_4
+ uint32 bDontFight : 1;
+ uint32 bDoomAim : 1;
+ uint32 bCanBeShotInVehicle : 1;
//uint32 b157_8
//uint32 b157_10
//uint32 b157_20
//uint32 b157_40
- //uint32 b157_80
+ uint32 bIgnoreThreatsBehindObjects : 1;
- //uint32 b158_1
+ uint32 bNeverEverTargetThisPed : 1;
//uint32 b158_2
uint32 b158_4 : 1;
//uint32 b158_8
//uint32 b158_10
- //uint32 b158_20
+ uint32 bBoughtIceCream : 1;
//uint32 b158_40
//uint32 b158_80